Skip to content
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

Implement font-variation support (needed for -apple-system fonts) #1655

Closed
Gankra opened this issue Sep 1, 2017 · 3 comments
Closed

Implement font-variation support (needed for -apple-system fonts) #1655

Gankra opened this issue Sep 1, 2017 · 3 comments
Labels

Comments

@Gankra
Copy link
Contributor

@Gankra Gankra commented Sep 1, 2017

If you navigate to a github issue that mentions a user on macos with gecko, it should be bold:

Hello @gankro this is a test

But with webrendest layers-free (which hands the text to webrender) it doesn't show up as bold. I can't find anything going wrong in gecko here (it seems to be natively bold), so my current hunch is that we're processing this font incorrectly somehow. It's possible there's extra information we need gecko to send us? I don't know enough about CGFont stuff to say.

@Gankra
Copy link
Contributor Author

@Gankra Gankra commented Sep 6, 2017

Discussing with @lsalzman, it seems like this is probably the result of not sending font variations. Needs gecko and webrender work.

@Gankra
Copy link
Contributor Author

@Gankra Gankra commented Sep 6, 2017

@Gankra Gankra changed the title -apple-system font doesn't show up as bold? Implement font-variation support (needed for -apple-system fonts) Sep 6, 2017
@kvark kvark added the bugzilled label Sep 13, 2017
bors-servo added a commit that referenced this issue Sep 20, 2017
support font variations for font instances

This adds support for font variations in an effort to correct the problem identified in #1655 and https://bugzilla.mozilla.org/show_bug.cgi?id=1397458

Apple system fonts may use font variations internally to identify modifications of a base raw font for styling, namely bold. To correctly supply these fonts to WebRender, we need to not only send over the raw font, but any internal font variation information. This makes this possible to receive it on the WebRender side, in cooperation with changes on the Gecko side to supply it.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1714)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Sep 20, 2017
support font variations for font instances

This adds support for font variations in an effort to correct the problem identified in #1655 and https://bugzilla.mozilla.org/show_bug.cgi?id=1397458

Apple system fonts may use font variations internally to identify modifications of a base raw font for styling, namely bold. To correctly supply these fonts to WebRender, we need to not only send over the raw font, but any internal font variation information. This makes this possible to receive it on the WebRender side, in cooperation with changes on the Gecko side to supply it.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1714)
<!-- Reviewable:end -->
@Gankra
Copy link
Contributor Author

@Gankra Gankra commented Sep 25, 2017

Fixed!

@Gankra Gankra closed this Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.