mailing list archive is mousetype
"Gérard Talbot"
browserbugs at gtalbot.org
Sun Jul 21 03:27:14 UTC 2013
> http://lists.kde.org/style.css
>
> body { font-family:Arial, Helvetica, sans-serif; font-size:1.00em; }
>
> pre { font-family: "courier new", courier, monospace; font-size:12pt;
> font-weight:600; }
>
> In all modern web browsers other than Konq using its KHTML default, this
> 12pt
> styling results in 12px text,
There is a bug report on this precise issue:
Bug 233905: Font setting should show unit and unit should be pixels, not
points
https://bugs.kde.org/show_bug.cgi?id=233905
> about 5pt or less on Retina displays and
> similar. There's really no point in either of these style declarations.
> Courier New is the worst monospace font there is for Linux users.[1]
$ fc-match "Courier New"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading
configurations from ~/.fonts.conf is deprecated.
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
> Courier
> on Linux is a bitmap font available in a limited selection of sizes, if
> present at all.
>
> Most distros default to DejaVu Sans Mono for monospace text,
True.
$ fc-match monospace
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading
configurations from ~/.fonts.conf is deprecated.
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
> which is what
> they would get absent the latter rule, and the bolding would be pointless,
The actual font-weight value of 'font-weight: 600' can 400 (normal) if
there is no font available:
"
If the desired weight is greater than 500, weights above desired weight
are checked in ascending order followed by weights below the desired
weight in descending order until a match is found.
"
15.6 Font-weight
http://www.w3.org/TR/CSS21/fonts.html#font-boldness
We have 2 tests on this, where this happens
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/font-weight-016.htm
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/font-weight-normal-001.htm
> useful only when bolding is actually desirable, which is usually only if
> Courier New is used or emphasis is indicated.
>
> The body rule re size is equally pointless, as 1.0 em is exactly the
> browser
> default.
Well, the 'font-size: 1.00em' declaration is not needed but it may help
people (reviewers, webpage debugging, commenters, outsiders) know what is
the body font-size set to, by making it explicit.
Though, I would at least remove the "00" from 1.00em.
> Whether the default is sans-serif or something else really
> shouldn't
> matter except to whoever is actually reading the archive. Helvetica is
> actually a poor choice on Linux, as fontconfig usually maps it to
> something
> else,
True.
$ fc-match Helvetica
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading
configurations from ~/.fonts.conf is deprecated.
n019003l.pfb: "Nimbus Sans L" "Regular"
> and when it doesn't the result usually is a bitmap font in a limited
> range of sizes not desirable in web page use.
>
> [1] http://lists.freedesktop.org/archives/fontconfig/2013-July/004826.html
Gérard
--
Konqueror Implementation Report of CSS 2.1 test suite (RC6): 9418 testcases
http://www.gtalbot.org/BrowserBugsSection/Konqueror4Bugs/Konq-IR-CSS21TestSuite.html
54 Bugs in Konqueror 4.10.5
http://www.gtalbot.org/BrowserBugsSection/Konqueror4Bugs/
Contributions to the CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html
More information about the kde-www
mailing list