| 1 |
#include "common.h" |
| 2 |
|
| 3 |
void fontop_consolidateCoverage(otfcc_Font *font, otl_Coverage *coverage, const otfcc_Options *options) { |
| 4 |
if (!coverage) return; |
| 5 |
for (glyphid_t j = 0; j < coverage->numGlyphs; j++) { |
| 6 |
glyph_handle *h = &(coverage->glyphs[j]); |
| 7 |
if (!GlyphOrder.consolidateHandle(font->glyph_order, h)) { |
| 8 |
logWarning("[Consolidate] Ignored missing glyph /%s.\n", h->name); |
| 9 |
Handle.dispose(h); |
| 10 |
} |
| 11 |
} |
| 12 |
} |
| 13 |
|
| 14 |
void fontop_consolidateClassDef(otfcc_Font *font, otl_ClassDef *cd, const otfcc_Options *options) { |
| 15 |
if (!cd) return; |
| 16 |
for (glyphid_t j = 0; j < cd->numGlyphs; j++) { |
| 17 |
glyph_handle *h = &(cd->glyphs[j]); |
| 18 |
if (!GlyphOrder.consolidateHandle(font->glyph_order, h)) { |
| 19 |
logWarning("[Consolidate] Ignored missing glyph /%s.\n", h->name); |
| 20 |
Handle.dispose(h); |
| 21 |
cd->classes[j] = 0; |
| 22 |
} |
| 23 |
} |
| 24 |
} |