Skip to content

How to get font variations for add_font_instance on Mac?  #4386

Open
@kaiwk

Description

@kaiwk

I'm little confused about parameter font variations of add_font_instance, and in almost all examples, we just pass an empty vector to it.

Recently, I found create CTFont will lose font variation, and as @jrmuizel said, we create native font with postscript name and create data font with font descriptor(and font variation).

I thought we can get font variations only if we got CTFont/CGFont, right?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kvark@kaiwk

        Issue actions

          How to get font variations for `add_font_instance` on Mac? · Issue #4386 · servo/webrender