예제 #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
}
예제 #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
}