[Pkg-fonts-devel] Common script for conversion of font files

Fabian Greffrath fabian at greffrath.com
Tue Feb 15 15:23:45 UTC 2011


Dear pkg-font team mates,

I have seen that in several of our packages (e.g. ttf-freefonts) 
different implementations of fontforge scripts are used to convert 
between font formats, e.g. sfd -> ttf. Personally I tend to use the 
script found in the Examples section of the fontforge documentation 
(the last one before "Other Examples"):

http://fontforge.sourceforge.net/scripting-tutorial.html

It is possible to convert into .ttf, .otf, .pfb or .svg formats (from 
every other format) with this single script and additionally it takes 
care of quirks like unit conversion and integer rounding. I'd like to 
propose we replace all the sniplets in our packages by this one and 
use a common dh rule like

override_dh_auto_build:
	fontforge -script debian/convert.pe --format ".ttf" *.sfd

to build the fonts.

For your convenience, I have attached the script to this email.

Am 14.02.2011 18:44, schrieb Christian PERRIER:
> PS:still not subscribed to pkg-fonts-devel? :-)

Yes, now I am finally subscribed. ;)

Best Regards,
Fabian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: convert.pe
URL: <http://lists.alioth.debian.org/pipermail/pkg-fonts-devel/attachments/20110215/a66093a7/attachment.asc>


More information about the Pkg-fonts-devel mailing list