Browse Source

Use system font if DGL_NO_SHARED_RESOURCES is defined

Signed-off-by: falkTX <falktx@falktx.com>
pull/215/merge
falkTX 5 years ago
parent
commit
05752d0fb2
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      examples/Info/InfoExampleUI.cpp

+ 5
- 0
examples/Info/InfoExampleUI.cpp View File

@@ -36,7 +36,12 @@ public:

fSampleRate = getSampleRate();

#ifdef DGL_NO_SHARED_RESOURCES
createFontFromFile("sans", "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf");
#else
loadSharedResources();
#endif

setGeometryConstraints(405, 256, true);
}



Loading…
Cancel
Save