Glyph
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2010 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGTEXT_GLYPH
#define OSGTEXT_GLYPH 1
#include <string>
#include <istream>
#include <osg/Vec2>
#include <osg/Image>
#include <osg/Texture2D>
#include <osg/StateSet>
#include <osg/Geometry>
#include <osg/Geode>
#include <osgText/Export>
#include <osgText/KerningType>
#include <osgText/Style>
#include <OpenThreads/ReentrantMutex>
namespace osgText {
class Font;
class Text;
class Glyph3D;
class GlyphGeometry;
class GlyphTexture;
enum ShaderTechnique
{
NO_TEXT_SHADER = 0x0,
GREYSCALE = 0x1,
SIGNED_DISTANCE_FIELD = 0x2,
ALL_FEATURES = GREYSCALE | SIGNED_DISTANCE_FIELD
};
class OSGTEXT_EXPORT Glyph : public osg::Image
{
public:
Glyph(Font* font, unsigned int glyphCode);
Font* getFont() { return _font; }
const Font* getFont() const { return _font; }
unsigned int getGlyphCode() const { return _glyphCode; }
void setFontResolution(const FontResolution& fontRes) { _fontResolution = fontRes; }
const FontResolution& getFontResolution() const { return _fontResolution; }
void setWidth(float width) { _width = width; }
float getWidth() const { return _width; }
void setHeight(float height) { _height = height; }
float getHeight() const { return _height; }
void setHorizontalBearing(const osg::Vec2& bearing);
const osg::Vec2& getHorizontalBearing() const;
void setHorizontalAdvance(float advance);
float getHorizontalAdvance() const;
void setVerticalBearing(const osg::Vec2& bearing);
const osg::Vec2& getVerticalBearing() const;
void setVerticalAdvance(float advance);
float getVerticalAdvance() const;
struct TextureInfo : public osg::Referenced
{
TextureInfo():
texture(0),
texelMargin(0.0f) {}
TextureInfo(GlyphTexture* tex, int x, int y, const osg::Vec2& mintc, const osg::Vec2& maxtc, float margin):
texture(tex),
texturePositionX(x),
texturePositionY(y),
minTexCoord(mintc),
maxTexCoord(maxtc),
texelMargin(margin) {}
GlyphTexture* texture;
int texturePositionX;
int texturePositionY;
osg::Vec2 minTexCoord;
osg::Vec2 maxTexCoord;
float texelMargin;
};
void setTextureInfo(ShaderTechnique technique, TextureInfo* info);
const TextureInfo* getTextureInfo(ShaderTechnique technique) const;
TextureInfo* getOrCreateTextureInfo(ShaderTechnique technique);
protected:
virtual ~Glyph();
Font* _font;
unsigned int _glyphCode;
FontResolution _fontResolution;
float _width;
float _height;
osg::Vec2 _horizontalBearing;
float _horizontalAdvance;
osg::Vec2 _verticalBearing;
float _verticalAdvance;
typedef std::vector< osg::ref_ptr<TextureInfo> > TextureInfoList;
TextureInfoList _textureInfoList;
mutable OpenThreads::ReentrantMutex _textureInfoListMutex;
};
class OSGTEXT_EXPORT GlyphGeometry : public osg::Referenced
{
public:
GlyphGeometry();
void setup(const Glyph3D* glyph, const Style* style);
bool match(const Style* style) const;
osg::Geode* getGeode() const { return _geode.get(); }
osg::Geometry* getGeometry() const { return _geometry.get(); }
void setVertexArray(osg::Vec3Array * va) { _vertices = va; }
osg::Vec3Array * getVertexArray() const { return _vertices.get(); }
void setNormalArray(osg::Vec3Array* na) { _normals = na; }
osg::Vec3Array* getNormalArray() const { return _normals.get(); }
osg::Geometry::PrimitiveSetList& getFrontPrimitiveSetList() { return _frontPrimitiveSetList; }
osg::Geometry::PrimitiveSetList& getWallPrimitiveSetList() { return _wallPrimitiveSetList; }
osg::Geometry::PrimitiveSetList& getBackPrimitiveSetList() { return _backPrimitiveSetList; }
virtual void setThreadSafeRefUnref(bool threadSafe);
protected:
osg::ref_ptr<Style> _style;
osg::ref_ptr<osg::Geode> _geode;
osg::ref_ptr<osg::Geometry> _geometry;
osg::ref_ptr<osg::Vec3Array> _vertices;
osg::ref_ptr<osg::Vec3Array> _normals;
osg::Geometry::PrimitiveSetList _frontPrimitiveSetList;
osg::Geometry::PrimitiveSetList _wallPrimitiveSetList;
osg::Geometry::PrimitiveSetList _backPrimitiveSetList;
};
class OSGTEXT_EXPORT Glyph3D : public osg::Referenced
{
public:
Glyph3D(Font* font, unsigned int glyphCode);
Font* getFont() { return _font; }
const Font* getFont() const { return _font; }
unsigned int getGlyphCode() const { return _glyphCode; }
void setWidth(float width) { _width = width; }
float getWidth() const { return _width; }
void setHeight(float height) { _height = height; }
float getHeight() const { return _height; }
void setHorizontalBearing(const osg::Vec2& bearing) { _horizontalBearing=bearing; }
const osg::Vec2 & getHorizontalBearing() const { return _horizontalBearing; }
void setHorizontalAdvance(float advance) { _horizontalAdvance=advance; }
float getHorizontalAdvance() const { return _horizontalAdvance; }
void setVerticalBearing(const osg::Vec2& bearing) { _verticalBearing=bearing; }
const osg::Vec2& getVerticalBearing() const { return _verticalBearing; }
void setVerticalAdvance(float advance) { _verticalAdvance=advance; }
float getVerticalAdvance() const { return _verticalAdvance; }
void setBoundingBox(osg::BoundingBox & bb) { _bb=bb; }
const osg::BoundingBox & getBoundingBox() const { return _bb; }
virtual void setThreadSafeRefUnref(bool threadSafe);
void setRawVertexArray(osg::Vec3Array* vertices) { _rawVertexArray = vertices; }
osg::Vec3Array* getRawVertexArray() { return _rawVertexArray.get(); }
const osg::Vec3Array* getRawVertexArray() const { return _rawVertexArray.get(); }
osg::Geometry::PrimitiveSetList & getRawFacePrimitiveSetList() { return _rawFacePrimitiveSetList; }
const osg::Geometry::PrimitiveSetList & getRawFacePrimitiveSetList() const { return _rawFacePrimitiveSetList; }
GlyphGeometry* getGlyphGeometry(const Style* style);
protected:
virtual ~Glyph3D() {}
Font* _font;
unsigned int _glyphCode;
float _width;
float _height;
osg::Vec2 _horizontalBearing;
float _horizontalAdvance;
osg::Vec2 _verticalBearing;
float _verticalAdvance;
osg::BoundingBox _bb;
// osg::Vec2 _advance;
osg::ref_ptr<osg::Vec3Array> _rawVertexArray;
osg::Geometry::PrimitiveSetList _rawFacePrimitiveSetList;
typedef std::list< osg::ref_ptr<GlyphGeometry> > GlyphGeometries;
GlyphGeometries _glyphGeometries;
};
class OSGTEXT_EXPORT GlyphTexture : public osg::Texture2D
{
public:
GlyphTexture();
const char* className() const { return "GlyphTexture"; }
virtual int compare(const osg::StateAttribute& rhs) const;
void setShaderTechnique(ShaderTechnique technique) { _shaderTechnique = technique; }
ShaderTechnique getShaderTechnique() const { return _shaderTechnique; }
int getEffectMargin(const Glyph* glyph);
int getTexelMargin(const Glyph* glyph);
bool getSpaceForGlyph(Glyph* glyph, int& posX, int& posY);
void addGlyph(Glyph* glyph,int posX, int posY);
virtual void setThreadSafeRefUnref(bool threadSafe);
virtual void resizeGLObjectBuffers(unsigned int maxSize);
osg::Image* createImage();
protected:
virtual ~GlyphTexture();
void copyGlyphImage(Glyph* glyph, Glyph::TextureInfo* info);
ShaderTechnique _shaderTechnique;
int _usedY;
int _partUsedX;
int _partUsedY;
typedef std::vector< osg::ref_ptr<Glyph> > GlyphRefList;
typedef std::vector< const Glyph* > GlyphPtrList;
typedef osg::buffered_object< GlyphPtrList > GlyphBuffer;
GlyphRefList _glyphs;
mutable GlyphBuffer _glyphsToSubload;
mutable OpenThreads::Mutex _mutex;
};
}
#endif
Geode
Geometry
Image
KerningType
ReentrantMutex
StateSet
Texture2D
Vec2
OpenThreads::Mutex
This class provides an object-oriented thread mutex interface.
Definition Mutex:31
OpenThreads::ReentrantMutex
Definition ReentrantMutex:24
osgText::Font
Definition Font:68
osgText::Glyph3D
Definition Glyph:181
osgText::Glyph3D::_glyphGeometries
GlyphGeometries _glyphGeometries
Definition Glyph:251
osgText::Glyph3D::getRawVertexArray
const osg::Vec3Array * getRawVertexArray() const
Definition Glyph:219
osgText::Glyph3D::getRawFacePrimitiveSetList
const osg::Geometry::PrimitiveSetList & getRawFacePrimitiveSetList() const
Definition Glyph:223
osgText::Glyph3D::GlyphGeometries
std::list< osg::ref_ptr< GlyphGeometry > > GlyphGeometries
Definition Glyph:250
osgText::Glyph3D::_horizontalAdvance
float _horizontalAdvance
Definition Glyph:238
osgText::Glyph3D::_font
Font * _font
Definition Glyph:231
osgText::Glyph3D::_bb
osg::BoundingBox _bb
Definition Glyph:243
osgText::Glyph3D::setWidth
void setWidth(float width)
Definition Glyph:191
osgText::Glyph3D::getRawFacePrimitiveSetList
osg::Geometry::PrimitiveSetList & getRawFacePrimitiveSetList()
Definition Glyph:222
osgText::Glyph3D::setBoundingBox
void setBoundingBox(osg::BoundingBox &bb)
Definition Glyph:209
osgText::Glyph3D::getFont
Font * getFont()
Definition Glyph:186
osgText::Glyph3D::setThreadSafeRefUnref
virtual void setThreadSafeRefUnref(bool threadSafe)
osgText::Glyph3D::setVerticalAdvance
void setVerticalAdvance(float advance)
Definition Glyph:206
osgText::Glyph3D::_verticalBearing
osg::Vec2 _verticalBearing
Definition Glyph:240
osgText::Glyph3D::getGlyphGeometry
GlyphGeometry * getGlyphGeometry(const Style *style)
osgText::Glyph3D::setHorizontalBearing
void setHorizontalBearing(const osg::Vec2 &bearing)
Definition Glyph:197
osgText::Glyph3D::setRawVertexArray
void setRawVertexArray(osg::Vec3Array *vertices)
Definition Glyph:217
osgText::Glyph3D::_height
float _height
Definition Glyph:235
osgText::Glyph3D::_width
float _width
Definition Glyph:234
osgText::Glyph3D::_verticalAdvance
float _verticalAdvance
Definition Glyph:241
osgText::Glyph3D::setVerticalBearing
void setVerticalBearing(const osg::Vec2 &bearing)
Definition Glyph:203
osgText::Glyph3D::setHeight
void setHeight(float height)
Definition Glyph:194
osgText::Glyph3D::getBoundingBox
const osg::BoundingBox & getBoundingBox() const
Definition Glyph:210
osgText::Glyph3D::_glyphCode
unsigned int _glyphCode
Definition Glyph:232
osgText::Glyph3D::_horizontalBearing
osg::Vec2 _horizontalBearing
Definition Glyph:237
osgText::Glyph3D::getVerticalAdvance
float getVerticalAdvance() const
Definition Glyph:207
osgText::Glyph3D::getHorizontalAdvance
float getHorizontalAdvance() const
Definition Glyph:201
osgText::Glyph3D::getGlyphCode
unsigned int getGlyphCode() const
Definition Glyph:189
osgText::Glyph3D::~Glyph3D
virtual ~Glyph3D()
Definition Glyph:229
osgText::Glyph3D::getWidth
float getWidth() const
Definition Glyph:192
osgText::Glyph3D::getHeight
float getHeight() const
Definition Glyph:195
osgText::Glyph3D::Glyph3D
Glyph3D(Font *font, unsigned int glyphCode)
osgText::Glyph3D::getHorizontalBearing
const osg::Vec2 & getHorizontalBearing() const
Definition Glyph:198
osgText::Glyph3D::setHorizontalAdvance
void setHorizontalAdvance(float advance)
Definition Glyph:200
osgText::Glyph3D::_rawFacePrimitiveSetList
osg::Geometry::PrimitiveSetList _rawFacePrimitiveSetList
Definition Glyph:248
osgText::Glyph3D::getFont
const Font * getFont() const
Definition Glyph:187
osgText::Glyph3D::_rawVertexArray
osg::ref_ptr< osg::Vec3Array > _rawVertexArray
Definition Glyph:247
osgText::Glyph3D::getRawVertexArray
osg::Vec3Array * getRawVertexArray()
Definition Glyph:218
osgText::Glyph3D::getVerticalBearing
const osg::Vec2 & getVerticalBearing() const
Definition Glyph:204
osgText::GlyphGeometry
Definition Glyph:134
osgText::GlyphGeometry::_geode
osg::ref_ptr< osg::Geode > _geode
Definition Glyph:169
osgText::GlyphGeometry::setVertexArray
void setVertexArray(osg::Vec3Array *va)
Definition Glyph:147
osgText::GlyphGeometry::_style
osg::ref_ptr< Style > _style
Definition Glyph:168
osgText::GlyphGeometry::match
bool match(const Style *style) const
osgText::GlyphGeometry::_vertices
osg::ref_ptr< osg::Vec3Array > _vertices
Definition Glyph:171
osgText::GlyphGeometry::getBackPrimitiveSetList
osg::Geometry::PrimitiveSetList & getBackPrimitiveSetList()
Definition Glyph:161
osgText::GlyphGeometry::setup
void setup(const Glyph3D *glyph, const Style *style)
osgText::GlyphGeometry::GlyphGeometry
GlyphGeometry()
osgText::GlyphGeometry::_wallPrimitiveSetList
osg::Geometry::PrimitiveSetList _wallPrimitiveSetList
Definition Glyph:175
osgText::GlyphGeometry::getVertexArray
osg::Vec3Array * getVertexArray() const
Definition Glyph:149
osgText::GlyphGeometry::_backPrimitiveSetList
osg::Geometry::PrimitiveSetList _backPrimitiveSetList
Definition Glyph:176
osgText::GlyphGeometry::_geometry
osg::ref_ptr< osg::Geometry > _geometry
Definition Glyph:170
osgText::GlyphGeometry::_frontPrimitiveSetList
osg::Geometry::PrimitiveSetList _frontPrimitiveSetList
Definition Glyph:174
osgText::GlyphGeometry::getFrontPrimitiveSetList
osg::Geometry::PrimitiveSetList & getFrontPrimitiveSetList()
Definition Glyph:157
osgText::GlyphGeometry::getGeometry
osg::Geometry * getGeometry() const
Definition Glyph:144
osgText::GlyphGeometry::_normals
osg::ref_ptr< osg::Vec3Array > _normals
Definition Glyph:172
osgText::GlyphGeometry::setNormalArray
void setNormalArray(osg::Vec3Array *na)
Definition Glyph:152
osgText::GlyphGeometry::setThreadSafeRefUnref
virtual void setThreadSafeRefUnref(bool threadSafe)
osgText::GlyphGeometry::getWallPrimitiveSetList
osg::Geometry::PrimitiveSetList & getWallPrimitiveSetList()
Definition Glyph:159
osgText::GlyphGeometry::getNormalArray
osg::Vec3Array * getNormalArray() const
Definition Glyph:154
osgText::GlyphGeometry::getGeode
osg::Geode * getGeode() const
Definition Glyph:143
osgText::GlyphTexture
Definition Glyph:257
osgText::GlyphTexture::addGlyph
void addGlyph(Glyph *glyph, int posX, int posY)
osgText::GlyphTexture::compare
virtual int compare(const osg::StateAttribute &rhs) const
osgText::GlyphTexture::GlyphPtrList
std::vector< const Glyph * > GlyphPtrList
Definition Glyph:301
osgText::GlyphTexture::_glyphs
GlyphRefList _glyphs
Definition Glyph:304
osgText::GlyphTexture::_shaderTechnique
ShaderTechnique _shaderTechnique
Definition Glyph:294
osgText::GlyphTexture::_partUsedX
int _partUsedX
Definition Glyph:297
osgText::GlyphTexture::getTexelMargin
int getTexelMargin(const Glyph *glyph)
osgText::GlyphTexture::resizeGLObjectBuffers
virtual void resizeGLObjectBuffers(unsigned int maxSize)
osgText::GlyphTexture::_glyphsToSubload
GlyphBuffer _glyphsToSubload
Definition Glyph:305
osgText::GlyphTexture::setThreadSafeRefUnref
virtual void setThreadSafeRefUnref(bool threadSafe)
osgText::GlyphTexture::getEffectMargin
int getEffectMargin(const Glyph *glyph)
osgText::GlyphTexture::createImage
osg::Image * createImage()
osgText::GlyphTexture::copyGlyphImage
void copyGlyphImage(Glyph *glyph, Glyph::TextureInfo *info)
osgText::GlyphTexture::_partUsedY
int _partUsedY
Definition Glyph:298
osgText::GlyphTexture::className
const char * className() const
Definition Glyph:262
osgText::GlyphTexture::setShaderTechnique
void setShaderTechnique(ShaderTechnique technique)
Definition Glyph:267
osgText::GlyphTexture::GlyphTexture
GlyphTexture()
osgText::GlyphTexture::GlyphBuffer
osg::buffered_object< GlyphPtrList > GlyphBuffer
Definition Glyph:302
osgText::GlyphTexture::getShaderTechnique
ShaderTechnique getShaderTechnique() const
Definition Glyph:269
osgText::GlyphTexture::getSpaceForGlyph
bool getSpaceForGlyph(Glyph *glyph, int &posX, int &posY)
osgText::GlyphTexture::~GlyphTexture
virtual ~GlyphTexture()
osgText::GlyphTexture::GlyphRefList
std::vector< osg::ref_ptr< Glyph > > GlyphRefList
Definition Glyph:300
osgText::GlyphTexture::_mutex
OpenThreads::Mutex _mutex
Definition Glyph:307
osgText::GlyphTexture::_usedY
int _usedY
Definition Glyph:296
osgText::Glyph
Definition Glyph:50
osgText::Glyph::getFont
Font * getFont()
Definition Glyph:55
osgText::Glyph::_textureInfoListMutex
OpenThreads::ReentrantMutex _textureInfoListMutex
Definition Glyph:130
osgText::Glyph::_glyphCode
unsigned int _glyphCode
Definition Glyph:114
osgText::Glyph::_height
float _height
Definition Glyph:119
osgText::Glyph::_textureInfoList
TextureInfoList _textureInfoList
Definition Glyph:128
osgText::Glyph::setHorizontalAdvance
void setHorizontalAdvance(float advance)
osgText::Glyph::_verticalAdvance
float _verticalAdvance
Definition Glyph:125
osgText::Glyph::getFont
const Font * getFont() const
Definition Glyph:56
osgText::Glyph::_horizontalAdvance
float _horizontalAdvance
Definition Glyph:122
osgText::Glyph::_width
float _width
Definition Glyph:118
osgText::Glyph::getHorizontalBearing
const osg::Vec2 & getHorizontalBearing() const
osgText::Glyph::setFontResolution
void setFontResolution(const FontResolution &fontRes)
Definition Glyph:60
osgText::Glyph::Glyph
Glyph(Font *font, unsigned int glyphCode)
osgText::Glyph::setTextureInfo
void setTextureInfo(ShaderTechnique technique, TextureInfo *info)
osgText::Glyph::setVerticalBearing
void setVerticalBearing(const osg::Vec2 &bearing)
osgText::Glyph::_verticalBearing
osg::Vec2 _verticalBearing
Definition Glyph:124
osgText::Glyph::getGlyphCode
unsigned int getGlyphCode() const
Definition Glyph:58
osgText::Glyph::getTextureInfo
const TextureInfo * getTextureInfo(ShaderTechnique technique) const
osgText::Glyph::getOrCreateTextureInfo
TextureInfo * getOrCreateTextureInfo(ShaderTechnique technique)
osgText::Glyph::setHorizontalBearing
void setHorizontalBearing(const osg::Vec2 &bearing)
osgText::Glyph::getVerticalAdvance
float getVerticalAdvance() const
osgText::Glyph::_fontResolution
FontResolution _fontResolution
Definition Glyph:116
osgText::Glyph::_horizontalBearing
osg::Vec2 _horizontalBearing
Definition Glyph:121
osgText::Glyph::TextureInfoList
std::vector< osg::ref_ptr< TextureInfo > > TextureInfoList
Definition Glyph:127
osgText::Glyph::getFontResolution
const FontResolution & getFontResolution() const
Definition Glyph:61
osgText::Glyph::getVerticalBearing
const osg::Vec2 & getVerticalBearing() const
osgText::Glyph::getHeight
float getHeight() const
Definition Glyph:67
osgText::Glyph::setHeight
void setHeight(float height)
Definition Glyph:66
osgText::Glyph::_font
Font * _font
Definition Glyph:113
osgText::Glyph::getWidth
float getWidth() const
Definition Glyph:64
osgText::Glyph::getHorizontalAdvance
float getHorizontalAdvance() const
osgText::Glyph::setWidth
void setWidth(float width)
Definition Glyph:63
osgText::Glyph::~Glyph
virtual ~Glyph()
osgText::Glyph::setVerticalAdvance
void setVerticalAdvance(float advance)
osgText::Style
Definition osgText/Style:72
osg::Geode
Definition Geode:29
osg::Geometry
Definition Geometry:31
osg::Geometry::PrimitiveSetList
std::vector< ref_ptr< PrimitiveSet > > PrimitiveSetList
Definition Geometry:102
osg::Image
Definition Image:179
osg::Referenced
Definition Referenced:44
osg::StateAttribute
Definition StateAttribute:77
osg::Texture2D
Definition Texture2D:25
osg::buffered_object< GlyphPtrList >
osg::ref_ptr
Definition ref_ptr:32
osgText
osgText::FontResolution
std::pair< unsigned int, unsigned int > FontResolution
Definition KerningType:20
osgText::ShaderTechnique
ShaderTechnique
Definition Glyph:42
osgText::SIGNED_DISTANCE_FIELD
@ SIGNED_DISTANCE_FIELD
Definition Glyph:45
osgText::ALL_FEATURES
@ ALL_FEATURES
Definition Glyph:46
osgText::GREYSCALE
@ GREYSCALE
Definition Glyph:44
osgText::NO_TEXT_SHADER
@ NO_TEXT_SHADER
Definition Glyph:43
osg::Vec2
Vec2f Vec2
Definition Vec2:21
osg::Vec3Array
TemplateArray< Vec3, Array::Vec3ArrayType, 3, GL_FLOAT > Vec3Array
Definition Array:449
osg::BoundingBox
BoundingBoxd BoundingBox
Definition BoundingBox:257
Export
OSGTEXT_EXPORT
#define OSGTEXT_EXPORT
Definition osgText/Export:39
Style
osgText::Glyph::TextureInfo
Definition Glyph:82
osgText::Glyph::TextureInfo::minTexCoord
osg::Vec2 minTexCoord
Definition Glyph:98
osgText::Glyph::TextureInfo::texture
GlyphTexture * texture
Definition Glyph:95
osgText::Glyph::TextureInfo::TextureInfo
TextureInfo()
Definition Glyph:83
osgText::Glyph::TextureInfo::texelMargin
float texelMargin
Definition Glyph:100
osgText::Glyph::TextureInfo::texturePositionX
int texturePositionX
Definition Glyph:96
osgText::Glyph::TextureInfo::maxTexCoord
osg::Vec2 maxTexCoord
Definition Glyph:99
osgText::Glyph::TextureInfo::texturePositionY
int texturePositionY
Definition Glyph:97
osgText::Glyph::TextureInfo::TextureInfo
TextureInfo(GlyphTexture *tex, int x, int y, const osg::Vec2 &mintc, const osg::Vec2 &maxtc, float margin)
Definition Glyph:87