OpenType cmap table can use gid=0 to mean "not covered" to produce
more optimized cmap subtables. Return false from get_nominal_glyph()
for those. hb-ft already does this.
if (!gid)
return false;
*glyph = gid;
- return true;
+ return *glyph != 0;
}
inline bool sanitize (hb_sanitize_context_t *c) const
}
*glyph = gid & 0xFFFFu;
- return true;
+ return *glyph != 0;
}
static inline void get_all_codepoints_func (const void *obj, hb_set_t *out)
if (!gid)
return false;
*glyph = gid;
- return true;
+ return *glyph != 0;
}
inline bool sanitize (hb_sanitize_context_t *c) const
if (i == -1)
return false;
*glyph = T::group_get_glyph (groups[i], codepoint);
- return true;
+ return *glyph != 0;
}
inline void get_all_codepoints (hb_set_t *out) const