|
OpenTTD Source 20260218-master-g2123fca5ea
|
Visual run contains data about the bit of text with the same font. More...
Public Member Functions | |
| CoreTextVisualRun (CTRunRef run, Font *font, const CoreTextParagraphLayoutFactory::CharType *buff) | |
| CoreTextVisualRun (CoreTextVisualRun &&other)=default | |
| 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 |
Private Attributes | |
| std::vector< GlyphID > | glyphs |
| std::vector< Position > | positions |
| std::vector< int > | glyph_to_char |
| int | total_advance = 0 |
| Font * | font |
Visual run contains data about the bit of text with the same font.
Definition at line 45 of file string_osx.cpp.
| CoreTextParagraphLayout::CoreTextVisualRun::CoreTextVisualRun | ( | CTRunRef | run, |
| Font * | font, | ||
| const CoreTextParagraphLayoutFactory::CharType * | buff ) |
Definition at line 203 of file string_osx.cpp.
|
inline |
Definition at line 65 of file string_osx.cpp.
|
inlineoverridevirtual |
Get the font.
Implements ParagraphLayouter::VisualRun.
Definition at line 62 of file string_osx.cpp.
|
inlineoverridevirtual |
Get the number of glyphs.
Implements ParagraphLayouter::VisualRun.
Definition at line 64 of file string_osx.cpp.
|
inlineoverridevirtual |
Get the glyphs to draw.
Implements ParagraphLayouter::VisualRun.
Definition at line 58 of file string_osx.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 60 of file string_osx.cpp.
|
inlineoverridevirtual |
Get the font leading, or distance between the baselines of consecutive lines.
Implements ParagraphLayouter::VisualRun.
Definition at line 63 of file string_osx.cpp.
References Font::fc, and FontCache::GetHeight().
|
inlineoverridevirtual |
Get the positions for each of the glyphs.
Implements ParagraphLayouter::VisualRun.
Definition at line 59 of file string_osx.cpp.
|
private |
Definition at line 52 of file string_osx.cpp.
|
private |
Definition at line 49 of file string_osx.cpp.
|
private |
Definition at line 47 of file string_osx.cpp.
|
private |
Definition at line 48 of file string_osx.cpp.
|
private |
Definition at line 51 of file string_osx.cpp.