#! We memoize here to avoid creating lots of duplicate font objects.
[ monospace-font <font> ] dip
{
- [ font-name swap at >>name ]
+ [ font-name of >>name ]
[
- font-style swap at {
+ font-style of {
{ f [ ] }
{ plain [ ] }
{ bold [ t >>bold? ] }
{ bold-italic [ t >>bold? t >>italic? ] }
} case
]
- [ font-size swap at >>size ]
- [ foreground swap at >>foreground ]
- [ background swap at >>background ]
+ [ font-size of >>size ]
+ [ foreground of >>foreground ]
+ [ background of >>background ]
} cleave
derive-font ;