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

Setting the font to a fractional height causes the Lua script to crash #57

Open JacobChrist opened 1 year ago

JacobChrist commented 1 year ago

Describe the bug Setting the font to a fractional height causes the Lua script to crash

To Reproduce Steps to reproduce the behavior: Make this call in a Lua script:

    ez.SetFtFont(14, 21.5)

Expected behavior Don't crash. Scale properly or truncate scale.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Test on the 5035