Re: [ft] diff Pixel height

2010-02-23 Thread Werner LEMBERG
So,You mean irrespective of what ever we do...the BBox is Always negative. For this glyph, yes. In your previous reply you said, the only way to get the exact metrics is to render _all_ glyphs. Sorry for being ambiguous. It either means: . To get the smallest global bounding box of a

Re: [ft] diff Pixel height

2010-02-22 Thread samaram s
Hi Werner, i tried like below: error = FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_HINTING); Family name of the font is --- Arial Style name of the font is --- Regular bbox = [-1 0 9 9] *Xmin is still negative. * Can you please provide me syntax if i am doing wrong in setting the flags.How can

Re: [ft] diff Pixel height

2010-02-22 Thread Werner LEMBERG
error = FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_HINTING); Family name of the font is --- Arial Style name of the font is --- Regular bbox = [-1 0 9 9] *Xmin is still negative. Yes! I told you in a previous mail that the unhinted coordinate of the leftmost pixel is NEGATIVE!

Re: [ft] diff Pixel height

2010-02-22 Thread samaram s
Thanks for the reply. So,You mean irrespective of what ever we do...the BBox is Always negative. In your previous reply you said, the only way to get the exact metrics is to render _all_ glyphs. Can you please give me some syntax how to load glyph to get exact metrics. Reason is,Output from my

Re: [ft] diff Pixel height

2010-02-17 Thread samaram s
Thanks Werner.Hats-off for remembering!! Where can find about definition of hinted fonts?What it means? How does it vary in freetype for HINT and NO_HINT? Also,When i was looking for hinted in FT_Load_Glyph i found , For *no_hinting *we can use FT_LOAD_NO_SCALE flag I tried using something

Re: [ft] diff Pixel height

2010-02-17 Thread Werner LEMBERG
Where can find about definition of hinted fonts? What it means? Read the OpenType specification. How does it vary in freetype for HINT and NO_HINT? Well, if you set the no-hint flag, no hinting gets applied. However, you have to understand the concept of hinting first... I tried using

Re: [ft] diff Pixel height

2010-02-08 Thread samaram s
*error = FT_Set_Char_Size( face,10*64,0,72,0 ); /*The pen position in 26.6 cartesian space coordinates; */ pen.x = 0; pen.y = 0; FT_Set_Transform(face,0,pen); glyph_index = FT_Get_Char_Index( face,text[n] ); //printf( Glyph_Index = %.2x\n,glyph_index); error = FT_Load_Glyph(

Re: [ft] diff Pixel height

2010-02-01 Thread samaram s
Thank You Werner. I tried as you said CBox to get the actual dimensions of the Glyph. FT_Glyph_Get_CBox(glyph, *FT_GLYPH_BBOX_PIXELS*, bbox); fprintf( stderr, bbox = [%ld %ld %ld %ld]\n, bbox.xMin, bbox.yMin, bbox.xMax, bbox.yMax ); I got the follwoing for Glyph g and Glyph

Re: [ft] diff Pixel height

2010-01-30 Thread Werner LEMBERG
I am setting my glyph size as 10,on 72dpi. I assumed i will be getting a glyph height of 10 pixels, But it is not? Correct. If you specify a glyph size of 10 pixels you can expect that it (more or less) harmonizes with other fonts rendered at a size of 10 pixels. It is completely