Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tangara-fw/lib/luavgl/examples/font.lua

18 lines
444 B

local label1 = lvgl.Label(nil, {
x = 0, y = 0,
text_font = lvgl.Font("montserrat", 32, "normal"),
text = "Hello Font",
align = lvgl.ALIGN.CENTER
})
print("label1: ", label1)
lvgl.Label(nil, {
-- x= 0, y = 0,
-- text_font = lvgl.Font("MiSansW medium, montserrat", 24),
text_font = lvgl.BUILTIN_FONT.MONTSERRAT_22,
text = "Hello Font2",
}):align_to({
type = lvgl.ALIGN.OUT_BOTTOM_LEFT,
base = label1,
})