aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEbrahim Byagowi <ebrahim@gnu.org>2020-08-10 08:35:06 +0430
committerebraminio <ebraminio@gmail.com>2020-08-10 08:43:54 +0430
commitf06d7331e8b1643680df7f0126b2d89254563dcb (patch)
tree462f4c298dde03328af6f56d52659f76cc01f117 /src
parentdb96c7f67aac93ea025cf992c20acdf2364d93bc (diff)
downloadharfbuzz_ng-f06d7331e8b1643680df7f0126b2d89254563dcb.tar.gz
[glyf] minor
Diffstat (limited to 'src')
-rw-r--r--src/hb-ot-glyf-table.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh
index 5ab641334..437aa816a 100644
--- a/src/hb-ot-glyf-table.hh
+++ b/src/hb-ot-glyf-table.hh
@@ -618,10 +618,10 @@ struct glyf
}
/* Read x & y coordinates */
- return (read_points (p, points_, bytes,
- [] (contour_point_t &p, float v) { p.x = v; }, FLAG_X_SHORT, FLAG_X_SAME) &&
- read_points (p, points_, bytes,
- [] (contour_point_t &p, float v) { p.y = v; }, FLAG_Y_SHORT, FLAG_Y_SAME));
+ return read_points (p, points_, bytes, [] (contour_point_t &p, float v) { p.x = v; },
+ FLAG_X_SHORT, FLAG_X_SAME)
+ && read_points (p, points_, bytes, [] (contour_point_t &p, float v) { p.y = v; },
+ FLAG_Y_SHORT, FLAG_Y_SAME);
}
};
@@ -1207,7 +1207,7 @@ struct glyf
hb_bytes_t dest_glyph = dest_start.copy (c);
dest_glyph = hb_bytes_t (&dest_glyph, dest_glyph.length + dest_end.copy (c).length);
unsigned int pad_length = padding ();
- DEBUG_MSG (SUBSET, nullptr, "serialize %d byte glyph, width %d pad %d", dest_glyph.length, dest_glyph.length + pad_length, pad_length);
+ DEBUG_MSG (SUBSET, nullptr, "serialize %d byte glyph, width %d pad %d", dest_glyph.length, dest_glyph.length + pad_length, pad_length);
HBUINT8 pad;
pad = 0;