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

Rasterization: Enclosing rectangle does not account for hinting #2148

Open
thehorseisbrown opened this issue Nov 12, 2019 · 1 comment
Open

Rasterization: Enclosing rectangle does not account for hinting #2148

thehorseisbrown opened this issue Nov 12, 2019 · 1 comment
Assignees
Labels

Comments

@thehorseisbrown
Copy link

@thehorseisbrown thehorseisbrown commented Nov 12, 2019

Describe the bug
Blackbox values in GLYPHMETRICS don't seem to account for hinting.
The appended image should be illustrative.
I also posted this at stackoverflow.

To Reproduce
Steps to reproduce the behavior:

  1. Look at individual glyph bitmaps drawn with DrawText() using the font Consolas.ttf
  2. Look at GLYPHMETRICS data loaded with GetGlyphOutlineA.
  3. See that the black box values designate a smaller rectangle than the drawn glyph's rectangle.

Expected behavior
The black box values are explicitly said to enclose the glyph.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10

Additional context
Hinting is pain.

@welcome

This comment has been minimized.

Copy link

@welcome welcome bot commented Nov 12, 2019

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.