diff options
Diffstat (limited to 'Build/source/texk/web2c/mfluadir/otfcc/lib/consolidate/otl/common.c')
-rw-r--r-- | Build/source/texk/web2c/mfluadir/otfcc/lib/consolidate/otl/common.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/mfluadir/otfcc/lib/consolidate/otl/common.c b/Build/source/texk/web2c/mfluadir/otfcc/lib/consolidate/otl/common.c new file mode 100644 index 00000000000..9877ceb35e9 --- /dev/null +++ b/Build/source/texk/web2c/mfluadir/otfcc/lib/consolidate/otl/common.c @@ -0,0 +1,24 @@ +#include "common.h" + +void fontop_consolidateCoverage(otfcc_Font *font, otl_Coverage *coverage, const otfcc_Options *options) { + if (!coverage) return; + for (glyphid_t j = 0; j < coverage->numGlyphs; j++) { + glyph_handle *h = &(coverage->glyphs[j]); + if (!GlyphOrder.consolidateHandle(font->glyph_order, h)) { + logWarning("[Consolidate] Ignored missing glyph /%s.\n", h->name); + Handle.dispose(h); + } + } +} + +void fontop_consolidateClassDef(otfcc_Font *font, otl_ClassDef *cd, const otfcc_Options *options) { + if (!cd) return; + for (glyphid_t j = 0; j < cd->numGlyphs; j++) { + glyph_handle *h = &(cd->glyphs[j]); + if (!GlyphOrder.consolidateHandle(font->glyph_order, h)) { + logWarning("[Consolidate] Ignored missing glyph /%s.\n", h->name); + Handle.dispose(h); + cd->classes[j] = 0; + } + } +} |