Moved Font code across to using FontSizePair internally and on Font methods, but

still using original implemetations.
This commit is contained in:
Robert Osfield
2007-12-23 13:45:37 +00:00
parent dea067050c
commit f290b75bc9
10 changed files with 20 additions and 22 deletions

View File

@@ -41,8 +41,8 @@ public:
* the closest supported font size will be selected.*/
void setFontResolution(unsigned int width, unsigned int height);
unsigned int getFontWidth() const { return _fontWidth; }
unsigned int getFontHeight() const { return _fontHeight; }
unsigned int getFontWidth() const { return _fontSize.first; }
unsigned int getFontHeight() const { return _fontSize.second; }
/** Set the text using a osgText::String.*/
@@ -239,8 +239,7 @@ protected:
// members which have public access.
unsigned int _fontWidth;
unsigned int _fontHeight;
FontSizePair _fontSize;
float _characterHeight;
float _characterAspectRatio;
CharacterSizeMode _characterSizeMode;