()
| 79 | let cached: Glyphs | null = null; |
| 80 | |
| 81 | export function getGlyphs(): Glyphs { |
| 82 | if (cached === null) { |
| 83 | cached = supportsUnicode() ? UNICODE_GLYPHS : ASCII_GLYPHS; |
| 84 | } |
| 85 | return cached; |
| 86 | } |
| 87 | |
| 88 | /** Reset the cached glyph set. Test-only; production code should call `getGlyphs()`. */ |
| 89 | export function _resetGlyphsCache(): void { |
no test coverage detected