typst-community / typst-community/extra-docs

Provide basic info of fonts in typst-assets and typst-dev-assets

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

Nobody has claimed this yet.

Dominant language
Rust
Stars
3
Forks
0
Avg merge
3h 31m
Merged PRs (30d)
1

Description

It'll be helpful if we also provide brovide basic font info for assets:

https://github.com/typst/typst-assets/tree/main/files/fonts
https://github.com/typst/typst-dev-assets/tree/main/files/fonts

For example, the font name used in Typst, version, available features, …

$ otfinfo --info NewCMMath-Bold.otf
Family:              NewComputerModernMath
Subfamily:           Bold
Full name:           NewComputerModernMath-Bold
PostScript name:     NewCMMath-Bold
Version:             5.3.0
Unique ID:           FontForge : NewComputerModernMath-Bold : 19-4-2026
Trademark:           Please refer to the Copyright section for the font trademark attribution notices.
Copyright:           (C) 2019-2026 Antonis Tsolomitis. This work is released under the GUST Font License --  see http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt for details.
Vendor ID:           PfEd
Permissions:         Editable

$ otfinfo --features LibertinusSerif-Bold.otf
c2sc    Small Capitals From Capitals
calt    Contextual Alternates
case    Case-Sensitive Forms
ccmp    Glyph Composition/Decomposition
cpsp    Capital Spacing
dlig    Discretionary Ligatures
frac    Fractions
hlig    Historical Ligatures
kern    Kerning
liga    Standard Ligatures
lnum    Lining Figures
mark    Mark Positioning
onum    Oldstyle Figures
pnum    Proportional Figures
salt    Stylistic Alternates
smcp    Small Capitals
ss01    Stylistic Set 1
ss02    Stylistic Set 2
ss03    Stylistic Set 3
ss04    Stylistic Set 4
ss05    Stylistic Set 5
ss06    Stylistic Set 6
ss07    Stylistic Set 7
subs    Subscript
sups    Superscript
tnum    Tabular Figures
zero    Slashed Zero

Info of the same typeface family should be merged.

$ lsd LibertinusSerif-*
 LibertinusSerif-Bold.otf         LibertinusSerif-Italic.otf    LibertinusSerif-Semibold.otf
 LibertinusSerif-BoldItalic.otf   LibertinusSerif-Regular.otf   LibertinusSerif-SemiboldItalic.otf

The version of the described typst-dev-assets should be main, but that of typst-assets should be v0.14.2 at present.

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 by inspecting the fonts directories in typst-assets and typst-dev-assets and use the shown otfinfo commands to collect metadata for each font. Merge entries from the same typeface family; done means the documentation includes the requested font names, versions, features, and the specified asset revisions (v0.14.2 and main).

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.