freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Error Rendering with a resolution?


From: PILLET Céline
Subject: Re: [ft-devel] Error Rendering with a resolution?
Date: Wed, 6 Mar 2013 09:18:40 +0000

Werner,
This is my code :

FT_Glyph l_FT_Glyph=NULL;

FT_Int32 l_LoadFlags = FT_LOAD_DEFAULT;
FT_BitmapGlyph  l_BitmapGlyph = NULL;

if(FT_Load_Glyph(l_FT_Face, a_UI32_GlyphID,l_LoadFlags))
{
        return -1;
}
if(FT_Get_Glyph(l_FT_Face->glyph,&l_FT_Glyph))
{
        return -1;
}
if(l_FT_Glyph)
{
        if(l_I32_IntegerShearAngle)
        {
                FT_Glyph_Transform( l_FT_Glyph, &l_FT_MatrixItalic, NULL );
        }
        FT_Glyph_Transform( l_FT_Glyph, &l_FT_Matrix_GlyphRotation, NULL );

}
FT_Render_Mode l_FT_Render_Mode = FT_RENDER_MODE_MONO;
if(FT_Glyph_To_Bitmap(&l_FT_Glyph,l_FT_Render_Mode,(FT_Vector *) NULL,True))
{
        return -1;
}



Celine.

-----Message d'origine-----
De : Werner LEMBERG [mailto:address@hidden 
Envoyé : mardi 5 mars 2013 22:32
À : PILLET Céline
Cc : address@hidden
Objet : Re: Error Rendering with a resolution?


> I'm in B/W.  And i use hints which are include in the font.  And i 
> want use this hints AND i want usually enforces a minimum line width 
> of 1px.  Is it possible?  How can i do this?  Is it possible wih 
> grayscale rendering?

First of all, please send some code!  This greatly simplifies the discussion.


    Werner



reply via email to

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