MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / loadFallbackFont

Function loadFallbackFont

src/override/Window.cpp:192–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191#ifndef DGL_NO_SHARED_RESOURCES
192static int loadFallbackFont(NVGcontext* const vg)
193{
194 const int font = nvgFindFont(vg, NANOVG_DEJAVU_SANS_TTF);
195 if (font >= 0)
196 return font;
197
198 using namespace dpf_resources;
199
200 return nvgCreateFontMem(vg, NANOVG_DEJAVU_SANS_TTF,
201 (uchar*)dejavusans_ttf, dejavusans_ttf_size, 0);
202}
203#endif
204
205

Callers 3

WindowMethod · 0.70
WindowSetPluginRemoteFunction · 0.70
WindowSetPluginUIFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected