CSSTest Fonts

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

CSSTest Fonts

Geoffrey Sneddon-4
Hi John,

I've been trying to get Servo running the CSS tests with the proper
fonts, and I've run into some slight oddities with some of the CSSTest
fonts. (We're trying to run use them via a user stylesheet, so that it's
possible to run the testsuite without installing the fonts at an OS
level. While this obviously isn't perfect—it doesn't check that the font
data is loaded from OS correctly—it does make it easy to run the tests.)

The biggest oddity is the English/Japanese naming of CSSTest FamilyName:

CSSTest/csstest-familyname.ttf, the regular form, has family names
"CSSTest FamilyName" and "CSSテスト フォント名".

CSSTest/csstest-familyname-bold.ttf has names "CSSTest FamilyName" and
"CSSテスト フォント名", and is, unsurprisingly, bold (200). So far
so normal.

CSSTest/csstest-familyname-funkyA.ttf has names "small-caps 1in CSSTest
FamilyName Funky" and "CSSテスト フォント名". Unless I'm missing
anything, this has nothing else special about it (and I could well have
missed something!).

The rest of the "funky" variants follow this pattern: as far as I can
tell, it's ambiguous as to what the regular form of "CSSテスト フォ
ント名" is. If I'm just being an idiot, let me know!

/Geoffrey

Reply | Threaded
Open this post in threaded view
|

Re: CSSTest Fonts

Gérard Talbot-3
Le 2015-11-05 19:16, Geoffrey Sneddon a écrit :


> CSSTest/csstest-familyname-funkyA.ttf has names "small-caps 1in CSSTest
> FamilyName Funky" and "CSSテスト フォント名". Unless I'm missing
> anything, this has nothing else special about it (and I could well have
> missed something!).

In that font, glyphs "1" "2" "3" "4" have been respectively replaced
with "F" "A" "I"  "L" and "5" "6" "7" "8" have been respectively
replaced with "P" "A" "S" "S" glyphs.

Gérard
--
Test Format Guidelines
http://testthewebforward.org/docs/test-format-guidelines.html

Test Style Guidelines
http://testthewebforward.org/docs/test-style-guidelines.html

Test Templates
http://testthewebforward.org/docs/test-templates.html

CSS Naming Guidelines
http://testthewebforward.org/docs/css-naming.html

Test Review Checklist
http://testthewebforward.org/docs/review-checklist.html

CSS Metadata
http://testthewebforward.org/docs/css-metadata.html

Reply | Threaded
Open this post in threaded view
|

font-family-name-023 is incorrect

Gérard Talbot-3
Le 2015-11-05 19:49, Gérard Talbot a écrit :

> Le 2015-11-05 19:16, Geoffrey Sneddon a écrit :
>
>
>> CSSTest/csstest-familyname-funkyA.ttf has names "small-caps 1in
>> CSSTest
>> FamilyName Funky" and "CSSテスト フォント名". Unless I'm missing
>> anything, this has nothing else special about it (and I could well
>> have
>> missed something!).
>
> In that font, glyphs "1" "2" "3" "4" have been respectively replaced
> with "F" "A" "I"  "L" and "5" "6" "7" "8" have been respectively
> replaced with "P" "A" "S" "S" glyphs.

John,

[css21 nightly-unstable]
http://test.csswg.org/suites/css21_dev/nightly-unstable/html4/font-family-name-023.htm

[shepherd]
http://test.csswg.org/shepherd/testcase/font-family-name-023/

[css-fonts-3]
http://test.csswg.org/source/css-fonts-3/font-family-name-023.xht


In my opinion, the test should have the following:

line 34:         <div class="test"><p id="test1a">5678</p></div>
         <div class="test"><p id="test2">5678</p></div>
         <div class="test"><p id="test2a">5678</p></div>
         <div class="test"><p id="test3a">5678</p></div>

and *not* (actual)

line 34:        <div class="test"><p id="test1a">PaSs</p></div>
         <div class="test"><p id="test2">PaSs</p></div>
         <div class="test"><p id="test2a">PaSs</p></div>
         <div class="test"><p id="test3a">PaSs</p></div>

Gérard
--
Test Format Guidelines
http://testthewebforward.org/docs/test-format-guidelines.html

Test Style Guidelines
http://testthewebforward.org/docs/test-style-guidelines.html

Test Templates
http://testthewebforward.org/docs/test-templates.html

CSS Naming Guidelines
http://testthewebforward.org/docs/css-naming.html

Test Review Checklist
http://testthewebforward.org/docs/review-checklist.html

CSS Metadata
http://testthewebforward.org/docs/css-metadata.html

Reply | Threaded
Open this post in threaded view
|

Re: CSSTest Fonts

