Skip to main content

Module fonts

Module fonts 

Source
Expand description

The fonts an app paints with, for gpui’s text system and for SVG laid out and drawn with usvg.

Natively, database is the system’s fonts. In a browser it is the faces given to add, and a face given to cx.text_system().add_fonts directly paints text and is missing from SVG.

Structs§

Database
The fonts SVG is laid out and drawn in.

Functions§

add
Hand fonts to gpui’s text system, and in a browser to database.
database
The fonts SVG is drawn in. Natively the first call loads the system’s, which reads every font file’s names: a quarter of a second on a Mac.