Hello FreeType team,
I’m experiencing an issue where *small* text appears strange when rendered
using FreeType. I’m initializing, loading, and rendering glyphs using the
following code:

*Initialization:*

FT_Error error = FT_New_Face(ftLibrary, path, 0, &face);
error = FT_Set_Pixel_Sizes(face, 0, 100);

*Glyph loading:*

FT_Error error = FT_Load_Glyph(face, glyphIndex, FT_LOAD_DEFAULT |
FT_LOAD_FORCE_AUTOHINT);
error = FT_Render_Glyph(face->glyph, FT_RENDER_MODE_NORMAL);

*Rasterization (for grayscale):*

case FT_PIXEL_MODE_GRAY:
{
    Int srcIndex = y * bitmap->pitch + x;
    Byte gray = bitmap->buffer[srcIndex];
    colors[dstIndex] = Color32(255, 255, 255, gray);
    break;
}

Could you advise what might be causing the broken appearance and how to fix
it?



[image: Screenshot 2025-10-16 at 4.00.47 PM.png]

Reply via email to