[ft] Font Metrics

2006-10-16 Thread Martin Olbrich

Hi,

I am a bit confused about the number and scaling of different font metrics.

For my program I am searching for the maximum distance above/under the 
baseline of a given font in the scaling of the pixels after rendering. I 
have tried it with "Face.bbox.yMin / yMax", but I dont know about the 
right scaling to get it to pixel units.

Do I need the "Face.units_per_EM" for that?

The other metric I need is the width of the string. I calculated it as 
the sum over "Face.glyph.advance.x/64" of all glyphs. ( with 
"FT_Set_Char_Size(face, fontSize*64., fontSize*64., 100, 100);" )

Is that the correct value?

Thank you for any help.
martin.


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype


Re: [ft] Testing new LCD rendering mode

2006-10-16 Thread Ismail Donmez
Hi David,
04 Eki 2006 Çar 21:04 tarihinde, Ismail Donmez şunları yazmıştı: 
> 04 Eki 2006 Çar 20:51 tarihinde, David Turner şunları yazmıştı:
> [...]
>
> > They're clearly different, look at the shapes of the 2 or 6, especially
> > the horizontal stems in these glyphs.
> >
> > I think I understand now. I forgot to mention that you should enable
> > "medium" or "full" hinting in your fonts preference dialog. That's
> > because "light" hinting will now always invoke the auto-hinter (with the
> > exception of fonts which require the unpatented hinter to load properly,
> > e.g. MingLiU).
> >
> > I believe it should remove the difference you see. If not, send more
> > screenshots :-)
>
> Sadly I still see problems:
> http://cekirdek.pardus.org.tr/~ismail/tmp/knode-new-lcd-filtering-fullhinti
>ng.png
>
> I added following to ~/.fonts.conf ( actually changed hintmedium to
> hintfull so it was already using medium hinting ) and run fc-cache after :
>
>  
>   
>hintfull
>   
>  

Its been sometime without comment on this, do you think my setup is buggy or 
is there some another problem?

Regards,
ismail


___
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype