linebender / linebender/parley
Synthesis SLNT is hardcoded as 14 for the Italic style
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 736
- Forks
- 120
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 53
Description
When loading a Vairable font like `Monaspace Xenon Var` with the an italic style the Synthesis setting for `SLNT` gets wrongly set to 14.
`StyleProperty::FontStack(FontStack::Source("Monaspace Xenon Var"))`
`StyleProperty::FontStyle(FontStyle::Italic)`
In that particular font the value should be negative, `-11` for the Italic style, and positive values are invalid, so the end result is that the font is rendered as normal instead of slanted and italic.
OS: Linux
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
Trace how FontStyle::Italic is converted into the SLNT synthesis setting, using the Monaspace Xenon Var example and the provided FontStack and FontStyle values as the reproduction case. Done means the italic style produces the font’s negative SLNT value, such as -11, rather than the invalid positive 14 and renders slanted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100