Let fonts suit for more characters

This commit is contained in:
巴里切罗
2018-07-24 12:24:26 +08:00
parent ee048968cc
commit 1fad9a666e
5 changed files with 12 additions and 6 deletions

View File

@ -108,7 +108,7 @@ describe("Run", () => {
run.font("Times");
const tree = new Formatter().format(run);
expect(tree).to.deep.equal({
"w:r": [{ "w:rPr": [{ "w:rFonts": [{ _attr: { "w:ascii": "Times", "w:hAnsi": "Times" } }] }] }],
"w:r": [{ "w:rPr": [{ "w:rFonts": [{ _attr: { "w:ascii": "Times", "w:cs": "Times", "w:eastAsia": "Times", "w:hAnsi": "Times" } }] }] }],
});
});
});