[squeak-dev] Q: Is it all right for TTCfonts to have non-integer heights?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Q: Is it all right for TTCfonts to have non-integer heights?

Jerome Peace
Q: Is it all right for TTCfonts to have non-integer heights?

Hi all,

Several TTCfonts return float fractions when asked for heights
(basically any with a point size not divisible by 3).
You can see this by using the World>appearence>system fonts>demo mode
and then ...>print default fonts.

Is this a bug?

Yours in curiosity and service, --Jerome Peace


     

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Q: Is it all right for TTCfonts to have non-integer heights?

Yoshiki Ohshima-2
At Fri, 25 Jul 2008 10:17:27 -0700 (PDT),
Jerome Peace wrote:

>
> Q: Is it all right for TTCfonts to have non-integer heights?
>
> Hi all,
>
> Several TTCfonts return float fractions when asked for heights
> (basically any with a point size not divisible by 3).
> You can see this by using the World>appearence>system fonts>demo mode
> and then ...>print default fonts.
>
> Is this a bug?

  In the Squeak world, it is ok if it works^^;

  There isn't a real harm with it.  There will be some truncation for
example for advanced width so the rendered result is in theory not
optimal in some cases.

-- Yoshiki