[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] FreeType with Emscripten: problems with some fonts scale

From: MaxEd
Subject: Re: [ft-devel] FreeType with Emscripten: problems with some fonts scale
Date: Thu, 01 May 2014 15:06:46 +0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Thank you for your help. In the end, I discovered it to be a linking error. When calling

writing_system_class->style_hints_apply( hints,
metrics );

in af_loader_load_g, completely unrelated function was being called. It seems that functions table got borked. I'll take this issue with Emscripten's developers.

01.05.2014 13:00, Werner LEMBERG пишет:
latin vertical edge hinting (style `latn_dflt') [...]
Are you sure that auto-hinter gets compiled into JavaScript at all?
Maybe it helps if you compare the log output using the following value
for FT2_DEBUG:

   afglobal:5 afhints:5 aflatin:5 afharfbuzz:5

Second, outline sizes are all wrong in JavaScript, even though I
render font at exactly the same size.
This might be a consequence of trying to call the auto-hinter if it
isn't there.

So it seems to me that for some reason glyph and its outline simple
do not get scaled in JavaScript version. Could anyone point me where
to look in FreeType code to check why does scaling isn't happening?
Do a breakpoint around line 717 of `base/ftobjs.c' (in function
`FT_Load_Glyph') and follow the call to


which should bring you into the `autofit' module (i.e., functions
starting with the prefix `af_').


reply via email to

[Prev in Thread] Current Thread [Next in Thread]