3/17/2021 0 Comments Convert Opentype Fonts To Truetype
Bulk conversion of OpenType (OTF) to TrueType (TTF) or Type 1(PFAPFB) fonts using FontForge.I needed to convert a lot of OpenType fonts to TrueType or Type 1 format to use them with Apache FOP, as FOP doesnt yet support OpenType fonts with CFF glyph formats.Doing the conversion in one FontForge script didnt work well, because (a) it leaked memory until it got OOM-killed and (b) it only used one CPU.
So I wrote a helper shell script to control the job - posted here in case anyone else needs it later. Could you make the license explicit (GPL, BSD, etc.) Also, it seems the blog post stripped some quotes around END (At least, to make it work for me, I had to quote those to suppress substitution of the HERE doc text) Reply Delete Replies Reply Craig Ringer January 11, 2012 at 10:02 AM Ross: Annotated to make it clear this is a public domain release. ![]() Reply Delete Replies Reply Ross January 12, 2012 at 1:12 AM Craig: yup, looks better. The cool trick I just learned about HERE docs though, when looking this up, is that if you quote the limit string itself (END in this case) it suppresses expansion for that text - nice way to avoid all the sprinkling of backslashes. The other really weird thing: start the limit string w a dash (-) will suppress initial tabs, so you can indent your HERE doc. Reply Delete Replies Reply Craig Ringer January 12, 2012 at 10:39 AM Ross: Thanks for the tip; I hadnt spotted either of those handy here doc tricks, so thanks. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |