[cff] Avoid left-shift of negative numbers (#54322).
* src/cff/cffgload.c (cff_slot_load): Use multiplication.
This commit is contained in:
parent
8f09eb5ce0
commit
14032290bf
@ -1,3 +1,9 @@
|
||||
2018-07-20 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[cff] Avoid left-shift of negative numbers (#54322).
|
||||
|
||||
* src/cff/cffgload.c (cff_slot_load): Use multiplication.
|
||||
|
||||
2018-07-17 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Allow FT_ENCODING_NONE for `FT_Select_Charmap'.
|
||||
|
@ -280,16 +280,16 @@
|
||||
glyph->root.outline.n_points = 0;
|
||||
glyph->root.outline.n_contours = 0;
|
||||
|
||||
glyph->root.metrics.width = (FT_Pos)metrics.width << 6;
|
||||
glyph->root.metrics.height = (FT_Pos)metrics.height << 6;
|
||||
glyph->root.metrics.width = (FT_Pos)metrics.width * 64;
|
||||
glyph->root.metrics.height = (FT_Pos)metrics.height * 64;
|
||||
|
||||
glyph->root.metrics.horiBearingX = (FT_Pos)metrics.horiBearingX << 6;
|
||||
glyph->root.metrics.horiBearingY = (FT_Pos)metrics.horiBearingY << 6;
|
||||
glyph->root.metrics.horiAdvance = (FT_Pos)metrics.horiAdvance << 6;
|
||||
glyph->root.metrics.horiBearingX = (FT_Pos)metrics.horiBearingX * 64;
|
||||
glyph->root.metrics.horiBearingY = (FT_Pos)metrics.horiBearingY * 64;
|
||||
glyph->root.metrics.horiAdvance = (FT_Pos)metrics.horiAdvance * 64;
|
||||
|
||||
glyph->root.metrics.vertBearingX = (FT_Pos)metrics.vertBearingX << 6;
|
||||
glyph->root.metrics.vertBearingY = (FT_Pos)metrics.vertBearingY << 6;
|
||||
glyph->root.metrics.vertAdvance = (FT_Pos)metrics.vertAdvance << 6;
|
||||
glyph->root.metrics.vertBearingX = (FT_Pos)metrics.vertBearingX * 64;
|
||||
glyph->root.metrics.vertBearingY = (FT_Pos)metrics.vertBearingY * 64;
|
||||
glyph->root.metrics.vertAdvance = (FT_Pos)metrics.vertAdvance * 64;
|
||||
|
||||
glyph->root.format = FT_GLYPH_FORMAT_BITMAP;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user