Re: [css3-fonts] default font features

"Robert O'Callahan" <[email protected]> Tue, 17 Jul 2012 00:43:39 -0400
Newsgroups gmane.comp.web.fonts,gmane.comp.web.css.general
Message-ID <CAOp6jLbTJVhAQbAze0bXGTA1H0nX2OFGUj2AA6htgZ6UHqDkhg@mail.gmail.com>
--f46d0444ed0bb4109c04c4ff30b9
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 16, 2012 at 10:10 PM, Sergey Malkin <[email protected]>wrot=
e:

>   Pulling shaping data like kerning from the font is not expensive.
> Expensive is finding right line break, and this can=E2=80=99t be achieved=
 easily at
> the same speed as simple text layout pass. I just made quick measurements
> and Firefox is about 3 times slower than IE=E2=80=99s simple mode.
>

I believe you ... but what exactly did you measure?

As I understand, Firefox will turn on kerning depending on font size.
>

That was an old "simple mode" that we have since removed (after doing some
performance measurements of the impact). We do kerning at all font sizes
now.

How CSS would classify this behavior, can this be acceptable under =E2=80=
=98normal=E2=80=99
> value? Similar question about ligatures. I think InDesign automatically
> disabled ligatures if tracking was greater than 0.25em. Would this
> acceptable under =E2=80=98normal=E2=80=99?
>

If CSS 'letter-spacing' is greater than zero, we disable discretionary
ligatures, because it seems safe to assume that matches the author's
intent. That behavior could (and I think should) be written into the spec.

Rob
--=20
=E2=80=9CYou have heard that it was said, =E2=80=98Love your neighbor and h=
ate your enemy.=E2=80=99
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]

--f46d0444ed0bb4109c04c4ff30b9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 16, 2012 at 10:10 PM, Sergey Malkin <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
</a>&gt;</span> wrote:<br><div class=3D"gmail_quote"><blockquote class=3D"g=
mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l=
eft:1ex">
<div link=3D"blue" vlink=3D"purple" lang=3D"EN-US"><div><span style=3D"font=
-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#=
1f497d">=C2=A0</span>
<span style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-=
serif&quot;;color:#1f497d">Pulling shaping data like kerning from the font =
is not expensive. Expensive is finding right line break, and this can=E2=80=
=99t be achieved easily at the same speed
 as simple text layout pass. I just made quick measurements and Firefox is =
about 3 times slower than IE=E2=80=99s simple mode.</span><br></div></div><=
/blockquote><div><br>I believe you ... but what exactly did you measure?<br=
><br>
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><div link=3D"blue" vlink=3D"purple" la=
ng=3D"EN-US"><div><span style=3D"font-size:11.0pt;font-family:&quot;Calibri=
&quot;,&quot;sans-serif&quot;;color:#1f497d"></span><span style=3D"font-siz=
e:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f49=
7d">As I understand, Firefox will turn on kerning depending on font size.</=
span></div>
</div></blockquote><div><br>That was an old &quot;simple mode&quot; that we=
 have since removed (after doing some performance measurements of the impac=
t). We do kerning at all font sizes now.<br><br></div><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex">
<div link=3D"blue" vlink=3D"purple" lang=3D"EN-US"><div><span style=3D"font=
-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#=
1f497d">How CSS would classify this behavior, can this be acceptable under =
=E2=80=98normal=E2=80=99 value? Similar
 question about ligatures. I think InDesign automatically disabled ligature=
s if tracking was greater than 0.25em. Would this acceptable under =E2=80=
=98normal=E2=80=99?</span></div></div></blockquote><div><br clear=3D"all"><=
/div></div>If CSS &#39;letter-spacing&#39; is greater than zero, we disable=
 discretionary ligatures, because it seems safe to assume that matches the =
author&#39;s intent. That behavior could (and I think should) be written in=
to the spec.<br>
<br>Rob<br>-- <br>=E2=80=9CYou have heard that it was said, =E2=80=98Love y=
our neighbor and hate your enemy.=E2=80=99 But I tell you, love your enemie=
s and pray for those who persecute you, that you may be children of your Fa=
ther in heaven. ... If you love those who love you, what reward will you ge=
t? Are not even the tax collectors doing that? And if you greet only your o=
wn people, what are you doing more than others?&quot; [Matthew 5:43-47]<br>
<br>

--f46d0444ed0bb4109c04c4ff30b9--