-
Notifications
You must be signed in to change notification settings - Fork 24
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
NaturallyMonospaced fonts not rendering #47
Comments
Hi @CristianOG, Just confirming a few things:
Cheers |
After some digging I found it's not about monospacing. This is a custom font which comes with no glyphs. So when LoadGlyph is executed GetCharIndex is always 0. Is there a way to detect this? For example I've got a project where I need to load the embedded fonts from a file, but in this case it should fallback to a system installed font. It would be good if DrawString reported if the text has been fully rendered, partially rendered or not rendered at all. |
Thanks for looking in to it a bit further. I've been pretty busy lately, but I should have some time over the weekend to look in to this. I agree that some sort of reporting on whether the string rendered correctly or not would be good - I'll have a look at it. Alternatively, would a simple check for an 'empty/glyph-less' font file be sufficient? |
Yes, that kind of check would work. Would it be possible to load it's config into another font? Many thanks for the help. |
When loading a font that is naturally monospaced it is not rendered.
Segoe UI.zip
Example using font attached:
Any Monospacing option makes no difference.
The text was updated successfully, but these errors were encountered: