Safari font size discrete steps

clauses's picture

¿Por que is Safari doing these discrete steps (top part of image) in font-size when Firefox is not (lower part of image)?
The way Safari does it is winding me up to the n'th degree.

AttachmentSize
Screen shot 2010-10-24 at 01.21.36.jpg62.34 KB
hrant's picture

It seems to be rounding to the nearest integer.
Why? Maybe performance.

hhp

clauses's picture

Wouldn't surprise me. Safari has a pretty strict performance over features strategy.

gferreira's picture

Safari is doing it right, there is no such thing as “half a pixel”.

gferreira's picture

Thanks for the links, Jens. Very informative.

In my opinion the definition of “pixel” in the CSS spec is fundamentally wrong. But what do I know.

hrant's picture

> Safari is doing it right, there is no such thing as “half a pixel”.

Hmmm, closet Apple-berserker talk? There most certainly are fractional pixels, on many levels. Especially on an OS that worships wysiwyg!

hhp

gferreira's picture

Looks like the genius of Håkon Lie is behind this one too – see his reply to the question about “Definition of pixel” here.

Seriously, if he knew what he was doing we wouldn’t be in such a mess right now.

gferreira's picture

WYSIWYG is the root of all font rendering evil.
I propose WYSIATI instead — What You See Is All There Is.

hrant's picture

> Safari has a pretty strict performance over features strategy.

Well then, for max performance just snap to powers of 2!
Who really needs 9, 10, 11, 12, 13, 14 and 15 point anyway?
I'm sure the right kind of press conference can spin those sizes into oblivion.

> WYSIWYG is the root of all font rendering evil.

That's a primo cushy bandwagon now.

hhp

clauses's picture

"Safari is doing it right, there is no such thing as “half a pixel”."

Non-sequitur, and I just showed you Firefox doing it.

Khaled Hosny's picture

and I just showed you Firefox doing it.
How dare you!

clauses's picture

How dare you!

Brass balls.

Jens Kutilek's picture

Probably Safari rounds values from the start to avoid inconsistencies caused by rounding later, like the so-called Firefox leading bug?

Syndicate content Syndicate content