Skip to content
Permalink
Browse files

ofTrueTypeFont getStringAsPoints() (#694)

ofTTFCharacter -> ofPath + add info for default methods
  • Loading branch information...
postcom authored and arturoc committed Apr 21, 2019
1 parent d7e6bd0 commit 3faaf413985ca28c2563397ad24a986173c3f7bf
Showing with 4 additions and 1 deletion.
  1. +4 −1 documentation/graphics/ofTrueTypeFont.markdown
@@ -855,7 +855,10 @@ void testApp::update(){
void testApp::draw(){
// get the string as paths
vector < ofTTFCharacter > paths = font.getStringAsPoints("hello!");
bool vflip = true; // OF flips y coordinate in the default perspective,
// should be false if using a camera for example
bool filled = true; // or false for contours
vector < ofPath > paths = font.getStringAsPoints("hello!", vflip, filled);
ofPushMatrix();
ofTranslate(ofGetWidth()/2, ofGetHeight()/2);

0 comments on commit 3faaf41

Please sign in to comment.
You can’t perform that action at this time.