From bf13c8ca147d68d373e2ae46efd48bb6e6866067 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 28 Apr 2005 19:24:09 +0000 Subject: [PATCH] Changed the default texture size to 512x512 to reduce the number of textures required when rendering text. --- src/osgText/Font.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osgText/Font.cpp b/src/osgText/Font.cpp index 951178a36..82150fdb1 100644 --- a/src/osgText/Font.cpp +++ b/src/osgText/Font.cpp @@ -86,8 +86,8 @@ Font::Font(FontImplementation* implementation): _width(16), _height(16), _margin(2), - _textureWidthHint(256), - _textureHeightHint(256), + _textureWidthHint(512), + _textureHeightHint(512), _minFilterHint(osg::Texture::LINEAR_MIPMAP_LINEAR), _magFilterHint(osg::Texture::LINEAR) { @@ -247,11 +247,11 @@ void Font::addGlyph(unsigned int width, unsigned int height, unsigned int charco glyphTexture = new GlyphTexture; - //std::cout<<" Creating new GlyphTexture "<setGlyphImageMargin(_margin);