[swfmill] [ Font import patch
Tobias Hinz
th at skyco.de
Tue Apr 10 06:31:29 EDT 2007
Hey.
How to apply this patch?
Im really working a lot with fonts and swfmill.
Cheers, tobias
SKYCO GmbH, Process and Workflow Management
Schliemannstr. 5 I 10437 Berlin
Tel. +49 30 55009711 I Fax +49 30 48494771
email: th at skyco.de http://www.skyco.de
-----Ursprüngliche Nachricht-----
Von: swfmill-bounces at osflash.org [mailto:swfmill-bounces at osflash.org] Im
Auftrag von Ralf Fuest
Gesendet: Sonntag, 8. April 2007 14:30
An: swfmill at osflash.org
Betreff: [swfmill] Font import patch
I tried to use swfmill together with the font DejaVuSans-ExtraLight
(dejavu.sf.net), but at least 2 glyphs (p and d) are imported
incorrectly.
While I was trying to understand the code I found an interesting
function in the FreeType API Reference (FT_Outline_Decompose) that
allows to simplify the importing. All fonts I have testet seem to work
with the new code. I've also testet the MSGOTHIC glyphs that showed
similar errors some time ago and they also work fine.
I had an problem understanding the ShapeMaker code. Does the R in
lineToR, setupR,... stand for relative? This would be misleading,
because setupR is absolute and not relative. I temporarily added my own
setup function (setup2), but someone who knows this code should look
into it again.
An comparison between the new and old code is available at:
http://pep-mp.de/swfmill/import_ttf.png
The patch: http://pep-mp.de/swfmill/import_ttf.patch
I also made another unrelated little patch, that fixed a segfault while
importing an SVG file: http://pep-mp.de/swfmill/css.patch
Ralf
_______________________________________________
swfmill mailing list
swfmill at osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org
More information about the swfmill
mailing list