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 <[email protected]> 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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/freetype-devel
>
>


-- 
behdad
http://behdad.org/
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to