servo / servo/font-kit

Freetype backend doesn't work on macOS

Open Beginner friendly
#275 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
840
Forks
137
Avg merge
4h 56m
Merged PRs (30d)
1

Description

I've enabled the freetype backend in font-kit like this:

font-kit = { version = "0.14.3", default-features = false, features = ["loader-freetype"] }

But it doesn't compile because the freetype-sys crate is missing at src/loaders/freetype.rs:17:5.
Enabling the loader-freetype feature should add the freetype-sys dependency regardless of platform.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the macOS compilation failure with the shown font-kit feature configuration, then inspect src/loaders/freetype.rs:17:5 and the feature/dependency declarations. Done means enabling loader-freetype provides freetype-sys on macOS and the configuration compiles successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.