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

When using an imported font at its original 8px size, Question Mark (?), Colon (:) and some other glyphs are missing. All other sizes work. #89374

Closed
BrainOnOxygen opened this issue Mar 11, 2024 · 1 comment · Fixed by #89383
Assignees
Milestone

Comments

@BrainOnOxygen
Copy link

Tested versions

  • Reproducible in v4.2.1.stable.official [b09f793], v4.1.1.stable.official [bd6af8e], v4.1.2.stable.official [399c9dc]

System information

Windows 11 - v4.2.1.stable.official [b09f793] - Forward+

Issue description

Issue occurs when the font is set to a font_size of EXACTLY 8px. The font is made as an 8px font, but 8px is the exact size that doesn't work. All other sizes show the missing glyphs (even if blurry).

Visual Example:
image

EXTRA DETAIL

  • Font: https://damieng.com/typography/zx-origins/uncial/ (PS: There's a lot of cool fonts there).
  • The .ttf, .woff and .woff2 and also as a SystemFont (since the font is installed) all have the same, unwanted, behavior.
  • Fonts were ran through "Font Validator" and seem to work fine.
  • Font shows the characters correctly in other software including "MS Word" and "Aseprite".
  • Writing a "colon" gives me uppercase "X", and ? gives me lowercase "c"

Steps to reproduce

I've included an MRP below, but here's the very short steps to reproduce...

  1. Add label node.
  2. Override Theme to a font_size of 8px
  3. Override Them to a the Font Uncial, either as a System font or as .ttf, .woff, .woff2 font file.

Minimal reproduction project (MRP)

8px-font-issue.zip

@bruvzg
Copy link
Member

bruvzg commented Mar 11, 2024

Seems like it is a broken font (font contain both 8px embedded bitmap and vector font), and embedded bitmap contains garbage (a lot of missing glyphs and some misplaced), vector font is fine.

Screenshot 2024-03-11 at 12 53 40

We can disable loading embedded bitmaps (probably should be an option enabled by default).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants