* Get the font name of a given font size. * @param fs The font size to look up. * @return The font name. */
| 69 | * @return The font name. |
| 70 | */ |
| 71 | std::string FontCache::GetName(FontSize fs) |
| 72 | { |
| 73 | FontCache *fc = FontCache::Get(fs); |
| 74 | if (fc != nullptr) { |
| 75 | return fc->GetFontName(); |
| 76 | } else { |
| 77 | return "[NULL]"; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | |
| 82 | /** |
no test coverage detected