Skip to content

Commit

Permalink
Merge pull request #2068 from ksimmulator/develop
Browse files Browse the repository at this point in the history
fixed drawStringAsShapes to respect both spaceSize and letterSpacing
  • Loading branch information
bakercp committed May 24, 2013
2 parents 9b28735 + a6aa34f commit ca8fc64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/openFrameworks/graphics/ofTrueTypeFont.cpp
Expand Up @@ -1121,11 +1121,11 @@ void ofTrueTypeFont::drawStringAsShapes(string c, float x, float y) {

}else if (c[index] == ' ') {
int cy = (int)'p' - NUM_CHARACTER_TO_START;
X += cps[cy].setWidth;
X += cps[cy].setWidth * letterSpacing * spaceSize;
//glTranslated(cps[cy].width, 0, 0);
} else if(cy > -1){
drawCharAsShape(c[index], X, Y);
X += cps[cy].setWidth;
X += cps[cy].setWidth * letterSpacing;
//glTranslated(cps[cy].setWidth, 0, 0);
}
}
Expand Down

0 comments on commit ca8fc64

Please sign in to comment.