freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Freetype] how to make font bold,italic or underline....


From: Artem Omelianchuk
Subject: RE: [Freetype] how to make font bold,italic or underline....
Date: Mon, 15 Nov 2004 17:22:06 +0600

I try to use FT_GlyphSlot_Oblique, FT_GlyphSlot_Embolden to make bold
and italic. But have one problem, letter's have artifacts:some pixel
missed. What I do wrong? Here some of my code:
FT_Face face;
FT_Glyph image;
FT_GlyphSlot slot;
int render_mode = FT_LOAD_NO_AUTOHINT | FT_LOAD_RENDER;
face = font->face;              /* shortcut */
slot = face->glyph;             /* shortcut */
glyph_index = FT_Get_Char_Index (face, ch);
FT_Get_Kerning (face, previous, glyph_index,ft_kerning_default, &delta);
FT_Load_Glyph (face, glyph_index, render_mode);
slot->format = FT_GLYPH_FORMAT_OUTLINE ;
FT_GlyphSlot_Oblique(slot);
FT_Get_Glyph (slot, &image);
FT_Glyph_To_Bitmap (&image,ft_render_mode_normal, 0, 1);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]