Skip to content

Instantly share code, notes, and snippets.

@moebiussurfing
Last active February 17, 2020 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moebiussurfing/b2ebe8cc2eccb6eeb6e4bcc234d4e69f to your computer and use it in GitHub Desktop.
Save moebiussurfing/b2ebe8cc2eccb6eeb6e4bcc234d4e69f to your computer and use it in GitHub Desktop.
openFrameworks - ofxGui theme. check font file exist
//ofxGui theme
string path = GLOBAL_Path + "fonts/overpass-mono-bold.otf";
ofFile file(path);
if (file.exists())
{
ofLogNotice("ofxSceneTEST") << "ofxGui theme: LOADED FONT FILE '" << path << "'";
ofxGuiSetFont(path, 9);
}
else
{
ofLogError("ofxSceneTEST") << "ofxGui theme: FONT FILE '" << path << "' NOT FOUND!";
}
ofxGuiSetDefaultHeight(20);
ofxGuiSetBorderColor(32);
ofxGuiSetFillColor(ofColor(48));
ofxGuiSetTextColor(ofColor::white);
ofxGuiSetHeaderColor(ofColor(24));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment