diff options
author | chai <chaifix@163.com> | 2018-10-15 20:00:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-15 20:00:58 +0800 |
commit | b3b6fbb33d2b974e7e5e538c4ceebdfb24ca7cd1 (patch) | |
tree | b8f9796dbeebb8523a2a57ec898cf1af53d61268 /bin/main.lua | |
parent | aeeb0c08ac1cf1604bb1659b2c13c1a1ed500848 (diff) |
*修改默认字体高度
Diffstat (limited to 'bin/main.lua')
-rw-r--r-- | bin/main.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/main.lua b/bin/main.lua index 6f221ac..69c6608 100644 --- a/bin/main.lua +++ b/bin/main.lua @@ -6,10 +6,10 @@ local page local tf function jin.core.onLoad() shader = jin.graphics.newShaderf("font.shader") - local bitmap = jin.graphics.newBitmap("defaultfont.png") - local tfdata = jin.graphics.newTTFData("font.ttf") - tf = tfdata:newTTF(13) - page = tf:typeset("this is a test") + -- local bitmap = jin.graphics.newBitmap("defaultfont.png") + -- local tfdata = jin.graphics.newTTFData("font.ttf") + -- tf = tfdata:newTTF(13) + -- page = tf:typeset("this is a test") end function jin.core.onEvent(e) @@ -32,7 +32,5 @@ function jin.core.onUpdate(dt) end function jin.core.onDraw() - jin.graphics.useShader(shader) jin.graphics.print(string.format("FPS: %d\nok this is another test", fps), 0, 0) - jin.graphics.unuseShader() end
\ No newline at end of file |