Skip to content

Add a test for variation preservation. #439

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jrmuizel
Copy link
Collaborator

@jrmuizel jrmuizel commented Feb 9, 2021

No description provided.

@jrmuizel jrmuizel force-pushed the broken-variations branch 4 times, most recently from 376b536 to 0488869 Compare February 9, 2021 18:06
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 10, 2021
This is an alternate approach to aadbc6deca05.

CTFontCreateWithGraphicsFont seems to give "LastResort" when used on a
system CGFont with variation applied on 10.12-10.14. We can avoid that
by using CTFontCreateWithGraphicsFont with a variation descriptor.

I'm only applying this approach to cairo for now to mimimize the risk
of this breaking something or causing the crashes that we were seeing
before.

See servo/core-foundation-rs#439 for
a standalone test case.

Differential Revision: https://phabricator.services.mozilla.com/D104581
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 10, 2021
This is an alternate approach to aadbc6deca05.

CTFontCreateWithGraphicsFont seems to give "LastResort" when used on a
system CGFont with variation applied on 10.12-10.14. We can avoid that
by using CTFontCreateWithGraphicsFont with a variation descriptor.

I'm only applying this approach to cairo for now to mimimize the risk
of this breaking something or causing the crashes that we were seeing
before.

See servo/core-foundation-rs#439 for
a standalone test case.

Differential Revision: https://phabricator.services.mozilla.com/D104581
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Feb 11, 2021
This is an alternate approach to aadbc6deca05.

CTFontCreateWithGraphicsFont seems to give "LastResort" when used on a
system CGFont with variation applied on 10.12-10.14. We can avoid that
by using CTFontCreateWithGraphicsFont with a variation descriptor.

I'm only applying this approach to cairo for now to mimimize the risk
of this breaking something or causing the crashes that we were seeing
before.

See servo/core-foundation-rs#439 for
a standalone test case.

Differential Revision: https://phabricator.services.mozilla.com/D104581
@mikeumus
Copy link

mikeumus commented Nov 7, 2021

@pcwalton @jdm @jrmuizel, lookin good? 😎

@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #485) made this pull request unmergeable. Please resolve the merge conflicts.

bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
This is an alternate approach to aadbc6deca05.

CTFontCreateWithGraphicsFont seems to give "LastResort" when used on a
system CGFont with variation applied on 10.12-10.14. We can avoid that
by using CTFontCreateWithGraphicsFont with a variation descriptor.

I'm only applying this approach to cairo for now to mimimize the risk
of this breaking something or causing the crashes that we were seeing
before.

See servo/core-foundation-rs#439 for
a standalone test case.

Differential Revision: https://phabricator.services.mozilla.com/D104581
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants