|
OpenTTD Source 20251213-master-g1091fa6071
|
Visual run contains data about the bit of text with the same font. More...
Public Member Functions | |
| ICUVisualRun (const ICURun &run, int x) | |
| Constructor for a new ICUVisualRun. | |
| std::span< const GlyphID > | GetGlyphs () const override |
| std::span< const Position > | GetPositions () const override |
| std::span< const int > | GetGlyphToCharMap () const override |
| const Font & | GetFont () const override |
| int | GetLeading () const override |
| int | GetGlyphCount () const override |
| int | GetAdvance () const |
Private Attributes | |
| std::vector< GlyphID > | glyphs |
| std::vector< Position > | positions |
| std::vector< int > | glyph_to_char |
| int | total_advance |
| Font | font |
Visual run contains data about the bit of text with the same font.
Definition at line 66 of file gfx_layout_icu.cpp.
| ICUParagraphLayout::ICUVisualRun::ICUVisualRun | ( | const ICURun & | run, |
| int | x | ||
| ) |
Constructor for a new ICUVisualRun.
It bases all information on the ICURun, which should already be shaped.
| run | The ICURun to base the visual run on. |
| x | The offset of the run on the line. |
Definition at line 135 of file gfx_layout_icu.cpp.
References ICURun::positions.
|
inline |
Definition at line 85 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Implements ParagraphLayouter::VisualRun.
Definition at line 82 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Implements ParagraphLayouter::VisualRun.
Definition at line 84 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Implements ParagraphLayouter::VisualRun.
Definition at line 78 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Implements ParagraphLayouter::VisualRun.
Definition at line 80 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Implements ParagraphLayouter::VisualRun.
Definition at line 83 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Implements ParagraphLayouter::VisualRun.
Definition at line 79 of file gfx_layout_icu.cpp.
|
private |
Definition at line 73 of file gfx_layout_icu.cpp.
|
private |
Definition at line 70 of file gfx_layout_icu.cpp.
|
private |
Definition at line 68 of file gfx_layout_icu.cpp.
|
private |
Definition at line 69 of file gfx_layout_icu.cpp.
|
private |
Definition at line 72 of file gfx_layout_icu.cpp.