Skip to content

Commit

Permalink
consume glyph's advance height so we don't lose glyph's advance width
Browse files Browse the repository at this point in the history
fixes #786
  • Loading branch information
cjchapman committed Apr 11, 2019
1 parent 693d3dc commit ecf7551
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c/public/lib/source/uforead/uforead.c
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,10 @@ static int preParseGLIF(ufoCtx h, GLIF_Rec* glifRec, int tag) {
glyphWidth = atol(tempVal);
setWidth(h, tag, glyphWidth);
}
if (tokenEqualStr(tk, "height=")) {
getAttribute(h, state);
/* just discard it, as we don't currently use it */
}
}
} else if (tokenEqualStr(tk, "<outline>")) {
if (state != 1) {
Expand Down

0 comments on commit ecf7551

Please sign in to comment.