I was getting my information from here: http://www.freetype.org/freetype2/docs/tutorial/step2.html http://www.freetype.org/freetype2/docs/tutorial/step2.html . Thanks for your help, works now!
Werner LEMBERG wrote: > > >> I would expect to get a character size around 1.0. For 'j' I get >> 0.485149 :( > >> float h=face->size->metrics.height; > > It seems that you haven't read the documentation about `height': > > height :: The height is the vertical distance > between two consecutive baselines, > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > expressed in font units. It is always > positive. Only relevant for scalable > formats. > > With other words, it doesn't give the maximum size of a letter but the > distance between to text lines, normally larger than the largest > character. You probably want to use the `ascender' and `descender' > fields of FT_Size_Metrics. > > > Werner > > > _______________________________________________ > Freetype mailing list > Freetype@nongnu.org > http://lists.nongnu.org/mailman/listinfo/freetype > > -- View this message in context: http://www.nabble.com/Question-about-font-size-tf2245239.html#a6234603 Sent from the Freetype - User forum at Nabble.com. _______________________________________________ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype