diff options
author | chai <chaifix@163.com> | 2018-10-14 10:40:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-14 10:40:07 +0800 |
commit | 43dd2b51a5060e23e6c07bbd6fa5f6227ed14f1f (patch) | |
tree | dc3ea83cbd9a3781e8120a05dfbfa3724a66616d /test/05Font/main.cpp | |
parent | 3d6cf33a941234aa45bd4f8c61cadac50f75289a (diff) |
*update
Diffstat (limited to 'test/05Font/main.cpp')
-rw-r--r-- | test/05Font/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/05Font/main.cpp b/test/05Font/main.cpp index 6eebe04..9d44f2f 100644 --- a/test/05Font/main.cpp +++ b/test/05Font/main.cpp @@ -68,7 +68,7 @@ Color frag(Color col, Texture tex, Vertex v) font = TTF::createTTF(data, 15); const char* str = u8R"(源氏物语げんじものがたり)"; int l = strlen(str); - page = font->typeset(unicode::Text(unicode::Encode::UTF8, str, strlen(str)), 15, 0); + page = font->typeset(Text(Encode::UTF8, str, strlen(str)), 15, 0); delete data; //canvas = Canvas::createCanvas(100, 100); //page = font->typeset("こんにちは世界!", 120, 20); |