linebender / linebender/parley
Implement `size-adjust` property
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 736
- Forks
- 120
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 53
Description
The [`size-adjust` CSS property](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/size-adjust) allows you to set scaling factors for specific font families. This is useful for harmonizing the size of text written in different fonts (something similar is used in egui for adjusting emoji fonts' sizes).
This can't be implemented at a higher level by just scaling the font size for a given style, because you can specify a stack of multiple fonts as part of a style, and we only want the size adjustment to apply to a specific one.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests; start by tracing how a font stack is represented and how each selected font contributes to text metrics. Implement per-font size adjustment without applying it to the whole style, then verify that stacks containing adjusted and unadjusted fonts preserve their intended sizing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100