freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Freetype 2.8 bitmap font no linear advance


From: Behdad Esfahbod
Subject: Re: [ft-devel] Freetype 2.8 bitmap font no linear advance
Date: Tue, 22 Aug 2017 13:36:09 -0700

Not all formats have the concept of units-per-EM, so the non-scaled advance is not well-defined.

On Tue, Aug 22, 2017 at 11:55 AM, J Decker <address@hidden> wrote:
On the font 'c:/windows/fonts/c8514fix.fon

This is basically the code I used...

FT_Library library;
FT_Face face;
int error;
  error = FT_Init_FreeType( &library ); 
  error = FT_New_Face( &library
, 'c:/windows/fonts/c8514fix.fon'
, 0
, &face );

  error = FT_Load_Glyph( &face, 53 , 0 );

face.glyph->linearHoriAdvance   is 0.
face->glyph->advance.x   is 640  or (10 << 6 )

I had basically standardized on using linearHoriAdvance but it isn't working for bitmap fonts... should it?

_______________________________________________
Freetype-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/freetype-devel




--
behdad
http://behdad.org/

reply via email to

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