[cff] minor
This commit is contained in:
parent
0558413f27
commit
2d7221a0e3
|
@ -564,11 +564,11 @@ struct FDSelect3_4
|
||||||
if (glyph < ranges[i].first)
|
if (glyph < ranges[i].first)
|
||||||
break;
|
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 () { return ranges.len; }
|
||||||
GID_TYPE nRanges () const { return ranges.len; }
|
GID_TYPE nRanges () const { return ranges.len; }
|
||||||
GID_TYPE &sentinel () { return StructAfter<GID_TYPE> (ranges[nRanges () - 1]); }
|
GID_TYPE &sentinel () { return StructAfter<GID_TYPE> (ranges[nRanges () - 1]); }
|
||||||
const GID_TYPE &sentinel () const { return StructAfter<GID_TYPE> (ranges[nRanges () - 1]); }
|
const GID_TYPE &sentinel () const { return StructAfter<GID_TYPE> (ranges[nRanges () - 1]); }
|
||||||
|
|
||||||
|
@ -608,8 +608,8 @@ struct FDSelect
|
||||||
|
|
||||||
hb_codepoint_t get_fd (hb_codepoint_t glyph) const
|
hb_codepoint_t get_fd (hb_codepoint_t glyph) const
|
||||||
{
|
{
|
||||||
if (this == &Null (FDSelect))
|
if (this == &Null (FDSelect)) return 0;
|
||||||
return 0;
|
|
||||||
switch (format)
|
switch (format)
|
||||||
{
|
{
|
||||||
case 0: return u.format0.get_fd (glyph);
|
case 0: return u.format0.get_fd (glyph);
|
||||||
|
|
Loading…
Reference in New Issue