XFA - Remove quotes of font name in xhtml

This commit is contained in:
Calixte Denizet 2021-06-27 18:05:05 +02:00
parent d7f8a0e9b9
commit 677332aa7b
3 changed files with 11 additions and 2 deletions

View File

@ -29,7 +29,7 @@ import {
} from "./xfa_object.js";
import { $buildXFAObject, NamespaceIds } from "./namespaces.js";
import { fixTextIndent, measureToString, setFontFamily } from "./html_utils.js";
import { getMeasurement, HTMLResult } from "./utils.js";
import { getMeasurement, HTMLResult, stripQuotes } from "./utils.js";
const XHTML_NS_ID = NamespaceIds.xhtml.id;
@ -191,7 +191,7 @@ class XhtmlObject extends XmlObject {
continue;
}
if (key === "font-family") {
xfaFont.typeface = value;
xfaFont.typeface = stripQuotes(value);
} else if (key === "font-size") {
xfaFont.size = getMeasurement(value);
} else if (key === "font-weight") {

View File

@ -0,0 +1 @@
https://web.archive.org/web/20210627155758/https://www.co.lucas.oh.us/DocumentCenter/View/44843/WIBApplicationForm

View File

@ -1026,6 +1026,14 @@
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_issue13631",
"file": "pdfs/xfa_issue13631.pdf",
"md5": "bf24397950dc8b8fcb7e91299af1315a",
"link": true,
"rounds": 1,
"enableXfa": true,
"type": "eq"
},
{ "id": "xfa_issue13556",
"file": "pdfs/xfa_issue13556.pdf",
"md5": "197e93a010763c3b6f9845595ee66c70",