Convert osgText and freetype plugin across to keeping the font size as state that
is passed into the getGlyph and getKerning methods rather than a current state of the font itself.
This commit is contained in:
@@ -80,7 +80,7 @@ TextBase::~TextBase()
|
||||
|
||||
void TextBase::setFontResolution(unsigned int width, unsigned int height)
|
||||
{
|
||||
_fontSize = FontSizePair(width,height);
|
||||
_fontSize = FontResolution(width,height);
|
||||
computeGlyphRepresentation();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user