freetype
[Top][All Lists]
Advanced

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

Re: [ft] Bitmap fonts


From: Russell Shaw
Subject: Re: [ft] Bitmap fonts
Date: Mon, 03 Jul 2006 20:13:28 +1000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1

Werner LEMBERG wrote:
>> So, when i load a bdf bitmap font (non-scaleable), where do i get
>> the character width, advance, line-spacing, etc?
>
>FT_Bitmap_Size.  I'll add a pointer to the docs.

But that doesn't have per-character metrics such as the width of a
character.

Correct, but values in FT_FaceRec are always global.  Glyph metrics
are available in FT_GlyphSlot -> metrics.

Hi,
I'm still confused. FT_GlyphSlot and FT_Size are in the "scaleable outlines"
part of FT_FaceRec, but a bitmap font is not a scaleable outline.

http://freetype.sourceforge.net/freetype2/docs/reference/ft2-base_interface.html#FT_FaceRec

In struct FT_FaceRec, does the comment only apply to bbox, or to all
the other members following too?

For all the following members.  Note that FT_Size_Metrics are set for
bitmap fonts also.

So that means even tho FT_FaceRec -> size and FT_FaceRec -> glyph are in
the "scaleable outlines" section of FT_FaceRec, they are used for non-scaleable
(bitmap) fonts too?



    Werner




reply via email to

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