* Test if a font setting uses the default font. * @return true iff the font is not configured and no fallback font data is present. */
| 155 | * @return true iff the font is not configured and no fallback font data is present. |
| 156 | */ |
| 157 | static bool IsDefaultFont(const FontCacheSubSetting &setting) |
| 158 | { |
| 159 | return setting.font.empty() && setting.os_handle == nullptr; |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Get the scalable font size to use for a FontSize. |
no test coverage detected