Last active
February 17, 2020 05:41
-
-
Save moebiussurfing/b2ebe8cc2eccb6eeb6e4bcc234d4e69f to your computer and use it in GitHub Desktop.
openFrameworks - ofxGui theme. check font file exist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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