10#ifndef GFX_LAYOUT_ICU_H
11#define GFX_LAYOUT_ICU_H
15#include <unicode/brkiter.h>
16#include <unicode/ustring.h>
28 static std::unique_ptr<ParagraphLayouter> GetParagraphLayout(UChar *buff, UChar *buff_end,
FontMap &font_mapping);
29 static size_t AppendToBuffer(UChar *buff,
const UChar *buffer_last,
char32_t c);
34 static std::unique_ptr<icu::BreakIterator> break_iterator;
Helper class to construct a new ICUParagraphLayout.
static std::unique_ptr< icu::BreakIterator > GetBreakIterator()
Get a thread-safe line break iterator.
UChar CharType
Helper for GetLayouter, to get the right type.
static void InitializeLayouter()
Initialize data needed for the ICU layouter.
static const bool SUPPORTS_RTL
Helper for GetLayouter, to get whether the layouter supports RTL.
Functions related to laying out the texts.
std::vector< std::pair< int, Font * > > FontMap
Mapping from index to font.