| 149 | bool isFontLoaded() { return s_currentCaptionFont != nullptr && s_currentCaptionFont->IsLoaded(); } |
| 150 | |
| 151 | const ImWchar* GetGlyphRanges() |
| 152 | { |
| 153 | static const ImWchar ranges[] = |
| 154 | { |
| 155 | 0x0020, 0xEEFF, // All glyphs in font |
| 156 | 0, |
| 157 | }; |
| 158 | return &ranges[0]; |
| 159 | } |
| 160 | |
| 161 | // Get all font file names from the Fonts directories; we will use this to populate the |
| 162 | // dropdown in the Accessibility settings menu. |