On February 21, 2012 7:20:27 AM, Pravin Satpute wrote:
On 02/20/2012 09:49 PM, Jan Pokorny wrote:
> Based on the previous patch, we create a generalization of how was
> "ttf" target handled to support exporting also to other common
> formats. We add "4web" target covering common formats used on
> the web (HTML/CSS:font-face): TTF, WOFF, SVG, EOT.
> It is easy to add other formats if needed and provided that
> such format is supported by FontForge.
>
> To be honest, I am not sure about two things:
> - Is the existing TTF export OK for web usage? Have been exploring
> this field shortly, but cannot defuse my confusion (TTF/OTF,
> ...).
Yes. It should work fine.
I have not explored Web fonts yet much, this is learning experience
for me as well.
> - Is hardcoded "fmflags" parameter in scripts/fontexport.pe
> OK also for formats other than TTF?
Will be good if you can test it and update the thread, so before
final commit i will be in better position.
I've put together a simple test page [1] so anyone can test the result
in the browser of choice. I've only tested Firefox (i.e., TTF and WOFF
only) and works as expected. All the formats used are generated using
"make 4web", employing the proposed patchset.
Pravin, we can somehow get such or similar test HTML to the upstream
repo if preferred (can be viewed offline as well, indeed).
[1]
http://fedorapeople.org/~jpokorny/font-test/liberation-sans-italic.html
-- Jan