* Get the settings of a given font size. * @param fs The font size to look up. * @return The settings. */
| 194 | * @return The settings. |
| 195 | */ |
| 196 | inline FontCacheSubSetting *GetFontCacheSubSetting(FontSize fs) |
| 197 | { |
| 198 | switch (fs) { |
| 199 | default: NOT_REACHED(); |
| 200 | case FS_SMALL: return &_fcsettings.small; |
| 201 | case FS_NORMAL: return &_fcsettings.medium; |
| 202 | case FS_LARGE: return &_fcsettings.large; |
| 203 | case FS_MONO: return &_fcsettings.mono; |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | uint GetFontCacheFontSize(FontSize fs); |
| 208 | std::string GetFontCacheFontName(FontSize fs); |
no test coverage detected