You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some glyphs, pixels seem to be cut off in the render-glyph example (mostly, or only with subpixel rendering).
For example: '!'. Here it is only four pixels wide.
The glyph should normally look like this when rendered using the same settings to a larger canvas:
Here it is 5 pixels wide.
I believe this must be because the glyph size returned by raster_bounds() differs from rasterize_glyph() in Freetype.
Looking into raster_bounds(), I see that it does not pass any hinting information to the underlying typographic_bounds() function, but even if those are supplied, the size of the bitmap returned by raster_bounds() still differs from the actual bitmap that is rasterized. Perhaps because raster_bounds gets the size from FT_Glyph_Metrics instead of FT_Bitmap_Size.
This issue also occurs for a couple other letters. N is pretty bad too with these settings.
Font size: 32px
Font: DejaVuSans
HintingOptions: Full
Rasterization: SubpixelAa
The text was updated successfully, but these errors were encountered:
For some glyphs, pixels seem to be cut off in the render-glyph example (mostly, or only with subpixel rendering).
For example: '!'. Here it is only four pixels wide.
The glyph should normally look like this when rendered using the same settings to a larger canvas:
Here it is 5 pixels wide.
I believe this must be because the glyph size returned by raster_bounds() differs from rasterize_glyph() in Freetype.
Looking into
raster_bounds()
, I see that it does not pass any hinting information to the underlyingtypographic_bounds()
function, but even if those are supplied, the size of the bitmap returned byraster_bounds()
still differs from the actual bitmap that is rasterized. Perhaps becauseraster_bounds
gets the size fromFT_Glyph_Metrics
instead ofFT_Bitmap_Size
.This issue also occurs for a couple other letters. N is pretty bad too with these settings.
Font size: 32px
Font: DejaVuSans
HintingOptions: Full
Rasterization: SubpixelAa
The text was updated successfully, but these errors were encountered: