Allow other fonts #2

Closed
opened 2024-10-26 13:26:13 +00:00 by pinpox · 1 comment

I don't have the Source Sans font installed, so my typst project throws warning when using this package.


warning: unknown font family: source sans 3
    ┌─ @preview/chronos:0.1.0/src/diagram.typ:190:17
    │
190 │   set text(font: "Source Sans 3")
    │

It would be nice to be able to set other fonts here, falling back to the current font.

I don't have the Source Sans font installed, so my typst project throws warning when using this package. ``` warning: unknown font family: source sans 3 ┌─ @preview/chronos:0.1.0/src/diagram.typ:190:17 │ 190 │ set text(font: "Source Sans 3") │ ``` It would be nice to be able to set other fonts here, falling back to the current font.
HEL added the
enhancement
good first issue
labels 2024-10-27 11:31:08 +00:00
Owner

I don't know of any way to fallback to the current font, but I can definitely do one of the following:

  • Remove the set rule to leave the user free to customize it on their own
  • Put the font as an argument
  • Add fallback font families
  • Add the font to the package

I feel like the first option is probably the best. Please let me know what you think of this

EDIT: added 4th option

I don't know of any way to fallback to the current font, but I can definitely do one of the following: - Remove the set rule to leave the user free to customize it on their own - Put the font as an argument - Add fallback font families - Add the font to the package I feel like the first option is probably the best. Please let me know what you think of this EDIT: added 4th option
HEL closed this issue 2024-11-09 14:00:06 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HEL/chronos#2
No description provided.