Geoffrey Sneddon-4
In reply to this post by Gérard Talbot-3
On 06/11/15 00:49, Gérard Talbot wrote:
> Le 2015-11-05 19:16, Geoffrey Sneddon a écrit :
>> CSSTest/csstest-familyname-funkyA.ttf has names "small-caps 1in CSSTest
>> FamilyName Funky" and "CSSテスト フォント名". Unless I'm missing
>> anything, this has nothing else special about it (and I could well have
>> missed something!).
>
> In that font, glyphs "1" "2" "3" "4" have been respectively replaced
> with "F" "A" "I"  "L" and "5" "6" "7" "8" have been respectively
> replaced with "P" "A" "S" "S" glyphs.

I meant about the font's metadata, insofar as it effects font-matching.

i.e.,

given <p style="font-family: CSSテスト フォント名">5678</p> what
font is initially selected (by step one of the font matching algorithm)?

As far as I can tell, this is UA dependent (per "If there are two fonts
with exactly the same properties, the user agent selects one of them"),
because it's equally valid to choose csstest-familyname.ttf,
CSSTest/csstest-familyname-funkyA.ttf,
CSSTest/csstest-familyname-funkyB.ttf and
CSSTest/csstest-familyname-funkyC.ttf. This seems not great for a test font!

This affects <css-fonts-3/font-family-name-010.xht> and
<css-fonts-3/font-family-name-011.xht> if I'm not mistaken.

/Geoffrey

Reply | Threaded
Open this post in threaded view
|

Re: CSSTest Fonts

Gérard Talbot-3
Le 2015-11-06 07:54, Geoffrey Sneddon a écrit :

> On 06/11/15 00:49, Gérard Talbot wrote:
>> Le 2015-11-05 19:16, Geoffrey Sneddon a écrit :
>>> CSSTest/csstest-familyname-funkyA.ttf has names "small-caps 1in
>>> CSSTest
>>> FamilyName Funky" and "CSSテスト フォント名". Unless I'm missing
>>> anything, this has nothing else special about it (and I could well
>>> have
>>> missed something!).
>>
>> In that font, glyphs "1" "2" "3" "4" have been respectively replaced
>> with "F" "A" "I"  "L" and "5" "6" "7" "8" have been respectively
>> replaced with "P" "A" "S" "S" glyphs.
>
> I meant about the font's metadata, insofar as it effects font-matching.
>
> i.e.,
>
> given <p style="font-family: CSSテスト フォント名">5678</p> what
> font is initially selected (by step one of the font matching
> algorithm)?
>
> As far as I can tell, this is UA dependent (per "If there are two fonts
> with exactly the same properties, the user agent selects one of them"),
> because it's equally valid to choose csstest-familyname.ttf,
> CSSTest/csstest-familyname-funkyA.ttf,
> CSSTest/csstest-familyname-funkyB.ttf and
> CSSTest/csstest-familyname-funkyC.ttf. This seems not great for a test
> font!

Geoffrey,

If 4 fonts have the same properties for matching purposes, then choosing
one of them is the only requirement according to the quoted sentence ...
and all 4 fonts have their "5" "6" "7" "8" glyphs replaced by "P" "A"
"S" "S" glyphs .

>
> This affects <css-fonts-3/font-family-name-010.xht> and
> <css-fonts-3/font-family-name-011.xht> if I'm not mistaken.
>
> /Geoffrey


Font tests for the most part
http://test.csswg.org/suites/css21_dev/20110323/html4/chapter-15.html
have not been reviewed.

These tests
http://test.csswg.org/suites/css21_dev/20110323/html4/font-family-name-010.htm
http://test.csswg.org/suites/css21_dev/20110323/html4/font-family-name-011.htm
I do not understand... they match CSSTest FamilyName font on my system
for reasons I would not be able to explain right now. I do not have a
font with the name CSSテスト フォント名 , so I do not understand why CSSTest
Fallback is not used and should not be used in both tests...

[Addendum: I know why now:

"
Some font formats allow fonts to carry multiple localizations of the
family name. User agents must recognize and correctly match all of these
names independent of the underlying platform localization, system API
used or document encoding
(...)
"
CSS3 Fonts, 3.1 Font family: the font-family property
http://www.w3.org/TR/css-fonts-3/#font-family-prop

so "CSSテスト フォント名" must be the localized name of "CSSTest FamilyName" .

Right here, I would say that the 2 tests font-family-name-010 and
font-family-name-011 should *not* be in CSS2.1 test suite but only in
CSS3 Font test suite.
]

Gérard
--
Test Format Guidelines
http://testthewebforward.org/docs/test-format-guidelines.html

Test Style Guidelines
http://testthewebforward.org/docs/test-style-guidelines.html

Test Templates
http://testthewebforward.org/docs/test-templates.html

CSS Naming Guidelines
http://testthewebforward.org/docs/css-naming.html

Test Review Checklist
http://testthewebforward.org/docs/review-checklist.html

CSS Metadata
http://testthewebforward.org/docs/css-metadata.html