本帖最后由 Dtttax 于 2020-8-12 20:54 编辑
Chrome版本:Version 86.0.4231.0 (Official Build) canary (64-bit)
使用canvas测试
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
ctx.save();
ctx.rect(0, 0, 400, 150);
ctx.clip();
ctx.font = 'normal 22pt "Verdana"'
ctx.fillText('Hello world中', 50, 50);
ctx.font = 'normal 22pt "Verdana","宋体"'
ctx.fillText('Hello world中', 50, 90);
ctx.save()
中英文字体在canvas中可以同时显示,且字体是正常的。
在Spread中使用测试, 使用font-face注册字体,使用PDFFontManager注册字体
html.zip
(6.3 MB, 下载次数: 9)
|
|