Added setting of the original font reoslution to the created Glyph
This commit is contained in:
parent
de47eb3666
commit
2b010f019f
@ -351,6 +351,8 @@ osgText::Glyph* FreeTypeFont::getGlyph(const osgText::FontResolution& fontRes, u
|
|||||||
|
|
||||||
osg::ref_ptr<osgText::Glyph> glyph = new osgText::Glyph(_facade, charcode);
|
osg::ref_ptr<osgText::Glyph> glyph = new osgText::Glyph(_facade, charcode);
|
||||||
|
|
||||||
|
glyph->setFontResolution(fontRes);
|
||||||
|
|
||||||
unsigned int dataSize = width*height;
|
unsigned int dataSize = width*height;
|
||||||
unsigned char* data = new unsigned char[dataSize];
|
unsigned char* data = new unsigned char[dataSize];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user