| Index: core/fpdfapi/font/cpdf_font.cpp
|
| diff --git a/core/fpdfapi/font/cpdf_font.cpp b/core/fpdfapi/font/cpdf_font.cpp
|
| index c5da4ea519634946d0373b995d485f4b7b330f73..bbcecbbacabd9252593f9bfe96ddc5d671c1e117 100644
|
| --- a/core/fpdfapi/font/cpdf_font.cpp
|
| +++ b/core/fpdfapi/font/cpdf_font.cpp
|
| @@ -310,10 +310,10 @@ CPDF_Font* CPDF_Font::GetStockFont(CPDF_Document* pDoc,
|
| return pFont;
|
|
|
| CPDF_Dictionary* pDict = new CPDF_Dictionary(pDoc->GetByteStringPool());
|
| - pDict->SetNameFor("Type", "Font");
|
| - pDict->SetNameFor("Subtype", "Type1");
|
| - pDict->SetNameFor("BaseFont", fontname);
|
| - pDict->SetNameFor("Encoding", "WinAnsiEncoding");
|
| + pDict->SetNewFor<CPDF_Name>("Type", "Font");
|
| + pDict->SetNewFor<CPDF_Name>("Subtype", "Type1");
|
| + pDict->SetNewFor<CPDF_Name>("BaseFont", fontname);
|
| + pDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding");
|
| return pFontGlobals->Set(pDoc, font_id, CPDF_Font::Create(nullptr, pDict));
|
| }
|
|
|
|
|