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

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

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
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).

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

@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. https://docs.microsoft.com/en-us/answers/products/

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

No branches or pull requests

4 participants