glyphPath method
Implementation
@override
Path? glyphPath(int glyphId) {
if (_pathCache.containsKey(glyphId)) return _pathCache[glyphId];
Path? path;
try {
final UPdfCff? outlines = cff;
path = outlines != null ? outlines.glyphPath(glyphId) : _glyfPath(glyphId, 0);
} on Object {
path = null;
}
if (_pathCache.length > 4096) _pathCache.clear();
_pathCache[glyphId] = path;
return path;
}