mercredi 27 novembre 2019

Is it possible for front-end to know the local supported font-family?

I know we could define @fontface to download web-font. However, this could be problematic especially for chinese fonts due to its large size.

Yet in modern system, it's likely that it already installed some pre-set fonts. For example, a Windows might already installed fonts like SimHei, SimSun, NSimSun, FangSong, KaiTi, a Mac might installed fonts like Hiragino Sans GB, STHeiti Light, STHeiti, STKaiti.

So is it possible for a web-app to know what font this system had installed?




Aucun commentaire:

Enregistrer un commentaire