[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] how to FT_Set_Pixel_Sizes / design height / maximum height
From: |
Werner LEMBERG |
Subject: |
Re: [ft] how to FT_Set_Pixel_Sizes / design height / maximum height |
Date: |
Wed, 15 Jun 2005 17:47:29 +0200 (CEST) |
> What we want to do is to create a "tallest/biggest" font within a
> user-supplied (maximum) height. The problem is that if we call
> FT_Set_Pixel_Sizes with height 30 for instance, the maximum height
> of the resultant font we get could be as high as 42 (measured on
> screen.) So I have a method DeriveDesignHeightFromMaxHeight (which
> works like below) to call before actually creating the font.
>
> While this approach seems to work, I find myself a bit silly to have
> to do this. Is there a better way to limit the maximum height of a
> font to be created?
No. Some font formats provide the necessary information, others
don't.
Werner