XFA - Remove quotes of font name in xhtml
This commit is contained in:
parent
d7f8a0e9b9
commit
677332aa7b
@ -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") {
|
||||
|
1
test/pdfs/xfa_issue13631.pdf.link
Normal file
1
test/pdfs/xfa_issue13631.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
https://web.archive.org/web/20210627155758/https://www.co.lucas.oh.us/DocumentCenter/View/44843/WIBApplicationForm
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user