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);
Yeah, good idea.
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]