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();
_______________________________________________
scribus-commit mailing list
[email protected]
http://lists.scribus.net/mailman/listinfo/scribus-commit