-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
font-style for variable fonts with either Slant or Italic axes. #64
Comments
Hi @thlinard, thanks for filing a proposal! We just opened up for Interop 2023 proposals yesterday, see https://github.com/web-platform-tests/interop/blob/main/2023/README.md for the process and what to expect. You have used the same sections as our Focus Area proposal template, so if you like I can change the label to make it such a proposal. Alternatively you could recreate it using https://github.com/web-platform-tests/interop/issues/new?assignees=&labels=focus-area-proposal&template=focus-area-proposal.yml. Which would you prefer? If you could expand on the rationale that would be helpful, and we'll also need a list of tests in wpt.fyi. |
Hi @foolip Thanks, you can change the label, you sure know your processes better than me. https://arrowtype.github.io/vf-slnt-test/ has recently been updated, with WOFF2 files for testing and CSS code (I'm not the author of this site, @thundernixon is). Is it enough for you? Also, for the rationale, the same page compares the (very different) renderings of three browsers. |
While this is true, why do web developers care about this feature? Do we have any evidence that they care about this feature? That's what the rationale section is trying to answer, not whether there's any incompatibility between browsers. |
Well, we've got a chicken and egg problem, then. Web developers aren't interested in a feature that doesn't work (or that only works on Firefox), and browser developers don't fix a feature that isn't used. Wasn't the present initiative precisely intended to go beyond that? |
@thlinard I think you are misunderstanding what's going on. Interop 2023 is accepting new proposals from Sept 15 - October 15. After that, the team involved with the project will take all the proposals under consideration and choose which to include. You've started such a proposal. But you need to make your case why this should be included. You need to show, with evidence, that this is something that fits the criteria. Sam and Philip aren't arguing against this technology. They are attempting to let you know what's missing from your proposal. They are trying to help you. Every proposal needs to include certain information. Just like any proposal — applying for a job, admission to college, or for a grant — you have to pitch your case. And your's simply isn't complete yet. And because of that, it's likely to not make it. So make your case! Don't assume everyone reading this already knows all about font-style for variable fonts with either Slant or Italic axes. Read the README for details about what's expected. Explain: what is the current state? Is the web standard done? Who's implemented so far? What's missing for interoperability? How will including this in Interop 2023 help the web? There won't be time for everyone involved to go individually do this research. We need you to gather all the information and present it for us, so we can take this under consideration. |
I understand that you're trying to help me and I thank you for that, but please also consider that I'm trying to put forward an idea which is not without merit: when a feature is not already supported by Chrome or Safari, there is little chance that this will interest any developer. So if the criterion is "prove that it interests lots of developers", it's lost in advance. I think I can show how the lack of support beyond Firefox creates a crippling "chicken and egg" situation: how it prevents Google, or anyone, from releasing variable fonts with an italic axis (which would not work for the vast majority of users) and therefore why interest cannot emerge because there are no fonts available. But if I have to prove an interest in something that only works with Firefox, and therefore isn't used by anyone, I don't know how to do that. But certainly I can better explain the current situation, and I'll do that. |
That's not really the case; developers expressing an interest in using features that aren't yet widely implemented is common where those features are addressing unmet needs. For example container queries and subgrid both showed up as prominent requests in developer feedback surveys before they were implemented across browsers (or at all). |
@thlinard in addition to making the rationale as strong as you can, it would be great to ensure the spec is in order and the tests match it. Does w3c/csswg-drafts#3125 need to be resolved before the spec is clear on what should be implemented? And can the tests in https://arrowtype.github.io/vf-slnt-test/ be turned into tests in web-platform-tests? In particular, is a special test font needed for this? The tests as now structured require a human to look for pink, and that's not easily done in WPT. The easiest is if it's possible to write reftests, which compare two pages pixel-by-pixel, optionally with some fuzziness allowed. |
In my opinion this is a minor point. The main thing that things as old as
I just tried to draw attention to an issue, unfortunately I'm not the author of https://arrowtype.github.io/vf-slnt-test, @thundernixon is. @arrowtype or Stephen Nixon is much better qualified than me for such tests. |
FWIW I filed crbug.com/1371880 for what looks like redundant synthesis in the Regarding this proposal:
@foolip wrote:
Questions:
|
We'll need to have some tests to complete the proposal, since reviewing the tests is part of everyone deciding if they'd like to include this in Interop 2023 or not. |
No, I don't recall that we have tests covering that. As suggested above, creating a set of static reference fonts is probably the way forward for more extensive (And as for the |
Support for the slant axis would already be great, if you want I can limit the issue (in its title and its description) to that. |
This is now fixed in Canary. |
Change the default oblique angle from 20deg to 14deg https://bugs.webkit.org/show_bug.cgi?id=248258 Reviewed by Myles C. Maxfield. This patch is to align Webkit with Blink / Chromium, Gecko / Firefox and Web-Specification. This is also part of Interop 2023 proposal [1]. [1] web-platform-tests/interop#64 Merge - https://chromium.googlesource.com/chromium/src/+/8bfd7d5770ec70f47e84b5cf33961b437a87c5a7 Web-Specification - http://w3c.github.io/csswg-drafts/css-fonts-4/#valdef-font-style-oblique-angle-90deg-90deg The specs refer to have default angle as 14deg - "The lack of an <angle> represents 14deg.". The imported test cases are leveraging font from Stephen Nixon using the Open Font License [2]. [2] https://github.com/arrowtype/vf-slnt-test/blob/main/fonts/license-recursive-OFL.txt#L3 * Source/WebCore/platform/graphics/FontSelectionAlgorithm.h: Update "italicThreshold" and "normalItalicValue" from 20deg to 14deg * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/slnt-variable.html: Added Test Case * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/slnt-variable-ref.html: Added Test Case Reference * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/slnt-variable-expected.html: Added Test Case Expectations * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/slnt-backslant-variable.html: Added Test Case * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/slnt-backslant-variable-ref.html: Added Test Case Reference * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/slnt-backslant-variable-expected.html: Added Test Case Expectations * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/at-font-face-matching-expected.txt: Updated Test Expectations * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/resources/FontStyleTest-slnt_backslant-VF.woff2 Added Test Font * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/variations/resources/FontStyleTest-slnt-VF.woff2: Added Test Font * LayoutTests/fast/text/font-style-parse.html: Rebaselined * LayoutTests/fast/text/font-style-parse-expected.txt: Rebaselined * LayoutTests/platform/glib/TestExpectations: Add "Failure" Expectation with reference bug * LayoutTests/platform/ios/TestExpectations: Add "Failure" Expectation with reference bug * LayoutTests/platform/mac/TestExpectations: Add "Failure" Expectation with reference bug Canonical link: https://commits.webkit.org/258722@main
Thank you for proposing font-style for Variable Fonts with either slant or italic axes for inclusion in Interop 2023. We wanted to let you know that this proposal was not selected to be part of Interop†int this year. For the For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023! Posted on behalf of the Interop team. |
Description
Implementation of CSS Spec for font-style for variable fonts with either Slant or Italic axes.
Specification
CSS Spec for font-style
Tests
Links to web-platform-tests (on https://wpt.fyi) for the feature (this can be all tests, not a curated list): none, but https://arrowtype.github.io/vf-slnt-test/ (three test fonts are provided)
Rationale
The only style that works with a variable font with
slnt
orital
axis is the low-level controlfont-variation-settings
.The following styles and elements are only correctly supported (minus one detail, see https://arrowtype.github.io/vf-slnt-test/) by Firefox:
<i>
elementfont-style: italic;
font-style: oblique;
font-style: oblique XXdeg;
font-style: oblique -XXdeg;
Due to poor support, Google Fonts chose to stop releasing fonts with
ital
orslnt
axis:Example of advice given by a site aimed at web developers:
Relevant browser issues:
Relevant specification issues:
font-style: oblique XXdeg;
and a font that has only anital
axis)Glossary:
Specifications:
The text was updated successfully, but these errors were encountered: