r24470 by jghali - Small variable name change to make clear sfnt::subsetFaceWithHB() needs full font data as input
scribus-commit
scribus-commit at lists.scribus.net
Thu Feb 11 19:23:32 UTC 2021
Author: jghali
Date: Thu Feb 11 19:23:32 2021
New Revision: 24470
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24470
Log:
Small variable name change to make clear sfnt::subsetFaceWithHB() needs full font data as input
Modified:
trunk/Scribus/scribus/fonts/sfnt.cpp
Modified: trunk/Scribus/scribus/fonts/sfnt.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24470&path=/trunk/Scribus/scribus/fonts/sfnt.cpp
==============================================================================
--- trunk/Scribus/scribus/fonts/sfnt.cpp (original)
+++ trunk/Scribus/scribus/fonts/sfnt.cpp Thu Feb 11 19:23:32 2021
@@ -1236,12 +1236,12 @@
return font;
}
- QByteArray subsetFaceWithHB(const QByteArray& cff, QList<uint> cids, int faceIndex, QMap<uint, uint>& glyphMap)
+ QByteArray subsetFaceWithHB(const QByteArray& fontData, QList<uint> cids, int faceIndex, QMap<uint, uint>& glyphMap)
{
glyphMap.clear();
#ifdef HAVE_HARFBUZZ_SUBSET
- QScopedPointer<hb_blob_t, HbBlobDeleter> hbBlob(hb_blob_create(cff.data(), cff.length(), HB_MEMORY_MODE_READONLY, nullptr, nullptr));
+ QScopedPointer<hb_blob_t, HbBlobDeleter> hbBlob(hb_blob_create(fontData.data(), fontData.length(), HB_MEMORY_MODE_READONLY, nullptr, nullptr));
if (hbBlob.isNull())
return QByteArray();
More information about the scribus-commit
mailing list