Bugfix: inexact font loading using font name, warning about font substitution

This commit is contained in:
Jakub Melka
2019-10-02 19:37:19 +02:00
parent 2dfb653233
commit efef799c09
5 changed files with 51 additions and 12 deletions

View File

@ -2917,11 +2917,11 @@ void PDFPageContentProcessor::drawText(const TextSequence& textSequence)
}
}
PDFRealizedFontPointer PDFPageContentProcessor::getRealizedFontImpl() const
PDFRealizedFontPointer PDFPageContentProcessor::getRealizedFontImpl()
{
if (m_graphicState.getTextFont())
{
return m_fontCache->getRealizedFont(m_graphicState.getTextFont(), m_graphicState.getTextFontSize());
return m_fontCache->getRealizedFont(m_graphicState.getTextFont(), m_graphicState.getTextFontSize(), this);
}
return PDFRealizedFontPointer();