MCPcopy Create free account
hub / github.com/DISTRHO/DPF / loadSharedResources

Method loadSharedResources

dgl/src/NanoVG.cpp:1070–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068
1069#ifndef DGL_NO_SHARED_RESOURCES
1070bool NanoVG::loadSharedResources()
1071{
1072 if (fContext == nullptr) return false;
1073
1074 if (nvgFindFont(fContext, NANOVG_DEJAVU_SANS_TTF) >= 0)
1075 return true;
1076
1077 using namespace dpf_resources;
1078
1079 return nvgCreateFontMem(fContext, NANOVG_DEJAVU_SANS_TTF, (uchar*)dejavusans_ttf, dejavusans_ttf_size, 0) >= 0;
1080}
1081#endif
1082
1083// -----------------------------------------------------------------------

Callers 1

LeftSideWidgetMethod · 0.80

Calls 2

nvgFindFontFunction · 0.85
nvgCreateFontMemFunction · 0.85

Tested by

no test coverage detected