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

thehorseisbrown opened this issue Nov 12, 2019 · 2 comments
content Pri3


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.


Desktop (please complete the following information):

  • OS: Windows 10

Additional context
Hinting is pain.

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 for the list of support websites).

@supernova-eng supernova-eng added the content label Nov 16, 2019
@PRMerger7 PRMerger7 added the Pri3 label Apr 2, 2020
Copy link

@GrantMeStrength GrantMeStrength commented Aug 25, 2020

Hi - sorry for taking so long to get back to you. Unfortunately this doesn't appear to be a documentation issue. My advice would be to ask on the Microsoft Q&A website. If you still need to resolve the issue, please re-open the bug and we can try and find more answers.

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

No branches or pull requests

4 participants