OpenTTD Source  20240919-master-gdf0233f4c2
ICUParagraphLayout::ICUVisualRun Class Reference

Visual run contains data about the bit of text with the same font. More...

Inheritance diagram for ICUParagraphLayout::ICUVisualRun:
ParagraphLayouter::VisualRun

Public Member Functions

 ICUVisualRun (const ICURun &run, int x)
 Constructor for a new ICUVisualRun. More...
 
std::span< const GlyphIDGetGlyphs () const override
 
std::span< const PositionGetPositions () const override
 
std::span< const int > GetGlyphToCharMap () const override
 
const FontGetFont () const override
 
int GetLeading () const override
 
int GetGlyphCount () const override
 
int GetAdvance () const
 

Private Attributes

std::vector< GlyphIDglyphs
 
std::vector< Positionpositions
 
std::vector< int > glyph_to_char
 
int total_advance
 
const Fontfont
 

Detailed Description

Visual run contains data about the bit of text with the same font.

Definition at line 62 of file gfx_layout_icu.cpp.

Constructor & Destructor Documentation

◆ ICUVisualRun()

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.

Parameters
runThe ICURun to base the visual run on.
xThe offset of the run on the line.

Definition at line 131 of file gfx_layout_icu.cpp.


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