aboutsummaryrefslogtreecommitdiff
path: root/test/05Font/main.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-01 19:09:07 +0800
committerchai <chaifix@163.com>2018-10-01 19:09:07 +0800
commit1bfd342a90460e7360f96ea4ba7c4e02645c9b42 (patch)
treef9dc9eed4699e9bea4167ac2fcf4c0bf66579753 /test/05Font/main.cpp
parenta3d22ce8cc65603d65e70ab024dea5bce0ec1ce0 (diff)
*update
Diffstat (limited to 'test/05Font/main.cpp')
-rw-r--r--test/05Font/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/05Font/main.cpp b/test/05Font/main.cpp
index 3c4fd46..ec82b6a 100644
--- a/test/05Font/main.cpp
+++ b/test/05Font/main.cpp
@@ -11,6 +11,7 @@ Canvas* canvas;
FontData* data = nullptr;
JSLProgram* shader = nullptr;
Page* page = nullptr;
+
float dt;
void onLoad()
{
@@ -27,7 +28,7 @@ Color effect(Color col, Texture tex, vec2 uv, vec2 screen)
Buffer buffer;
fs->read("font.ttf", &buffer);
data = FontData::createFontData((const unsigned char*)buffer.data, buffer.size);
- font = Font::createFont(data, 12);
+ font = Font::createFont(data, 15);
//canvas = Canvas::createCanvas(100, 100);
//page = font->typeset("こんにちは世界!", 120, 20);
}
@@ -77,7 +78,7 @@ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
》开始在日本东京电视台播出。2004年,漫画进而改编成电影。2006年,漩涡鸣人入选
美国《新闻周刊》日文版于10月18日发行的特集中选出的“全世界最受尊敬的100位日本
人”。[2]
-)", 10, 10 + 15 * 2, 14);
+)", 12, 10 + 15 * 2, 18);
//font->print(u8"你好世界!", 10, 10 + 15*3);
//font->render(page);
glColor4f(1, 1, 1, 1);