+1

— John

> On 18 Oct 2015, at 07:16, Andreas Lehmkuehler <[email protected]> wrote:
> 
> Am 18.10.2015 um 15:55 schrieb Maruan Sahyoun:
>> Hi,
>> 
>>> Am 18.10.2015 um 15:33 schrieb Tilman Hausherr <[email protected]>:
>>> 
>>> Should we offer some sort of map of name -> ttf-font? Currently a user 
>>> needs to go through a list of fonts
>>> 
>>> trueTypeCollection.getFonts()
>>> 
>>> until hitting the correct one. Shouldn't we have something like
>>> 
>>> trueTypeCollection.getFontByNameMap()
>>> 
>>> so a user who knows the fonts on the system could have code like
>>> 
>>> PDType0Font.load(document, 
>>> newTrueTypeCollection(newFile("c:/windows/fonts/MSGothic.ttc")).getFontByName().get("MS-Gothic"),
>>>  true);
>>> 
>> 
>> good idea - maybe a little shorter such as
>> 
>> PDType0Font.load(document, 
>> newTrueTypeCollection(newFile("c:/windows/fonts/MSGothic.ttc")).getFontByName("MS-Gothic"),
>>  true);
> +1
> 
> BR
> Andreas
> 
>> 
>> BR
>> Maruan
>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected] 
>>> <mailto:[email protected]>
>>> For additional commands, e-mail: [email protected] 
>>> <mailto:[email protected]>
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected] 
>> <mailto:[email protected]>
>> For additional commands, e-mail: [email protected] 
>> <mailto:[email protected]>
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected] 
> <mailto:[email protected]>
> For additional commands, e-mail: [email protected] 
> <mailto:[email protected]>

Reply via email to