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

BMFont #780

Merged
merged 11 commits into from
Jun 25, 2024
Merged

BMFont #780

merged 11 commits into from
Jun 25, 2024

Conversation

bjornbytes
Copy link
Owner

@bjornbytes bjornbytes commented Jun 6, 2024

Adds support for BMFont fonts. They are useful for rendering fonts in 2D contexts (potentially with the new Layer object) or for stylized image fonts or icons/emoji. Both text and binary BMFont files are supported. Non-unicode charsets are not supported.

The usage is similar to TTF:

function lovr.load()
  font = lovr.graphics.newFont('font.fnt')
end

function lovr.draw(pass)
  pass:setFont(font)
  pass:text('hi!', x, y, z)
end

@bjornbytes
Copy link
Owner Author

YEAAAAAAAAAAAAAAAAA

@bjornbytes bjornbytes merged commit 2e12049 into dev Jun 25, 2024
8 checks passed
@bjornbytes bjornbytes deleted the bmf branch June 25, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant