Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playdate fonts with a tracking value set loaded in Love2d don't have the same length as when loaded on Playdate #12

Open
SHiLLySiT opened this issue Oct 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SHiLLySiT
Copy link
Collaborator

Using the Rains-1x font from the SDK:

local font = playdate.graphics.font.new("fonts/font-rains-1x")
local width = font:getTextWidth("Lorem ipsum dolor sit amet, consectetur")
print(width)
Playdate = 311
Love2D = 312

I believe this is an issue in Love2d where that it appends some extra padding from getWidth(str). Need to find a way to control this, or come up with some hacky workaround...

@SHiLLySiT SHiLLySiT added the bug Something isn't working label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant