KAS-text uses CSS-like selection criteria to pick fonts, with the API essentially copied from font-kit's FamilyName and Properties.
Font-kit is a large library which we only use for font discovery. We actually depend on an older version to avoid extra dependencies in more recent versions of the library.
One way or another, we should remove font-kit as a dependency (possibly by extracting some of font-kit to a new library).
KAS-text uses CSS-like selection criteria to pick fonts, with the API essentially copied from font-kit's
FamilyName
andProperties
.Font-kit is a large library which we only use for font discovery. We actually depend on an older version to avoid extra dependencies in more recent versions of the library.
One way or another, we should remove
font-kit
as a dependency (possibly by extracting some of font-kit to a new library).