OpenTTD Source  20241121-master-g67a0fccfad
ICURun Class Reference

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=USCRIPT_UNKNOWN, Font *font=nullptr)
 
void Shape (UChar *buff, size_t length)
 Shape a single run. More...
 

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.
 
Fontfont
 Font of the run.
 
std::vector< GlyphIDglyphs
 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::Positionpositions
 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.
 

Detailed Description

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 37 of file gfx_layout_icu.cpp.

Member Function Documentation

◆ Shape()

void ICURun::Shape ( UChar *  buff,
size_t  buff_length 
)

Shape a single run.

Parameters
buffThe buffer of which a partial (depending on start/length of the run) will be shaped.
lengthThe length of the buffer.

Definition at line 150 of file gfx_layout_icu.cpp.


The documentation for this class was generated from the following file: