|
From: Khaled H. <kha...@eg...> - 2009-07-14 04:54:23
|
On Tue, Jul 14, 2009 at 09:45:19AM +1000, Caius 'kaio' Chance wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Khaled Hosny さんは書きました: > > On Fri, Jul 10, 2009 at 05:13:32PM +1000, Caius 'kaio' Chance wrote: > > >> I was taught to tick the checkbox 'old style kern' in options window > >> when I click 'generate font' in fontforge UI. Would this step could be > >> also implemented in fontforge scripts so I could automate this? > > > > It is already, check generate flags in the scripting documentation > > http://fontforge.sourceforge.net/scripting-alpha.html#G > > Could you kindly give me some idea which version of the fontforge > started to support this (fmflags)? I tried on 20090224 but it seems did > not functioning. > > FYI, my scripts as follows: > > $ cat sfd2ttf.pe > Print( " ") > Print( "Generating ttf from sfd sources...") > Print( "----------------------------------") > Open($1) > Generate($1:r + ".ttf" ,"fmflags&0x800") > Print( " ") It should be: Generate($1:r + ".ttf", "", 0x800) The second parameter is "bitmaptype", "fmflags" should be the third and it isn't a string. I think "fmflags&0xXXX" in the documentation means you have to sum the flags together (so, if you want to set 0x800 and 0x200, "fmflags" would be the some of both.) Since I don't know what these numbers mean, I just use python interpreter as a calculator (0x800+0x200 is 2560, which will generate 'kern' and 'TeX' tables). Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer |