small bug-fix, the linearHoriBearing value was not
loaded not computed correctly
This commit is contained in:
parent
c9ce9e4e3f
commit
b8817177a0
|
@ -1971,12 +1971,15 @@
|
|||
|
||||
/* copy the _unscaled_ advance width */
|
||||
metrics->horiAdvance = decoder.glyph_width;
|
||||
glyph->root.linearHoriAdvance = decoder.glyph_width;
|
||||
|
||||
/* make up vertical metrics */
|
||||
metrics->vertBearingX = 0;
|
||||
metrics->vertBearingY = 0;
|
||||
metrics->vertAdvance = 0;
|
||||
|
||||
glyph->root.linearVertAdvance = 0;
|
||||
|
||||
glyph->root.format = ft_glyph_format_outline;
|
||||
|
||||
glyph->root.outline.flags = 0;
|
||||
|
|
|
@ -275,12 +275,14 @@
|
|||
|
||||
/* copy the _unscaled_ advance width */
|
||||
metrics->horiAdvance = decoder.builder.advance.x;
|
||||
glyph->root.linearHoriAdvance = decoder.builder.advance.x;
|
||||
|
||||
/* make up vertical metrics */
|
||||
metrics->vertBearingX = 0;
|
||||
metrics->vertBearingY = 0;
|
||||
metrics->vertAdvance = 0;
|
||||
|
||||
glyph->root.linearVertAdvance = 0;
|
||||
glyph->root.format = ft_glyph_format_outline;
|
||||
|
||||
if ( size && size->root.metrics.y_ppem < 24 )
|
||||
|
|
|
@ -225,12 +225,15 @@
|
|||
|
||||
/* copy the _unscaled_ advance width */
|
||||
metrics->horiAdvance = decoder.builder.advance.x;
|
||||
glyph->root.linearHoriAdvance = decoder.builder.advance.x;
|
||||
|
||||
/* make up vertical metrics */
|
||||
metrics->vertBearingX = 0;
|
||||
metrics->vertBearingY = 0;
|
||||
metrics->vertAdvance = 0;
|
||||
|
||||
glyph->root.linearVertAdvance = 0;
|
||||
|
||||
glyph->root.format = ft_glyph_format_outline;
|
||||
|
||||
if ( size && size->root.metrics.y_ppem < 24 )
|
||||
|
|
Loading…
Reference in New Issue