Module font
Expand description
The font implementations for typst worlds.
The core concept is the FontResolver
, implemented by
FontResolverImpl
.
You can construct a FontResolverImpl
on systems, browsers or simply
without touching any external environment. See the system
, web
and
pure
crates for more details.
The FontResolverImpl
has a lot of FontSlot
objects and allow to load
font resources lazily.
There are also other structs, which help store and load [FontInfo
] objects
in the local file system or the remote machine. See the cache
and
[profile
] crates for more details.
Modules§
Structs§
- Loads font from a buffer.
- The default FontResolver implementation.
- A font slot holds a reference to a font resource. It can be created from
- Loads font from a reader.
Traits§
- A FontLoader helps load a font from somewhere.
- A
FontResolver
can resolve a font by index. It also provides FontBook for typst to query fonts.