OpenTTD Source
20241108-master-g80f628063a
|
Helper class to construct a new UniscribeParagraphLayout. More...
#include <string_uniscribe.h>
Public Types | |
typedef wchar_t | CharType |
Helper for GetLayouter, to get the right type. | |
Static Public Member Functions | |
static ParagraphLayouter * | GetParagraphLayout (CharType *buff, CharType *buff_end, FontMap &fontMapping) |
Get the actual ParagraphLayout for the given buffer. More... | |
static size_t | AppendToBuffer (CharType *buff, const CharType *buffer_last, char32_t c) |
Append a wide character to the internal buffer. More... | |
Static Public Attributes | |
static const bool | SUPPORTS_RTL = true |
Helper for GetLayouter, to get whether the layouter supports RTL. | |
Helper class to construct a new UniscribeParagraphLayout.
Definition at line 23 of file string_uniscribe.h.
|
inlinestatic |
Append a wide character to the internal buffer.
buff | The buffer to append to. |
buffer_last | The end of the buffer. |
c | The character to add. |
Definition at line 46 of file string_uniscribe.h.
|
static |
Get the actual ParagraphLayout for the given buffer.
buff | The begin of the buffer. |
buff_end | The location after the last element in the buffer. |
fontMapping | THe mapping of the fonts. |
Definition at line 279 of file string_uniscribe.cpp.
References UniscribeItemizeString(), and UniscribeShapeRun().