|
OpenTTD Source 20260304-master-g1baaa74679
|
Visual run contains data about the bit of text with the same font. More...
Public Member Functions | |
| UniscribeVisualRun (const UniscribeRun &range, int x) | |
| UniscribeVisualRun (UniscribeVisualRun &&other) noexcept | |
| 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< WORD > | char_to_glyph |
| int | start_pos |
| int | total_advance |
| Font * | font |
| std::vector< int > | glyph_to_char |
Visual run contains data about the bit of text with the same font.
Definition at line 73 of file string_uniscribe.cpp.
| UniscribeParagraphLayout::UniscribeVisualRun::UniscribeVisualRun | ( | const UniscribeRun & | range, |
| int | x ) |
Definition at line 484 of file string_uniscribe.cpp.
|
noexcept |
Definition at line 497 of file string_uniscribe.cpp.
|
inline |
Definition at line 96 of file string_uniscribe.cpp.
|
inlineoverridevirtual |
Get the font.
Implements ParagraphLayouter::VisualRun.
Definition at line 93 of file string_uniscribe.cpp.
|
inlineoverridevirtual |
Get the number of glyphs.
Implements ParagraphLayouter::VisualRun.
Definition at line 95 of file string_uniscribe.cpp.
Referenced by GetGlyphToCharMap().
|
inlineoverridevirtual |
Get the glyphs to draw.
Implements ParagraphLayouter::VisualRun.
Definition at line 89 of file string_uniscribe.cpp.
|
overridevirtual |
The offset for each of the glyphs to the character run that was passed to the Layouter.
Implements ParagraphLayouter::VisualRun.
Definition at line 504 of file string_uniscribe.cpp.
References GetGlyphCount().
|
inlineoverridevirtual |
Get the font leading, or distance between the baselines of consecutive lines.
Implements ParagraphLayouter::VisualRun.
Definition at line 94 of file string_uniscribe.cpp.
References Font::fc, and FontCache::GetHeight().
|
inlineoverridevirtual |
Get the positions for each of the glyphs.
Implements ParagraphLayouter::VisualRun.
Definition at line 90 of file string_uniscribe.cpp.
|
private |
Definition at line 77 of file string_uniscribe.cpp.
|
private |
Definition at line 81 of file string_uniscribe.cpp.
|
mutableprivate |
Definition at line 83 of file string_uniscribe.cpp.
|
private |
Definition at line 75 of file string_uniscribe.cpp.
|
private |
Definition at line 76 of file string_uniscribe.cpp.
|
private |
Definition at line 79 of file string_uniscribe.cpp.
|
private |
Definition at line 80 of file string_uniscribe.cpp.