added freetype text rendering (still buggy)

this allows to render glyphs and also brings a simple
engine for rendering UTF-8 strings onto the framebuffer.
blitting to uneven offset is implemented here, too, but
needs more work and is still buggy.

In the end, this will allow for a simple GUI.
This commit is contained in:
HW
2011-12-01 01:35:53 +01:00
parent ff38118a89
commit f307264fb6
9 changed files with 369 additions and 10 deletions

17
rendertext_example.lua Normal file
View File

@@ -0,0 +1,17 @@
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