|
From: Caius 'k. C. <cc...@re...> - 2009-07-10 07:14:01
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, As $subject. I updated the packaging method of Liberation Fonts which SRPM of liberation-fonts contain SFDs and it generates TTFs when the SRPM is built into RPM. The generation from SFDs to TTFs are done with fontforge scripts that with simple two lines Open() and Generate(). However, for backward compatibility I want to include traditional kern table. 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? Thank you very much for reading. Regards, kaio - -- Caius Chance, Soft Eng, I18N, Red Hat APAC, cchance AT redhat DOT com JP (Qual), RHCE, MCSE, CCNA, JLPT4, http://apac.redhat.com/disclaimer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpW6hsACgkQmo+B7bGj5dLUfwCgztoNhIA+R7JKIiNfN8S7Xfoz 9FsAn13ORTkzN6Go+UmxOEFYqi1dNGd3 =UQRo -----END PGP SIGNATURE----- |
|
From: Khaled H. <kha...@eg...> - 2009-07-10 08:21:33
|
On Fri, Jul 10, 2009 at 05:13:32PM +1000, Caius 'kaio' Chance wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > As $subject. I updated the packaging method of Liberation Fonts which > SRPM of liberation-fonts contain SFDs and it generates TTFs when the > SRPM is built into RPM. > > The generation from SFDs to TTFs are done with fontforge scripts that > with simple two lines Open() and Generate(). However, for backward > compatibility I want to include traditional kern table. > > 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 Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer |
|
From: Caius 'k. C. <cc...@re...> - 2009-07-11 12:58:02
|
(2009年07月10日 18:21), 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 Thanks a lot, Khaled! Regards, kaio |
|
From: Caius 'k. C. <cc...@re...> - 2009-07-13 23:45:56
|
-----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( " ") Regards, kaio - -- Caius Chance, Soft Eng, I18N, Red Hat APAC, cchance AT redhat DOT com JP (Qual), RHCE, MCSE, CCNA, JLPT4, http://apac.redhat.com/disclaimer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpbxw8ACgkQmo+B7bGj5dJ13gCfXmEmDmFExT1PFfLUI6jAlX/c 2+AAnjX+YS9RxL8uz1UZz8OQDRhqN2qH =y9Mo -----END PGP SIGNATURE----- |
|
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 |