|
OpenTTD Source 20260304-master-g1baaa74679
|
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 |
| Get the glyphs to draw. | |
| std::span< const Position > | GetPositions () const override |
| Get the positions for each of the glyphs. | |
| std::span< const int > | GetGlyphToCharMap () const override |
| The offset for each of the glyphs to the character run that was passed to the Layouter. | |
| const Font * | GetFont () const override |
| Get the font. | |
| int | GetLeading () const override |
| Get the font leading, or distance between the baselines of consecutive lines. | |
| size_t | GetGlyphCount () const override |
| Get the number of glyphs. | |
| int | GetAdvance () const |
| Public Member Functions inherited from ParagraphLayouter::VisualRun | |
| virtual | ~VisualRun ()=default |
| Ensure the destructor of the sub classes are called as well. | |
Private Attributes | |
| std::vector< GlyphID > | glyphs |
| std::vector< Position > | positions |
| std::vector< int > | glyph_to_char |
| int | total_advance |
| const Font * | font |
Visual run contains data about the bit of text with the same font.
Definition at line 62 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 131 of file gfx_layout_icu.cpp.
References ICURun::positions.
|
inline |
Definition at line 81 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Get the font.
Implements ParagraphLayouter::VisualRun.
Definition at line 78 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Get the number of glyphs.
Implements ParagraphLayouter::VisualRun.
Definition at line 80 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Get the glyphs to draw.
Implements ParagraphLayouter::VisualRun.
Definition at line 74 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
The offset for each of the glyphs to the character run that was passed to the Layouter.
Implements ParagraphLayouter::VisualRun.
Definition at line 76 of file gfx_layout_icu.cpp.
|
inlineoverridevirtual |
Get the font leading, or distance between the baselines of consecutive lines.
Implements ParagraphLayouter::VisualRun.
Definition at line 79 of file gfx_layout_icu.cpp.
References Font::fc, and FontCache::GetHeight().
|
inlineoverridevirtual |
Get the positions for each of the glyphs.
Implements ParagraphLayouter::VisualRun.
Definition at line 75 of file gfx_layout_icu.cpp.
|
private |
Definition at line 69 of file gfx_layout_icu.cpp.
|
private |
Definition at line 66 of file gfx_layout_icu.cpp.
|
private |
Definition at line 64 of file gfx_layout_icu.cpp.
|
private |
Definition at line 65 of file gfx_layout_icu.cpp.
|
private |
Definition at line 68 of file gfx_layout_icu.cpp.