| 1068 | |
| 1069 | #ifndef DGL_NO_SHARED_RESOURCES |
| 1070 | bool 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 | // ----------------------------------------------------------------------- |
no test coverage detected