mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-05 16:47:03 +02:00
refactor: FONT_FAMILY and related helpers
This commit is contained in:
@@ -10,13 +10,13 @@ import { FONT_FAMILY } from "@excalidraw/excalidraw";
|
||||
|
||||
`FONT_FAMILY` contains all the font families used in `Excalidraw` as explained below
|
||||
|
||||
| Font Family | Description |
|
||||
| ----------- | ---------------------- |
|
||||
| `Virgil` | The `handwritten` font |
|
||||
| `Helvetica` | The `Normal` Font |
|
||||
| `Cascadia` | The `Code` Font |
|
||||
| Font Family | Description |
|
||||
| ------------ | ------------------------------------------- |
|
||||
| `HAND_DRAWN` | The handwritten font (by default, `Virgil`) |
|
||||
| `NORMAL` | The regular font (by default, `Helvetica`) |
|
||||
| `CODE` | The code font (by default, `Cascadia`) |
|
||||
|
||||
Defaults to `FONT_FAMILY.Virgil` unless passed in `initialData.appState.currentItemFontFamily`.
|
||||
Defaults to `HAND_DRAWN` unless passed in `initialData.appState.currentItemFontFamily`.
|
||||
|
||||
### THEME
|
||||
|
||||
|
Reference in New Issue
Block a user