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

support msdf fonts for text rendering #238

Open
2 tasks
cgcostume opened this issue Mar 5, 2020 · 1 comment
Open
2 tasks

support msdf fonts for text rendering #238

cgcostume opened this issue Mar 5, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers haeley-webgl-text Move/to be resolved in to haeley-webgl-text help wanted Extra attention is needed

Comments

@cgcostume
Copy link
Member

https://soimy.github.io/msdf-bmfont-xml/ seems to be an excellent msdf generator (utf-8 support, good parameterization etc.). The glyph fragment shader needs to account for 4 channel distance fields instead of a single one.

  • Implement switch to enable MSDF instead of SDF
  • Implement simple example comparing both techniques side by side
@cgcostume cgcostume added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Mar 5, 2020
@anne-gropler
Copy link
Collaborator

anne-gropler commented Mar 5, 2020

I have generated a file using Roboto. The resolution is rather medium. Could be sufficient for normal text, while large text might come with quality issues (which you already can see at their preview here, the rendered text borders look rather blurry)

roboto-v18-latin-500-msdf.zip

@cgcostume cgcostume added the haeley-webgl-text Move/to be resolved in to haeley-webgl-text label Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers haeley-webgl-text Move/to be resolved in to haeley-webgl-text help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants