Also select font via unprettified family name
Open
Nobody has claimed this yet.
change request
text
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
Typst prettifies some font names, but ideally the true name should also work, that is, in the example below both line 2 and 3 should render in New CM.
Hello \
#text(font: "NewComputerModern10")[Hello] \
#text(font: "New Computer Modern")[Hello]
Moreover, conceivably a font could be selectable via full name or perhaps also PostScript name:
_Hello_ \
#text(font: "Linux Libertine Italic")[Hello]
Use Case
More compatibility.
Contributor guide
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
Start with the issue examples and the linked OpenType name specification, then review the unresolved comment thread about family, full, and PostScript names. Done means the demonstrated NewComputerModern10, New Computer Modern, and Linux Libertine Italic selections resolve compatibly without changing the intended rendering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100