| 190 | } |
| 191 | |
| 192 | void Platform::GetFontNames(FilesList & res) const |
| 193 | { |
| 194 | ASSERT(res.empty(), ()); |
| 195 | |
| 196 | /// @todo Actually, this list should present once in all our code. |
| 197 | char constexpr const * arrDef[] = { |
| 198 | "fonts/00_NotoNaskhArabic-Regular.ttf", |
| 199 | "fonts/00_NotoSansBengali-Regular.ttf", |
| 200 | "fonts/00_NotoSansHebrew-Regular.ttf", |
| 201 | "fonts/00_NotoSansMalayalam-Regular.ttf", |
| 202 | "fonts/00_NotoSansThai-Regular.ttf", |
| 203 | "fonts/00_NotoSerifDevanagari-Regular.ttf", |
| 204 | "fonts/01_dejavusans.ttf", |
| 205 | "fonts/02_droidsans-fallback.ttf", |
| 206 | "fonts/03_jomolhari-id-a3d.ttf", |
| 207 | "fonts/04_padauk.ttf", |
| 208 | "fonts/05_khmeros.ttf", |
| 209 | "fonts/06_code2000.ttf", |
| 210 | "fonts/07_roboto_medium.ttf", |
| 211 | }; |
| 212 | res.insert(res.end(), arrDef, arrDef + ARRAY_SIZE(arrDef)); |
| 213 | |
| 214 | GetSystemFontNames(res); |
| 215 | |
| 216 | LOG(LINFO, ("Available font files:", (res))); |
| 217 | } |
| 218 | |
| 219 | void Platform::GetFilesByExt(std::string const & directory, std::string_view ext, FilesList & outFiles) |
| 220 | { |