Fix subset tag font

This commit is contained in:
Svetlana Kulikova
2026-01-30 16:44:57 +03:00
parent 4c6ded76a1
commit e7cfb67962
7 changed files with 11 additions and 19 deletions

View File

@ -1070,6 +1070,7 @@ HRESULT CPdfFile::put_FontName(const std::wstring& wsName)
oFile.CloseFile();
}
}
m_pInternal->pWriter->AddFont(wsFont, bBold, bItalic, wsFontPath, 0);
}
else
{
@ -1080,7 +1081,6 @@ HRESULT CPdfFile::put_FontName(const std::wstring& wsName)
else
wsFont = sSub;
}
m_pInternal->pWriter->AddFont(wsFont, bBold, bItalic, wsFontPath, 0);
}
return m_pInternal->pWriter->put_FontName(wsFont);
}