linebender / linebender/parley

Add support for language/script fallback with a specific GenericFamily if available.

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
736
Forks
120
Avg merge
1d 3h
Merged PRs (30d)
53

Description

It is typical for a font stack to include a GenericFamily. Android and CoreText both have information about ‘UI’ type fonts in fallback, differentiated from general text fonts; and Android has support for setting fallback families for generic familes. We should be able to support preferentially matching `system-ui` to `variant="compact"` when available on Android, and matching `serif` (or `ui-serif`) to fallback fonts with `fallbackFor="serif"`.

This information probably belongs in `FallbackKey` but it would need to be wired through the style resolver.

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

Read FallbackKey and trace how fallback information is passed through the style resolver. Compare the Android and CoreText fallback distinctions described in the issue, then verify that system-ui can prefer variant="compact" and serif or ui-serif can match fallbackFor="serif".

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.