diff options
author | Tor Lillqvist <tml@collabora.com> | 2022-03-08 14:29:54 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2022-03-22 13:08:12 +0100 |
commit | bd568636bfe85d1f72b93227adb501a959068213 (patch) | |
tree | 5afeb46ee23908304a610c5a792f7f17f2d536b1 | |
parent | 69deb41027783a8ca43aaf76816446234bc3a0a7 (diff) |
Trust the family name in the font file if necessary
Change-Id: I3598179bf85ba3acdaca6058982ba5bf81e68288
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131249
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | vcl/unx/generic/print/genpspgraphics.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx index 8a53b52d3ee1..3074033df235 100644 --- a/vcl/unx/generic/print/genpspgraphics.cxx +++ b/vcl/unx/generic/print/genpspgraphics.cxx @@ -644,7 +644,8 @@ bool GenPspGraphics::AddTempDevFontHelper( PhysicalFontCollection* pFontCollecti // prepare font data psp::FastPrintFontInfo aInfo; rMgr.getFontFastInfo( elem, aInfo ); - aInfo.m_aFamilyName = rFontName; + if (!rFontName.isEmpty()) + aInfo.m_aFamilyName = rFontName; // inform glyph cache of new font FontAttributes aDFA = GenPspGraphics::Info2FontAttributes( aInfo ); |