mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
284 B
Lua
18 lines
284 B
Lua
13 years ago
|
require "rendertext"
|
||
|
|
||
|
fb = einkfb.open("/dev/fb0")
|
||
|
width, height = fb:getSize()
|
||
|
|
||
|
print("open")
|
||
|
|
||
|
face = freetype.newBuiltinFace("Helvetica", 64)
|
||
|
print("got face")
|
||
|
|
||
|
renderUtf8Text(100,100,face,"h","Hello World! äöü")
|
||
|
|
||
|
fb:refresh()
|
||
|
|
||
|
while true do
|
||
|
local ev = input.waitForEvent()
|
||
|
end
|