servo / servo/font-kit

Make `select_best_match` support multiple languages.

Open
#146 2 comments 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

Right now when requesting a font family with select_best_match it returns a handle to a single font. This limits the languages that can be supported when relying on font_kit::source::SystemSource.

If I'm not mistaken the appropriate solution is to have select_best_match return an array of all fonts, including every language and emoji, that conform the provided constraints.

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

Start by tracing select_best_match and SystemSource in the font_kit source. Determine the API and compatibility implications of returning multiple matching fonts, including language and emoji coverage. Done means the requested constraints yield all appropriate matching fonts rather than a single handle, with the behavior validated by the project’s tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.