网站首页
编程语言
数据库
系统相关
其他分享
编程问答
unsupportedChars
2024-10-12
检测字体文件中不支持哪些字符字形;传入一段文字内容,返回字体包不支持的字符
constpackage=require('../package');constfs=require('fs');constopentype=require('opentype.js');functionfindUnsupportedChars(fontPath,text){constfont=opentype.loadSync(fontPath);constunsupportedCha