Esempio n. 1
0
inline void TextLayout::set(TextFormatter& formatter, const wchar_t* begin, const wchar_t* end,
                            int page_idx)
{
    formatter.clear(); // Throws
    std::size_t n = std::size_t(end - begin);
    formatter.write(begin, n); // Throws
    formatter.format(*this, page_idx); // Throws
}
Esempio n. 2
0
inline void TextLayout::set(TextFormatter& formatter, std::wstring text, int page_idx)
{
    formatter.clear(); // Throws
    formatter.write(text); // Throws
    formatter.format(*this, page_idx); // Throws
}