freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Another bug in the BDF backend


From: David Turner
Subject: Re: [Freetype] Another bug in the BDF backend
Date: Tue, 10 Sep 2002 00:48:02 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530

Hello,

Detlef W├╝rkner wrote:
address@hidden (Juliusz Chroboczek) wrote:


Take 8x13.bdf, and look at the strikes exported by current Freetype
CVS; there is a single strike of size 8x13.  The PCF backend correctly
exports this strike as 13x13.

Recall that the size of a strike is in pixels per em; thus, for square
pixels, the X and Y dimensions should be the same.  The size of a
strike has no relation with the strike's bounding box.


What do you mean with "strike"? face->available_sizes? Thats of type
FT_Bitmap_Size:
----8<----
  /* <Struct>                                                              */
  /*    FT_Bitmap_Size                                                     */
  /*                                                                       */
  /* <Description>                                                         */
  /*    An extremely simple structure used to model the size of a bitmap   */
  /*    strike (i.e., a bitmap instance of the font for a given            */
  /*    resolution) in a fixed-size font face.  This is used for the       */
  /*    `available_sizes' field of the FT_Face_Properties structure.       */
  /*                                                                       */
  /* <Fields>                                                              */
  /*    height :: The character height in pixels.                          */
  /*                                                                       */
  /*    width  :: The character width in pixels.                           */
----8<----
and documented to be in "pixels", not in "pixels per em".

Well, it's documented as "character pixel height" and "character pixel width",
which corresponds to "pixels per em" by definition for all formats.

(i.e these are not "cell height" and "cell width")

I also think that a consistent behaviour should be implemented. As anyone
any clue about what to change in the BDF driver (i.e. what properties to
look for exactly) ??

Regards,

- David Turner
- The FreeType Project  (www.freetype.org)




reply via email to

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