Closed wuhuauguo911 closed 1 year ago
Due to javascirpt's sandbox permission restrictions, it does not have direct access to the list of fonts installed on your system, so the script calls the system fonts by means of fixed-format parameters that configure the fonts that are already installed on your operating system and that you want to choose to use.
For example, use {"ch": "鸿蒙黑体", "en": "HarmonyOS Sans SC", "ps": "HarmonyOS_Sans_SC"}
to add a new custom font, "ch" points to the Chinese name of the font, "en" points to the English name of the font, and "ps" points to the PostScript name of the font.
Can I choose the fonts that have been installed on my computer?