Log inGet started
World

Optional Fonts

Branchmain
Branchesmain
Commit836198fb1d

README.md

Optional Fonts

Font faces a world installs when its text names them. Each fonts/<Name>.font is a .font asset: its baked data.zfnt, the face.json that names the family group, role and the web-font names that select it, and the LICENSE.txt the face is distributed under.

AssetFamily groupRoleAlso selected by
TinosTinosregularserif, Times New Roman, Times, Liberation Serif
TinosBoldTinosbold
TinosItalicTinositalic
TinosBoldItalicTinosbolditalic
ArimoBoldArimobold
ArimoItalicArimoitalic
ArimoBoldItalicArimobolditalic
ComicNeueComicNeueregularcursive, Comic Sans MS, Comic Neue
ComicNeueBoldComicNeuebold
ComicNeueItalicComicNeueitalic
ArchivoBlackArchivoBlackregularfantasy, Arial Black, Archivo Black
AntonAntonregularImpact
EBGaramondEBGaramondregularGaramond, EB Garamond
EBGaramondItalicEBGaramonditalic
GelasioGelasioregularGeorgia
GelasioItalicGelasioitalic
PTSerifPTSerifregularPalatino, Palatino Linotype, Book Antiqua, PT Serif
PTSerifBoldPTSerifbold
PTSerifItalicPTSerifitalic
PTSerifBoldItalicPTSerifbolditalic
DejaVuSansBoldDejaVuSansbold
DejaVuSansObliqueDejaVuSansitalic
DejaVuSansBoldObliqueDejaVuSansbolditalic

The built-in library holds the regular faces of the Arimo (sans-serif) and DejaVuSans groups, and the four faces of Cousine (monospace). The Arimo and DejaVuSans faces here are the styled members of those groups: with them installed, bold and italic text in sans-serif, Arial, Helvetica, DejaVu Sans, Verdana, Tahoma or Geneva draws in a real bold or italic face. Tinos gives serif and Times New Roman a face, ComicNeue gives cursive one and ArchivoBlack gives fantasy one.

Once installed, fontFamily = "Georgia" on a label, font-family="Garamond" in an SVG, or text.* naming any of these names draws in the face. ui.listFonts() lists the families and font.onDemand() shows each face as declared until text first needs it.

Tinos and Arimo (Liberation Serif and Liberation Sans), Comic Neue, Archivo Black, Anton, EB Garamond, Gelasio and PT Serif are licensed under the SIL Open Font License 1.1; the DejaVu faces under the Bitstream Vera / DejaVu license. Each face's LICENSE.txt holds the full text.