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.
17 lines
463 B
Lua
17 lines
463 B
Lua
describe("Font module", function()
|
|
local Font
|
|
setup(function()
|
|
require("commonrequire")
|
|
Font = require("ui/font")
|
|
end)
|
|
it("should get face", function()
|
|
local f
|
|
f = Font:getFace('cfont', 18)
|
|
assert.are_not.equals(f.ftface, nil)
|
|
f = Font:getFace('tfont', 16)
|
|
assert.are_not.equals(f.ftface, nil)
|
|
f = Font:getFace('hfont', 12)
|
|
assert.are_not.equals(f.ftface, nil)
|
|
end)
|
|
end)
|