From 198c3d3e5abd7068c7a8f656d0456c6ee163cfb8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 4 May 2007 12:06:31 +0000 Subject: [PATCH] Removed margin --- src/osgText/DefaultFont.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/osgText/DefaultFont.cpp b/src/osgText/DefaultFont.cpp index 65759f93f..73205782d 100644 --- a/src/osgText/DefaultFont.cpp +++ b/src/osgText/DefaultFont.cpp @@ -195,8 +195,8 @@ void DefaultFont::constructGlyphs() unsigned int sourceWidth = 8; unsigned int sourceHeight = 12; - _width = sourceWidth+2*_margin; - _height = sourceHeight+2*_margin; + _width = sourceWidth; + _height = sourceHeight; // populate the glyph mp for(unsigned int i=32;i<127;i++) @@ -223,12 +223,8 @@ void DefaultFont::constructGlyphs() unsigned char value_on = 255; unsigned char value_off = 0; - // skip the top margin - data += (_margin*_width); - for(unsigned int row=0;rowsetHorizontalBearing(osg::Vec2(0.0f,0.0f)); // bottom left.