//class ofxLetterTextObject
ofxLetterTextObject::ofxLetterTextObject(ofxSosoTrueTypeFont *iFont, char *iString):ofxTextObject(iFont, iString)
{	
	//Format the text with a call to drawText(). Note last arg is false, which says format, but do not draw.
	//drawText(0,0,false);		
	//Reconstruct the letter objects based on the updated formatting.
	rebuildLetters();
}
void ofxLetterTextObject::setFont(ofxSosoTrueTypeFont *iFont)
{
	ofxTextObject::setFont(iFont);
	//drawText(0,0,false);	
	rebuildLetters();			
}
void ofxLetterTextObject::setSpaceWidth(float iWidth)
{
	ofxTextObject::setSpaceWidth(iWidth);
	//drawText(0,0,false);	
	rebuildLetters();		
}
void ofxLetterTextObject::setAlignment(TextObjectAlignment iAlignment)
{
	ofxTextObject::setAlignment(iAlignment);
	rebuildLetters();
}
void ofxLetterTextObject::setLeading(float iLeading)
{
	ofxTextObject::setLeading(iLeading);
	//drawText(0,0,false);	
	rebuildLetters();		
}
void ofxLetterTextObject::setPointSize(float iPointSize)
{
	ofxTextObject::setPointSize(iPointSize);
	//drawText(0,0,false);	
	rebuildLetters();		
}
void ofxLetterTextObject::setString(char *iString)
{	
	ofxTextObject::setString(iString);
	//drawText(0,0,false);	
	rebuildLetters();	
}
Beispiel #8
0
void ofxLetterTextObject::setWordColor(string iWord, float iR, float iG, float iB, float iA, bool iExactMatch)
{
    ofxTextObject::setWordColor(iWord, iR, iG, iB, iA, iExactMatch);
    rebuildLetters();
    
}
Beispiel #9
0
void ofxLetterTextObject::setWordColor(int iIndex, float iR, float iG, float iB, float iA)
{
    ofxTextObject::setWordColor(iIndex, iR, iG, iB, iA);
    rebuildLetters();
}