|
From: | andreas . heinrich |
Subject: | [Freetype] FT_Load_Glyph - Error |
Date: | 21 Jun 2004 09:53:07 UT |
Hello,
since i need that the Heigth of a text must in
proportion to the Width
i use FT_Load_Glyph in this way :
//load glyph image without hinting into the
slot.
lintError := FT_Load_Glyph ( FptrFT_Face, glyph_index, FT_LOAD_NO_HINTING or FT_LOAD_NO_BITMAP ); if
(lintError) <> 0 then continue; //ignore errors
//set advance-Values without
hinting
FarrCharBuffer[strText[intCnt]].intAdvanceX := FptrFT_Face.glyph.advance.x; FarrCharBuffer[strText[intCnt]].intAdvanceY := FptrFT_Face.glyph.advance.y;
//load glyph image with hinting into the
slot
lintError := FT_Load_Glyph( FptrFT_Face, glyph_index, FT_LOAD_DEFAULT); if
(lintError) <> 0 then continue; //ignore errors
//convert in monochrome bitmap
lintError := FT_Render_Glyph( FptrFT_Face.glyph, ft_render_mode_mono ); The First (without hinting) is for the correct
advances and the
second is for the correct
glyphes. Now I have the problem, that the second try of
FT_Load_Glyph give me an
Error = 6.
Have anyone an idea ??
Thank you very much!
Andreas Heinrich
|
[Prev in Thread] | Current Thread | [Next in Thread] |