[Top][All Lists]

[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 12:20:11 +1000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1

On Sun, 02 Jul 2006 07:47:14 +0200 (CEST), Werner LEMBERG wrote:
>> In struct FT_FaceRec_, the glyph slot and other useful dimensional
>> information is after:
>>    /*# the following are only relevant to scalable outlines */
>> 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.

>        Werner

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

/*# the following are only relevant to scalable outlines */
    FT_BBox           bbox;

    FT_UShort         units_per_EM;
    FT_Short          ascender;
    FT_Short          descender;
    FT_Short          height;

    FT_Short          max_advance_width;
    FT_Short          max_advance_height;

    FT_Short          underline_position;
    FT_Short          underline_thickness;

    FT_GlyphSlot      glyph;
    FT_Size           size;
    FT_CharMap        charmap;

reply via email to

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