Skip to content

Commit

Permalink
[fontique] fontconfig: allow_dtd for xml config (#44)
Browse files Browse the repository at this point in the history
Appears to fix the issue with the roxmltree update.
  • Loading branch information
dfrg authored Apr 26, 2024
1 parent 9e2be05 commit ddb0c6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fontique/src/backend/fontconfig/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ pub fn parse_config(path: &Path, sink: &mut impl ParserSink) {
let Ok(text) = std::fs::read_to_string(path) else {
return;
};
let Ok(doc) = roxmltree::Document::parse(&text) else {
let Ok(doc) = roxmltree::Document::parse_with_options(
&text,
roxmltree::ParsingOptions {
allow_dtd: true,
nodes_limit: u32::MAX,
},
) else {
return;
};
let root = doc.root_element();
Expand Down

0 comments on commit ddb0c6e

Please sign in to comment.