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

Capital letters in Source Code Pro Regular & Bold have "smears" or "artifacts" noticeable at large font sizes #10324

Open
abrahamguo opened this issue Jan 24, 2021 · 3 comments
Labels
bug 🐞 needs investigation 🔍 Issues that require further research (e.g. it's not clear whether it's GL JS or something else)

Comments

@abrahamguo
Copy link

mapbox-gl-js version: 2.0.1

browser: Chrome 87.0.4280.141

Steps to Trigger Behavior

  1. Display Source Code Pro (either Bold or Regular) at a large size
  2. Note the visible "smears" or "artifacts" present on each of the capital letters in the linked JSBin. If you change the font from Source Code Pro Bold to Source Code Pro Regular, the issue is still visible.
    image

Link to Demonstration

https://jsbin.com/jupaxeyuma/2/edit?html,output

Expected Behavior

The font displays with no "smears" or "artifacts".

Actual Behavior

The font displays with noticeable "smears" or "artifacts".

@deldrid1
Copy link

+1 - I'm seeing the same issue

@mourner
Copy link
Member

mourner commented Jan 25, 2021

Interesting! This might be due to low SDF resolution (see #9857), but worth investigating — I would expect rounded corners and other imprecisions but not smears like this. Maybe there's a bug in the shader.

@mourner mourner added the needs investigation 🔍 Issues that require further research (e.g. it's not clear whether it's GL JS or something else) label Jan 25, 2021
@deldrid1
Copy link

@mourner - thank you for the triage and reference.

I would be happy to roll my sleeves up and help fix, but I'll confess that this type of issue is way outside my area of expertise... Please let me know if I can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 needs investigation 🔍 Issues that require further research (e.g. it's not clear whether it's GL JS or something else)
Projects
None yet
Development

No branches or pull requests

3 participants