diff --git a/include/osgText/Text b/include/osgText/Text index 864b04e82..55cef7fb4 100644 --- a/include/osgText/Text +++ b/include/osgText/Text @@ -97,7 +97,7 @@ public: /** Set the rendered character size in object coordinates.*/ - void setCharacterSize(float height,float ascpectRatio=1.0f); + void setCharacterSize(float height,float aspectRatio=1.0f); float getCharacterHeight() const { return _characterHeight; } float getCharacterAspectRatio() const { return _characterAspectRatio; } diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 3afb63583..59929acad 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -76,10 +76,10 @@ void Text::setFontSize(unsigned int width, unsigned int height) } -void Text::setCharacterSize(float height,float ascpectRatio) +void Text::setCharacterSize(float height,float aspectRatio) { _characterHeight = height; - _characterAspectRatio = ascpectRatio; + _characterAspectRatio = aspectRatio; computeGlyphRepresentation(); }