summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/fontsubset/fontsubset.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/fontsubset/fontsubset.cxx b/vcl/source/fontsubset/fontsubset.cxx
index 4e6e03c04baf..1ecd358727bf 100644
--- a/vcl/source/fontsubset/fontsubset.cxx
+++ b/vcl/source/fontsubset/fontsubset.cxx
@@ -79,6 +79,10 @@ bool FontSubsetInfo::CreateFontSubset(
mpReqEncodedIds = pReqEncodedIds;
mnReqGlyphCount = nReqGlyphCount;
+ OString aPSName = m_aPSName.toUtf8();
+ if (!mpReqFontName)
+ mpReqFontName = aPSName.getStr();
+
// TODO: move the glyphid/encid/notdef reshuffling from the callers to here
// dispatch to underlying subsetters