OpenTTD Source 20241224-master-gee860a5c8e
|
Helper class to construct a new ICUParagraphLayout. More...
#include <gfx_layout_icu.h>
Public Types | |
typedef UChar | CharType |
Helper for GetLayouter, to get the right type. | |
Static Public Member Functions | |
static std::unique_ptr< ParagraphLayouter > | GetParagraphLayout (UChar *buff, UChar *buff_end, FontMap &font_mapping) |
static size_t | AppendToBuffer (UChar *buff, const UChar *buffer_last, char32_t c) |
static void | InitializeLayouter () |
Initialize data needed for the ICU layouter. | |
static std::unique_ptr< icu::BreakIterator > | GetBreakIterator () |
Get a thread-safe line break iterator. | |
Static Public Attributes | |
static const bool | SUPPORTS_RTL = true |
Helper for GetLayouter, to get whether the layouter supports RTL. | |
Static Private Attributes | |
static std::unique_ptr< icu::BreakIterator > | break_iterator |
Helper class to construct a new ICUParagraphLayout.
Definition at line 21 of file gfx_layout_icu.h.
typedef UChar ICUParagraphLayoutFactory::CharType |
Helper for GetLayouter, to get the right type.
Definition at line 24 of file gfx_layout_icu.h.
|
static |
Definition at line 535 of file gfx_layout_icu.cpp.
|
static |
Get a thread-safe line break iterator.
Definition at line 397 of file gfx_layout_icu.cpp.
|
static |
Definition at line 356 of file gfx_layout_icu.cpp.
|
static |
Initialize data needed for the ICU layouter.
Definition at line 385 of file gfx_layout_icu.cpp.
References _current_language, and LanguagePackHeader::isocode.
Referenced by Layouter::Initialize().
|
staticprivate |
Definition at line 34 of file gfx_layout_icu.h.
|
static |
Helper for GetLayouter, to get whether the layouter supports RTL.
Definition at line 26 of file gfx_layout_icu.h.