Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions documentation/graphics/ofTrueTypeFont.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -806,14 +806,14 @@ This is a variable to represent how wide spaces are sized. It's a scalar for t

<!----------------------------------------------------------------------------->

###int getStringAsPoints()
###int getStringAsPoints(string, vflip = true, filled = true)

<!--
_syntax: getStringAsPoints()_
_syntax: getStringAsPoints(string, vflip = true, filled = true)_
_name: getStringAsPoints_
_returns: int_
_returns_description: _
_parameters: _
_parameters: const string &s, bool vflip=true, bool filled=true_
_access: public_
_version_started: 0073_
_version_deprecated: _
Expand All @@ -834,7 +834,7 @@ _inlined_description: _

_description: _

This returns a vector of ofTTFCharacters (which is actually an ofPath) for a given string. This means you can get access to the point data / outlines of the letter forms.
This returns a vector of ofPaths for a given string. This means you can get access to the point data / outlines of the letter forms.

~~~~{.cpp}

Expand All @@ -855,7 +855,7 @@ void testApp::update(){
void testApp::draw(){

// get the string as paths
vector < ofTTFCharacter > paths = font.getStringAsPoints("hello!");
vector < ofTTFCharacter > paths = font.getStringAsPoints("hello!", true, false);

ofPushMatrix();
ofTranslate(ofGetWidth()/2, ofGetHeight()/2);
Expand Down