diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2020-08-14 05:53:26 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2020-08-15 13:18:43 +0200 |
commit | 5a888c5fd295f9b98dee9ce930e653cb63a02857 (patch) | |
tree | 06dd986e0d30a8caf38e3565d481ec8cf82d8003 /vcl/qt5/Qt5FontFace.cxx | |
parent | 4c05d61a4393d38834254f03a83aa01b7582060b (diff) |
tdf#125234 Qt5 implement CreateFontSubset
This abstracts the just refactored vcl::TrueTypeFont class, so the
Qt5 backend can provide it's own QRawFont based font table access.
Change-Id: Ic71bc95bc8fe39bc7a32086d4adc78cfa00d15be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100718
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/qt5/Qt5FontFace.cxx')
-rw-r--r-- | vcl/qt5/Qt5FontFace.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5FontFace.cxx b/vcl/qt5/Qt5FontFace.cxx index 8ac2f87d1843..d02e61955103 100644 --- a/vcl/qt5/Qt5FontFace.cxx +++ b/vcl/qt5/Qt5FontFace.cxx @@ -149,6 +149,13 @@ Qt5FontFace::Qt5FontFace(const FontAttributes& rFA, const QString& rFontID) sal_IntPtr Qt5FontFace::GetFontId() const { return reinterpret_cast<sal_IntPtr>(&m_aFontId); } +QFont Qt5FontFace::CreateFont() const +{ + QFont aFont; + aFont.fromString(m_aFontId); + return aFont; +} + rtl::Reference<LogicalFontInstance> Qt5FontFace::CreateFontInstance(const FontSelectPattern& rFSD) const { |