feat(print): respect user's detail font when printing

This commit is contained in:
Elian Doran
2026-04-18 09:37:30 +03:00
parent 1674bf0a87
commit 374eeaeb08
4 changed files with 20 additions and 3 deletions

View File

@@ -99,12 +99,15 @@ To do so:
For example, to change the font of the document from the one defined by the theme or the user to a serif one:
```
:root{
body{
--print-font-family: serif;
--print-font-size: 11pt;
}
```
> [!IMPORTANT]
> When altering `--print-font-family`, make sure the change is done at `body` level and not `:root`, since otherwise it won't be picked up due to specificity rules.
To remark:
* Multiple CSS notes can be add by using multiple `~printCss` relations.