TextShaper implementation using Monotype's WTShaper library. More...
#include <kanzi/plugins/itype/itype_text_shaper.hpp>
Classes | |
| struct | FontData |
| Runtime data for text layouting to be passed to WTShaper. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from kanzi::TextShaper | |
| FontFile & | getFontFile (const FontRuntime &font) const |
| Gets the font file that the passed font is currently using. | |
Protected Attributes inherited from kanzi::TextShaper | |
| uint8_t | m_baseBiDiLevel |
| The base bidi-level. | |
| const FontRuntime & | m_font |
| Font object used for shaping. | |
TextShaper implementation using Monotype's WTShaper library.
|
explicit |
Constructor.
| font | Font object used for shaping. |
|
explicit |
Constructor that constructs the shaper object to use with the Thai dictionary.
| font | Font object to use for shaping. |
| thaiDictionary | Thai dictionary object. |
|
virtual |
Destructor.
|
overridevirtual |
Use this function to:
| unicodeText | Text to shape and mirror. |
Reimplemented from kanzi::TextShaper.
|
overridevirtual |
TextShaper::appendTerminator() implementation.
Reimplemented from kanzi::TextShaper.
|
overridevirtual |
TextShaper::insertText() implementation.
Reimplemented from kanzi::TextShaper.
|
overridevirtual |
TextShaper::removeText() implementation.
Reimplemented from kanzi::TextShaper.
|
overridevirtual |
Reorders the text line for text written right-to-left.
| layout | Pointer to the intermediate layout containing the text. |
| line | Information defining the currently processed line. |
Reimplemented from kanzi::TextShaper.
|
overridevirtual |
Iterates all layouted glyphs on the line and adjusts their positions based on the shaping results.
| layout | Pointer to intermediate layout containing the text. |
| line | Information defining the currently processed line. |
Reimplemented from kanzi::TextShaper.
|
overridevirtual |
Cleans up the data that this text shaper used for shaping a specific text run.
You must call this function at the end of every text shaping run.
Reimplemented from kanzi::TextShaper.
|
overridevirtual |
The TextShaper::saveShaperState() implementation for the iType text shaper.
Reimplemented from kanzi::TextShaper.
|
overridevirtual |
The TextShaper::loadShaperState() implementation for the iType text shaper.
| state | The state of the ItypeTextShaper to restore. |
Reimplemented from kanzi::TextShaper.