diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-25 19:14:08 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-25 20:04:30 +0100 |
| commit | 7597b997890647aa0546ec7bfef1eae4e33cedcb (patch) | |
| tree | 286f2f30fe4814d1b5171ed166c9f162b152ce93 /library/src/text/raw.rs | |
| parent | 49940fde7398a642f88c444700d482436266909d (diff) | |
New default style
Diffstat (limited to 'library/src/text/raw.rs')
| -rw-r--r-- | library/src/text/raw.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index 225c257d..ec11582c 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -4,6 +4,7 @@ use typst::syntax::{self, LinkedNode}; use super::{ FallbackList, FontFamily, Hyphenate, LinebreakNode, SmartQuoteNode, TextNode, + TextSize, }; use crate::layout::BlockNode; use crate::prelude::*; @@ -216,8 +217,12 @@ impl Finalize for RawNode { let mut map = StyleMap::new(); map.set(TextNode::OVERHANG, false); map.set(TextNode::HYPHENATE, Hyphenate(Smart::Custom(false))); + map.set(TextNode::SIZE, TextSize(Em::new(0.8).into())); + map.set( + TextNode::FAMILY, + FallbackList(vec![FontFamily::new("DejaVu Sans Mono")]), + ); map.set(SmartQuoteNode::ENABLED, false); - map.set(TextNode::FAMILY, FallbackList(vec![FontFamily::new("IBM Plex Mono")])); realized.styled_with_map(map) } } |
