- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Mon, 27 Apr 2015 13:45:37 -0400
- To: Koji Ishii <kojiishi@gmail.com>
- Cc: public-css-testsuite@w3.org
Le 2015-04-27 02:50, Koji Ishii a écrit :
> I'm trying to load a web font in my test from /fonts[1]
Koji,
I will assume you want to load
CSSHWOrientationTest.otf
from
[src]
http://test.csswg.org/source/fonts/adobe-fonts/
into one of your test, say,
[src]
http://test.csswg.org/source/css-writing-modes-3/text-orientation-script-r-001.html
in my tests,
> but either "../fonts/..." or "/fonts/..." failed in 404 in test
> harness.
>
> What are the proper way to refer files in the root directory of the
> test
> repository? Or is it a bad idea to do so?
It is okay to link directly a font from /fonts/ into a test
> Should I have copies of fonts in
> support sub directory of each test suite?
If I recall correctly, that is something you could do too as long as you
"hg-copy" that font file so that the system knows, is aware that you are
reusing the same file copied elsewhere: we do not want to create
duplicate copies of the same file font, so again hg-copy is the way to
do this. Peter Linss may want to confirm my opinion here.
>
> [1] http://hg.csswg.org/test/file/tip/fonts/adobe-fonts
>
> /koji
[Shepherd]
http://test.csswg.org/shepherd/testcase/text-orientation-script-r-001/
I would do:
line 11: @font-face {
line 12: font-family: "orientation";
line 13: src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");
}
Also in that file:
At line 31, "&" and "<" are characters which require to be escaped:
with & and <
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
Received on Monday, 27 April 2015 17:46:08 UTC