![]() |
VR-Forces Developer's Guide
|
A class for rendering text objects using harfbuzz layout for right to left and left to right text shaping.

Classes | |
| struct | CharacterInformation |
| class | HarfBuzzShaper |
| struct | LineInformation |
Protected Types | |
| typedef std::vector < LineInformation > | Lines |
Protected Member Functions | |
| virtual bool | renderCharacter (DtGlyphRenderer *renderer, const DtTextProxy *textProxy, DtPen &pen, DtFontInterface *font, const unsigned int &character, int &vertexIndex, const std::unordered_map< unsigned int, int > &mapTextureIdToTextureIndex) |
| virtual void | renderLayout (DtTexturedGlyphRenderer *, const DtTextProxy *, DtFontInterface *, const DtBoundingBox &, int &vertexIndex, const std::unordered_map< unsigned int, int > &mapTextureIdToTextureIndex) |
Protected Attributes | |
| HarfBuzzShaper | myShaper |
| std::vector< std::string > | myFontFilePaths |
| unsigned int | myPointSize |
| DtUnicode | myLastStringRendered |
| DtUnicode | myRenderedText |
| Lines | myLines |
| double | myLineLength |
| bool | myRightToLeftLayout |
|
protected |
| makVrv::DtTextLayout::DtTextLayout | ( | ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
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, in screen space, for the passed in string and font. By default, this function calculates the bounding box for the entire passed in string but it can also calculate the bounding box for a substring of the passed in string.
| font | The font to use when calculating the bounds for a string. |
| string | The string to calculate the bounds for. |
| pen | Specifies the spacing and starting position to use when calculating the bounding box. |
| pos | The position, within the passed in string, of the first character for the substring to calculate the bounding box for. |
| len | The number of characters, from pos, to consider in the passed in string. If -1, consider all remaining characters in the 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 |