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:
commit
de80590157
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user