|
OpenTTD Source 20251213-master-g1091fa6071
|
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, const Font &font) | |
| void | Shape (UChar *buff, size_t length) |
| Shape a single run. | |
| void | FallbackShape (UChar *buff) |
| Manually shape a run for built-in non-truetype fonts. | |
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< ParagraphLayouter::Position > | 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 40 of file gfx_layout_icu.cpp.
|
inline |
Definition at line 54 of file gfx_layout_icu.cpp.
| void ICURun::FallbackShape | ( | UChar * | buff | ) |
Manually shape a run for built-in non-truetype fonts.
Similar to but not quite the same as UniscribeRun::FallbackShape.
| buff | The complete buffer of the run. |
Definition at line 153 of file gfx_layout_icu.cpp.
References FontCache::GetGlyphWidth(), FontCache::MapCharToGlyph(), SwapRtlPairedCharacters(), Utf16DecodeChar(), and Utf16IsLeadSurrogate().
| 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 194 of file gfx_layout_icu.cpp.
References _current_language, FONT_SCALE, FontCache::GetOSHandle(), FontCache::IsBuiltInFont(), and LanguagePackHeader::isocode.
| std::vector<int> ICURun::advance |
The advance (width) of the glyphs. Valid after Shape() is called.
Definition at line 49 of file gfx_layout_icu.cpp.
| Font ICURun::font |
Font of the run.
Definition at line 46 of file gfx_layout_icu.cpp.
| std::vector<int> ICURun::glyph_to_char |
The mapping from glyphs to characters. Valid after Shape() is called.
Definition at line 50 of file gfx_layout_icu.cpp.
| std::vector<GlyphID> ICURun::glyphs |
The glyphs of the run. Valid after Shape() is called.
Definition at line 48 of file gfx_layout_icu.cpp.
| int ICURun::length |
Length of the run in the buffer.
Definition at line 43 of file gfx_layout_icu.cpp.
| UBiDiLevel ICURun::level |
Embedding level of the run.
Definition at line 44 of file gfx_layout_icu.cpp.
| std::vector<ParagraphLayouter::Position> ICURun::positions |
The positions of the glyphs. Valid after Shape() is called.
Definition at line 51 of file gfx_layout_icu.cpp.
Referenced by ICUParagraphLayout::ICUVisualRun::ICUVisualRun().
| UScriptCode ICURun::script |
Script of the run.
Definition at line 45 of file gfx_layout_icu.cpp.
| int ICURun::start |
Start of the run in the buffer.
Definition at line 42 of file gfx_layout_icu.cpp.
| int ICURun::total_advance = 0 |
The total advance of the run. Valid after Shape() is called.
Definition at line 52 of file gfx_layout_icu.cpp.