Skip to content

Add custom font search path support for typst cli - #270

Merged
laurmaedje merged 2 commits into
typst:mainfrom
7sDream:cli/add-font-path
Mar 25, 2023
Merged

laurmaedje merged 2 commits into
typst:mainfrom
7sDream:cli/add-font-path

Conversation

@7sDream

@7sDream 7sDream commented Mar 24, 2023

Copy link
Copy Markdown
Contributor

Added a --font-path option to typst cli to allow user add custom font search dir.

This parameter can be provided multiple times, eg typst --fonts --font-path A --font-path B.

A small step for solving issue #100.

Comment thread cli/src/main.rs Resolved
Comment thread cli/src/main.rs Resolved
Comment thread cli/src/main.rs Resolved
@drupol

drupol commented Mar 25, 2023

Copy link
Copy Markdown
Contributor

How about using clap to handle command line options ?

@laurmaedje

Copy link
Copy Markdown
Member

Didn't pull it so far because the CLI was so simple, but if it starts growing that would probably be a good idea. But doesn't block this PR.

@laurmaedje
laurmaedje merged commit a4a915c into typst:main Mar 25, 2023
yipinliu pushed a commit to yipinliu/typst that referenced this pull request Mar 27, 2023
* 'main' of https://github.com/typst/typst: (22 commits)
  Added IPA pronunciation (typst#349)
  Cache eviction helps
  Pronunciation
  Don't let the build script overwrite TYPST_VERSION (typst#154)
  Document behaviour of dictionary.insert() when key exists (typst#282)
  Add custom font search path support for typst cli (typst#270)
  Added return type to methods of colors in docs (typst#291)
  change page numbering for outline (typst#284)
  Newton's notation for derivatives (typst#281)
  Use correct smart quotes for Norwegian Bokmål language code (typst#278)
  Fix fill color obstructing page header and background (typst#277)
  Simplify heading block example
  Fix index out of bounds error in build script (typst#173)
  Replace infinite repeat layout panic with error (typst#235)
  Changed "ColorChoice::Always" to "ColorChoice::Auto" to honour user setting of TERM / NO_COLOR (typst#230)
  Fixed Typo (typst#227)
  Fix descriptions of some types (typst#206)
  Fix import syntax in tutorial (typst#205)
  Make alignment actually centered (typst#176)
  strip cli target (typst#143)
  ...
Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants