-
Notifications
You must be signed in to change notification settings - Fork 17
not drawing the complete letter #3
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
Comments
HarfBuzz doesn't draw anything. |
Whithout checking the font, the glyph might have a -ve left side bearing and the code that is creating Cairo surface is only taking the glyph advance into account when setting the width. |
This code does not take glyph extents into account. harfbuzz-tutorial/hello-harfbuzz-freetype.c Lines 102 to 110 in d09b205
|
I meant right side bearing. |
That's actually expected. hb-view etc work the same way. User should add more margin if needed. |
@khaledhosny how I can add right side bearing automatically? |
Use |
Uh oh!
There was an error while loading. Please reload this page.
When I try to draw letter "H" using the attached font, it appears cut from the end.

I don't know where is the problem come from? harfbuzz or cairo ? so I hesitate to report it in main harfbuzz repository.
the font: Edw.zip
The text was updated successfully, but these errors were encountered: