From 2d7221a0e3552b1d902629d4ab6c0ce22db983a6 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 1 Oct 2019 15:05:02 +0330 Subject: [PATCH] [cff] minor --- src/hb-ot-cff-common.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh index e3915b1e2..6735c74be 100644 --- a/src/hb-ot-cff-common.hh +++ b/src/hb-ot-cff-common.hh @@ -564,11 +564,11 @@ struct FDSelect3_4 if (glyph < ranges[i].first) break; - return (hb_codepoint_t)ranges[i - 1].fd; + return (hb_codepoint_t) ranges[i - 1].fd; } - GID_TYPE &nRanges () { return ranges.len; } - GID_TYPE nRanges () const { return ranges.len; } + GID_TYPE &nRanges () { return ranges.len; } + GID_TYPE nRanges () const { return ranges.len; } GID_TYPE &sentinel () { return StructAfter (ranges[nRanges () - 1]); } const GID_TYPE &sentinel () const { return StructAfter (ranges[nRanges () - 1]); } @@ -608,8 +608,8 @@ struct FDSelect hb_codepoint_t get_fd (hb_codepoint_t glyph) const { - if (this == &Null (FDSelect)) - return 0; + if (this == &Null (FDSelect)) return 0; + switch (format) { case 0: return u.format0.get_fd (glyph);