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,
&gloader->current.outline,
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
hinting->load_glyph
which should bring you into the `autofit' module (i.e., functions
starting with the prefix `af_').
Werner
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel