Hi Dirk,
On 6 February 2013 15:08, Dirk Langner <[email protected]> wrote:
> The space "allocated" in the texture depends on resolution and on fontsize!
> Currently i'm trying to improve the GlyphTexture by removing "unused" glyphs
> from texture and reuse the newly free area to prevent using multiple textures!
GlyphTexture isn't pre-allocated, it's allocated on demand so if a
Glyph is added to the GlyphTexture is will be used, there shouldn't be
any unused GlyphTexture. To avoid using multiple GlyphTexture you can
hint to use larger GlyphTexture. see Font::setTextureSizeHint(..)
method:
/** Set the size of texture to create to store the glyph images
when rendering.
* Note, this doesn't affect already created Texture Glhph's.*/
void setTextureSizeHint(unsigned int width,unsigned int height);
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org