|
OpenTTD Source
14.0-beta3
|
Helper class to store the information of all the runs of a paragraph in. More...
Public Member Functions | |
| ICURun (int start, int length, UBiDiLevel level, UScriptCode script=USCRIPT_UNKNOWN, Font *font=nullptr) | |
| void | Shape (UChar *buff, size_t length) |
| Shape a single run. More... | |
Data Fields | |
| int | start |
| Start of the run in the buffer. | |
| int | length |
| Length of the run in the buffer. | |
| UBiDiLevel | level |
| Embedding level of the run. | |
| UScriptCode | script |
| Script of the run. | |
| Font * | font |
| Font of the run. | |
| std::vector< GlyphID > | glyphs |
| The glyphs of the run. Valid after Shape() is called. | |
| std::vector< int > | advance |
| The advance (width) of the glyphs. Valid after Shape() is called. | |
| std::vector< int > | glyph_to_char |
| The mapping from glyphs to characters. Valid after Shape() is called. | |
| std::vector< Point > | positions |
| The positions of the glyphs. Valid after Shape() is called. | |
| int | total_advance = 0 |
| The total advance of the run. Valid after Shape() is called. | |
Helper class to store the information of all the runs of a paragraph in.
During itemization, more and more information is filled in.
Definition at line 37 of file gfx_layout_icu.cpp.
| void ICURun::Shape | ( | UChar * | buff, |
| size_t | buff_length | ||
| ) |
Shape a single run.
| buff | The buffer of which a partial (depending on start/length of the run) will be shaped. |
| length | The length of the buffer. |
Definition at line 150 of file gfx_layout_icu.cpp.