mirror of
https://github.com/ctruLua/uCompat.git
synced 2025-10-27 16:49:31 +00:00
25 lines
354 B
Lua
25 lines
354 B
Lua
--[[
|
|
Fonts related µLua compatibility layer/lib for ctrµLua.
|
|
|
|
No support for bitmap fonts actually, it would be too slow.
|
|
]]
|
|
|
|
-- Module
|
|
|
|
Font = {}
|
|
|
|
function Font.load(path)
|
|
return true
|
|
end
|
|
|
|
function Font.destroy(font)
|
|
font = nil
|
|
end
|
|
|
|
function Font.getCharHeight(font)
|
|
return 8
|
|
end
|
|
|
|
function Font.getStringWidth(font, text)
|
|
return (#text*6)
|
|
end
|