Re: Designs that zoom (was : Why reduce font size)

On Friday 04 March 2005 10:10, Mikko Rantalainen wrote:
>
> The thing is, you MUST NOT round the layout coordinates while
> computing "width" or "height". The correct method is to use floating
> point numbers for top,left coordinates and then do
>
When will people stop this "floating point" nonsense? There is absolutely 
nothing you need floating points number for to solve this. All you need is a 
fixed point. For instance using 30+2 bit fixed point could solve the 50%+50% 
or 25%+25%+25%+25% issues (because any one sub-pixel error would be 
invisible), but as other have noted there is no way to solve it completly. It 
is product of computer math the same way you should never compare two 
calculated floating-point numbers accurately.

`Allan

Received on Friday, 4 March 2005 09:40:10 UTC