![]() |
VR-Forces 4.6 Class Documentation
|
A class for rendering text objects using harfbuzz layout for right to left and left to right text shaping. More...

Classes | |
| struct | CharacterInformation |
| Stucture that contains information about a particular character, color change or simple line/character advancement. More... | |
| class | HarfBuzzShaper |
| struct | LineInformation |
| Structure that contains information about the layout of a line of text. More... | |
Public Member Functions | |
| DtTextLayout () | |
| CTOR. | |
| virtual | ~DtTextLayout () |
| DTOR. | |
| virtual void | renderText (DtTexturedGlyphRenderer *, DtTextProxy *) |
| Renders the text to the given glyph renderer. | |
| virtual DtUnicode | bidiFix (const DtUnicode &) const |
| Fixes the text for bi-directional issues. Currently only reverses numerals for right to left text. | |
| virtual Dt2dPoint | calculateGlyphSize (const DtFontSP &font, const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| Calculates the bounding box for a string. | |
| virtual DtBoundingBox | calculateBoundingBox (const DtFontSP &font, const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| Calculate the bounding box for a string. | |
| virtual bool | isShaped (void) const |
| virtual void | layoutRightToLeft (const DtTextProxy *) |
| virtual void | layoutLeftToRight (const DtTextProxy *) |
Public Member Functions inherited from makVrv::DtTextLayoutInterface | |
| DtTextLayoutInterface () | |
| CTOR. | |
| virtual | ~DtTextLayoutInterface () |
| DTOR. | |
Protected Types | |
| typedef std::vector < LineInformation > | Lines |
Protected Member Functions | |
| virtual bool | renderCharacter (DtGlyphRenderer &renderer, DtPen &pen, const DtFontSP &font, const unsigned int &character) |
| Renders the character to the position specified by the pen. | |
| virtual void | renderLayout (DtTexturedGlyphRenderer *, DtTextProxy *) |
| Renders the laid out text to the given renderer. | |
Protected Attributes | |
| HarfBuzzShaper | myShaper |
| std::vector< std::string > | myFontFilePaths |
| Members that are used to store information about the last font/point size used. | |
| unsigned int | myPointSize |
| DtUnicode | myLastStringRendered |
| DtUnicode | myRenderedText |
| Lines | myLines |
| double | myLineLength |
| bool | myRightToLeftLayout |
A class for rendering text objects using harfbuzz layout for right to left and left to right text shaping.
|
protected |
| makVrv::DtTextLayout::DtTextLayout | ( | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Renders the text to the given glyph renderer.
Implements makVrv::DtTextLayoutInterface.
Fixes the text for bi-directional issues. Currently only reverses numerals for right to left text.
|
virtual |
Calculates the bounding box for a string.
Implements makVrv::DtTextLayoutInterface.
|
virtual |
Calculate the bounding box for a string.
Implements makVrv::DtTextLayoutInterface.
|
inlinevirtual |
Implements makVrv::DtTextLayoutInterface.
|
virtual |
|
virtual |
|
protectedvirtual |
Renders the character to the position specified by the pen.
|
protectedvirtual |
Renders the laid out text to the given renderer.
|
protected |
|
protected |
Members that are used to store information about the last font/point size used.
Used for efficiency
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |