Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Compile failed on macOS if no fontconfig installed #53

Open
7sDream opened this issue May 20, 2020 · 3 comments
Open

Compile failed on macOS if no fontconfig installed #53

7sDream opened this issue May 20, 2020 · 3 comments

Comments

@7sDream
Copy link

7sDream commented May 20, 2020

I notice that build.rs will try to find installed fontconfig library and dynamic link to it if found.

When not found, it will use make to build static library itself.

But the makefile.cargo do nothing in macOS, this leads to build failed.

Is this expected behavior?

Related: 7sDream/fontfor#10

@jdm
Copy link
Member

jdm commented May 22, 2020

Servo only uses fontconfig on linux, so we never bothered to make the build work for macOS.

@7sDream
Copy link
Author

7sDream commented May 23, 2020

Oh, it's sound reasonable.

So what do Servo use to find/match fonts in macOS? Apple's Core-Text API?

@jdm
Copy link
Member

jdm commented May 23, 2020

Exactly. Specifically, using a hugher-level crate like font-kit which has platform-specific backends and uses core-text for macOS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants