From 2b010f019f28f65c13178f4701df74ba5d5cfb68 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 8 Sep 2017 17:02:38 +0100 Subject: [PATCH] Added setting of the original font reoslution to the created Glyph --- src/osgPlugins/freetype/FreeTypeFont.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgPlugins/freetype/FreeTypeFont.cpp b/src/osgPlugins/freetype/FreeTypeFont.cpp index c647e2cf9..5d7aee6e9 100644 --- a/src/osgPlugins/freetype/FreeTypeFont.cpp +++ b/src/osgPlugins/freetype/FreeTypeFont.cpp @@ -351,6 +351,8 @@ osgText::Glyph* FreeTypeFont::getGlyph(const osgText::FontResolution& fontRes, u osg::ref_ptr glyph = new osgText::Glyph(_facade, charcode); + glyph->setFontResolution(fontRes); + unsigned int dataSize = width*height; unsigned char* data = new unsigned char[dataSize];