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

Resolve default fonts using fontconfig. #30

Merged
merged 1 commit into from Feb 28, 2019
Merged

Conversation

@RazrFalcon
Copy link
Collaborator

RazrFalcon commented Feb 17, 2019

Uses the same algorithm as fc-match.

Partially fixes #25


let font_set = FcFontList(self.fontconfig, pattern.pattern, object_set.object_set);
let font_set = FcFontSetCreate();

This comment has been minimized.

@RazrFalcon

RazrFalcon Feb 17, 2019

Author Collaborator

Not sure if we should free this set. All other methods do not free it too.

@pcwalton pcwalton merged commit e8ca5b2 into servo:master Feb 28, 2019
@pcwalton
Copy link
Collaborator

pcwalton commented Feb 28, 2019

Looks good!

@RazrFalcon
Copy link
Collaborator Author

RazrFalcon commented Feb 28, 2019

Thanks. But what about Win and Mac?

@pcwalton
Copy link
Collaborator

pcwalton commented Feb 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

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