summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2023-04-30 10:26:36 +0200
committerAlbert Astals Cid <tsdgeos@yahoo.es>2023-04-30 08:27:51 +0000
commit2b437604157a34546f7340cc383d7cfaa292ede5 (patch)
tree1db12829791e8cb3b867426a9ace40d3ade424f3
parentc5bc25a0094b3fd10e8eea5296a006a4f530a771 (diff)
Do not hardcode Noto Sans as FontName
-rw-r--r--poppler/Form.cc2
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);