freetype
[Top][All Lists]
Advanced

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

[ft] Pixel_Mode is wrong


From: samaram s
Subject: [ft] Pixel_Mode is wrong
Date: Wed, 27 Jan 2010 15:34:45 -0500

Hi,

I am trying to get pixel_mode type MONO and the document too says,

We have reduced the size of our code, but it does exactly the same thing:

I tried...as follows...

error = FT_Set_Char_Size( face,8*64,0,100,0 );
slot = face->glyph;
slot->format = FT_GLYPH_FORMAT_BITMAP;
glyph_index = FT_Get_Name_Index( face,"A");
error = FT_Load_Glyph( face, glyph_index, FT_LOAD_RENDER );
error = FT_Render_Glyph( slot,FT_RENDER_MODE_MONO );

printf("Pixel Mode in main %d\n", slot->bitmap.pixel_mode);

Still my pixel_mode is 2.Where in FT_Pixel_Mode for FT_Bitmap says it should be 1(According to enum value)?What is wrong?

Thanks in advance..



reply via email to

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