Commit 7e0cfa23 authored by Pino Toscano's avatar Pino Toscano
Browse files

xps: load fonts with readFileOrDirectoryParts()

apparently, even those can be split in multiple chunks

CCBUG: 274482
parent a4ba73fe
......@@ -1500,12 +1500,12 @@ int XpsFile::loadFontByName( const QString &fileName )
{
// kDebug(XpsDebug) << "font file name: " << fileName;
const KZipFileEntry* fontFile = loadFile( m_xpsArchive, fileName, Qt::CaseInsensitive );
const KArchiveEntry* fontFile = loadEntry( m_xpsArchive, fileName, Qt::CaseInsensitive );
if ( !fontFile ) {
return -1;
}
QByteArray fontData = fontFile->data(); // once per file, according to the docs
QByteArray fontData = readFileOrDirectoryParts( fontFile ); // once per file, according to the docs
int result = m_fontDatabase.addApplicationFontFromData( fontData );
if (-1 == result) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment