MCPcopy Create free account
hub / github.com/comaps/comaps / GetFontNames

Method GetFontNames

libs/platform/platform.cpp:192–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void 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
219void Platform::GetFilesByExt(std::string const & directory, std::string_view ext, FilesList & outFiles)
220{

Callers 3

mainFunction · 0.80
GlyphRendererMethod · 0.80

Calls 4

ASSERTFunction · 0.85
emptyMethod · 0.45
insertMethod · 0.45
endMethod · 0.45

Tested by 1

GlyphRendererMethod · 0.64