Merge pull request #13662 from calixteman/no_arial

XFA - Don't use system font when a font is not embeded but there is a substitution
This commit is contained in:
Jonas Jenwald 2021-07-04 11:35:50 +02:00 committed by GitHub
commit de80590157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -481,7 +481,7 @@ function setFontFamily(xfaFont, fontFinder, style) {
if (typeface) {
const { fontFamily } = typeface.regular.cssFontInfo;
if (fontFamily !== name) {
style.fontFamily += `,"${fontFamily}"`;
style.fontFamily = `"${fontFamily}"`;
}
if (style.lineHeight) {
// Already something so don't overwrite.