I get a crash when I try to call playdate.graphics.font:getGlyph()
with a character that isn't present in the font. I'm using Playdate Simulator 1.12.2 on MacOS 12.3.1.
Repro code:
local font = playdate.graphics.getSystemFont(playdate.graphics.font.kVariantBold)
local img, width = font:getGlyph('日') -- 日 isn't in the default system font, this will cause a crash
I would have expected this to maybe give me nil
if the character isn't present, or better, an image of the font's placeholder character.