> Good catches!  Doing some investigation it seems that the `nmod' and
> `umod' arrays were indeed never used, only the `have' array.

Done. We can get rid of `have' array too, IMHO. It is mainly used for
diagnostic of multiple charcodes/encodings.
The glyphs are sorted anyway and CMap functions perform binary search
afterwards. Instead of the `have' accounting, we can make sure that

bdf_cmap_char_index selects the first instance of a glyph among the replicates.
bdf_cmap_char_next skips over the replicates.

_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to