earthlcd / ezLCD-5x

Public Repository for ezLCD-5035-RT release files system, firmware and issue reporting
https://earthlcd.com/products/ezlcd-5x?_pos=1&_sid=0927d2260&_ss=r
0 stars 1 forks source link

Lua: command to calculate and return printed text string width/height #42

Open microlan opened 1 year ago

microlan commented 1 year ago

something like width, height = ez.GetTextSize("string")

width and height are in Pixels