>> 64 looks wrong... surely /64 or >>6 assuming those are in 26.6.
Sent from my iPigeon On 13 Apr 2011, at 05:44, "Jjgod Jiang" <gzjj...@gmail.com> wrote: > Hi, > > I can't find in FreeType's docs on how to calculate the line gap, > currently we are using: > > FT_Size_Metrics metrics = face->size->metrics; > leading = (metrics.height - metrics.ascender + metrics.descender) >> 64; > > but sometimes I get -1 as the leading (Lucida Grande from Mac OS X, Ubuntu > fonts, Inconsolata, DejaVu Sans). Is it fine to have negative leading? or > is there anything wrong with my code? Thanks. > > Attached my code to test. > > - Jiang > <main.c> > _______________________________________________ > Freetype-devel mailing list > Freetype-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/freetype-devel _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel