From 8bbbd1fc70cc22c5b981d151594026a1bfa2b085 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 7 Nov 2003 09:00:22 +0000 Subject: [PATCH] Made getWidth and getHeight const. --- include/osgText/Font | 4 ++-- src/osgText/Font.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/osgText/Font b/include/osgText/Font index 6248c29e8..9eacd62cd 100644 --- a/include/osgText/Font +++ b/include/osgText/Font @@ -66,8 +66,8 @@ public: /** Set the pixel width and height hint.*/ virtual void setSize(unsigned int width, unsigned int height); - unsigned int getWidth(); - unsigned int getHeight(); + unsigned int getWidth() const; + unsigned int getHeight() const; /** Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint.*/ virtual osg::Vec2 getKerning(unsigned int leftcharcode,unsigned int rightcharcode, KerningType kerningType); diff --git a/src/osgText/Font.cpp b/src/osgText/Font.cpp index 05edfc64f..cf2450d09 100644 --- a/src/osgText/Font.cpp +++ b/src/osgText/Font.cpp @@ -122,12 +122,12 @@ void Font::setSize(unsigned int width, unsigned int height) if (_implementation.valid()) _implementation->setSize(width, height); } -unsigned int Font::getWidth() +unsigned int Font::getWidth() const { return _width; } -unsigned int Font::getHeight() +unsigned int Font::getHeight() const { return _height; }