summaryrefslogtreecommitdiff
path: root/vcl/quartz/salgdi.cxx
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-08-09 12:03:06 +0300
committerخالد حسني <khaled@libreoffice.org>2023-08-09 12:42:57 +0200
commit3b7eb222411da48a9b7a585b39ef7a240f6222bc (patch)
treef4bf570086289b0418f45a96681d16a14b12dd33 /vcl/quartz/salgdi.cxx
parent90b23d0b4528a12ababa3c2897ab3f1a3719b2f1 (diff)
vcl: Organize CoreText font code a bit
The code was all over the place with classes split between files or grouped in some files and I couldn’t make a head or tail of it. Move each class to a dedicated source/header file. Change-Id: I35daa05b4684c13339c637819dc30fa47a60cf65 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155503 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl/quartz/salgdi.cxx')
-rw-r--r--vcl/quartz/salgdi.cxx22
1 files changed, 4 insertions, 18 deletions
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index 26f1cc32184a..f800e3c15829 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -39,7 +39,6 @@
#include <vcl/svapp.hxx>
#include <vcl/sysdata.hxx>
-#include <quartz/ctfonts.hxx>
#include <fontsubset.hxx>
#include <impfont.hxx>
#include <font/FontMetricData.hxx>
@@ -61,6 +60,10 @@
#include <skia/osx/gdiimpl.hxx>
#endif
+#include <quartz/SystemFontList.hxx>
+#include <quartz/CoreTextFont.hxx>
+#include <quartz/CoreTextFontFace.hxx>
+
using namespace vcl;
namespace {
@@ -120,23 +123,6 @@ bool CoreTextGlyphFallbackSubstititution::FindFontSubstitute(vcl::font::FontSele
return bFound;
}
-CoreTextFontFace::CoreTextFontFace( const FontAttributes& rDFA, CTFontDescriptorRef xFontDescriptor )
- : vcl::font::PhysicalFontFace( rDFA )
- , mxFontDescriptor( xFontDescriptor )
-{
- CFRetain(mxFontDescriptor);
-}
-
-CoreTextFontFace::~CoreTextFontFace()
-{
- CFRelease(mxFontDescriptor);
-}
-
-sal_IntPtr CoreTextFontFace::GetFontId() const
-{
- return reinterpret_cast<sal_IntPtr>(mxFontDescriptor);
-}
-
AquaSalGraphics::AquaSalGraphics(bool bPrinter)
: mnRealDPIX( 0 )
, mnRealDPIY( 0 )