2015-09-08 20:10:17 -07:00
|
|
|
describe("Font module", function()
|
2016-03-28 23:37:15 -07:00
|
|
|
local Font
|
|
|
|
|
setup(function()
|
|
|
|
|
require("commonrequire")
|
|
|
|
|
Font = require("ui/font")
|
|
|
|
|
end)
|
2015-09-08 20:10:17 -07:00
|
|
|
it("should get face", function()
|
2016-03-28 23:37:15 -07:00
|
|
|
local f
|
2015-09-08 20:10:17 -07:00
|
|
|
f = Font:getFace('cfont', 18)
|
2023-07-04 07:13:16 +00:00
|
|
|
assert.are_not.equals(f.ftsize, nil)
|
2015-09-08 20:10:17 -07:00
|
|
|
f = Font:getFace('tfont', 16)
|
2023-07-04 07:13:16 +00:00
|
|
|
assert.are_not.equals(f.ftsize, nil)
|
2015-09-08 20:10:17 -07:00
|
|
|
f = Font:getFace('hfont', 12)
|
2023-07-04 07:13:16 +00:00
|
|
|
assert.are_not.equals(f.ftsize, nil)
|
2015-09-08 20:10:17 -07:00
|
|
|
end)
|
|
|
|
|
end)
|