diff options
author | Albert Astals Cid <aacid@kde.org> | 2023-04-30 10:26:36 +0200 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2023-04-30 08:27:51 +0000 |
commit | 2b437604157a34546f7340cc383d7cfaa292ede5 (patch) | |
tree | 1db12829791e8cb3b867426a9ace40d3ade424f3 | |
parent | c5bc25a0094b3fd10e8eea5296a006a4f530a771 (diff) |
Do not hardcode Noto Sans as FontName
-rw-r--r-- | poppler/Form.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Form.cc b/poppler/Form.cc index 67657a9a..85e0e66b 100644 --- a/poppler/Form.cc +++ b/poppler/Form.cc @@ -2813,7 +2813,7 @@ Form::AddFontResult Form::addFontToDefaultResources(const std::string &filepath, { std::unique_ptr<Dict> fontDescriptor = std::make_unique<Dict>(xref); fontDescriptor->set("Type", Object(objName, "FontDescriptor")); - fontDescriptor->set("FontName", Object(objName, "Noto Sans")); + fontDescriptor->set("FontName", Object(objName, fontFamilyAndStyle.c_str())); // a bit arbirary but the Flags field is mandatory... const std::string lowerCaseFontFamily = GooString::toLowerCase(fontFamily); |