Function
setFont
(name: string, value: string | null, fallback: string)
Source from the content-addressed store, hash-verified
| 147 | html.style.setProperty('--z-editor-font-size', `${prefs.editorFontSize}px`) |
| 148 | html.style.setProperty('--z-editor-line-height', String(prefs.editorLineHeight)) |
| 149 | const setFont = (name: string, value: string | null, fallback: string): void => { |
| 150 | if (value) html.style.setProperty(name, `"${value}", ${fallback}`) |
| 151 | else html.style.removeProperty(name) |
| 152 | } |
| 153 | setFont( |
| 154 | '--z-interface-font', |
| 155 | prefs.interfaceFont, |
Tested by
no test coverage detected