diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-11-18 12:42:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-11-21 09:55:06 +0100 |
commit | 2df9b7cd3fa03077c9809dab9b94a20dd89002fb (patch) | |
tree | 86165e9f42d9ad8f1c51dca9c4f6b938ca6d0258 /vcl/qt5 | |
parent | 1b031eb1ba6c529ce67ff8f471afee414d64a098 (diff) |
stop setting OpenSymbol as a "Symbol" font
which has a specific meaning of a Windows Symbol encoding
Change-Id: I6e5d079303fccfabc8204fc0dbae0870efb839a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142947
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/QtFontFace.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/qt5/QtFontFace.cxx b/vcl/qt5/QtFontFace.cxx index d45fadafe87e..351f59739544 100644 --- a/vcl/qt5/QtFontFace.cxx +++ b/vcl/qt5/QtFontFace.cxx @@ -108,8 +108,6 @@ void QtFontFace::fillAttributesFromQFont(const QFont& rFont, FontAttributes& rFA QFontInfo aFontInfo(rFont); rFA.SetFamilyName(toOUString(aFontInfo.family())); - if (IsOpenSymbol(toOUString(aFontInfo.family()))) - rFA.SetSymbolFlag(true); rFA.SetStyleName(toOUString(aFontInfo.styleName())); rFA.SetPitch(aFontInfo.fixedPitch() ? PITCH_FIXED : PITCH_VARIABLE); rFA.SetWeight(QtFontFace::toFontWeight(aFontInfo.weight())); @@ -142,8 +140,6 @@ QtFontFace* QtFontFace::fromQFontDatabase(const QString& aFamily, const QString& FontAttributes aFA; aFA.SetFamilyName(toOUString(aFamily)); - if (IsOpenSymbol(aFA.GetFamilyName())) - aFA.SetSymbolFlag(true); aFA.SetStyleName(toOUString(aStyle)); aFA.SetPitch(isFixedPitch ? PITCH_FIXED : PITCH_VARIABLE); aFA.SetWeight(QtFontFace::toFontWeight(weigh)); |