typst / typst/typst

Also select font via unprettified family name

Open
#2,098 24 comments 17 reactions 0 assignees View on GitHub

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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.