summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/embeddedfontshelper.cxx3
-rw-r--r--vcl/source/gdi/print.cxx9
-rw-r--r--vcl/source/gdi/virdev.cxx3
3 files changed, 9 insertions, 6 deletions
diff --git a/vcl/source/gdi/embeddedfontshelper.cxx b/vcl/source/gdi/embeddedfontshelper.cxx
index cbe4ceed3454..ebcedb45b6a4 100644
--- a/vcl/source/gdi/embeddedfontshelper.cxx
+++ b/vcl/source/gdi/embeddedfontshelper.cxx
@@ -21,6 +21,7 @@
#include <com/sun/star/io/XInputStream.hpp>
#include <outdev.h>
+#include <font/PhysicalFontFaceCollection.hxx>
#include <PhysicalFontCollection.hxx>
#include <salgdi.hxx>
#include <sft.hxx>
@@ -258,7 +259,7 @@ OUString EmbeddedFontsHelper::fontFileUrl( std::u16string_view familyName, FontF
SalGraphics* graphics = Application::GetDefaultDevice()->GetGraphics();
PhysicalFontCollection fonts;
graphics->GetDevFontList( &fonts );
- std::unique_ptr< ImplDeviceFontList > fontInfo( fonts.GetDeviceFontList());
+ std::unique_ptr< vcl::font::PhysicalFontFaceCollection > fontInfo( fonts.GetFontFaceCollection());
PhysicalFontFace* selected = nullptr;
for( int i = 0;
i < fontInfo->Count();
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index f46d6ed03ec5..36aa93f6ec37 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -35,6 +35,7 @@
#include <outdev.h>
#include <print.h>
#include <PhysicalFontCollection.hxx>
+#include <font/PhysicalFontFaceCollection.hxx>
#include <print.hrc>
#include <salgdi.hxx>
#include <salinst.hxx>
@@ -560,7 +561,7 @@ void Printer::ImplReleaseFonts()
mbInitFont = true;
mpFontInstance.clear();
- mpDeviceFontList.reset();
+ mpFontFaceCollection.reset();
mpDeviceFontSizeList.reset();
}
@@ -922,7 +923,7 @@ void Printer::dispose()
// the FontEntry to NULL here
// TODO: consolidate duplicate cleanup by Printer and OutputDevice
mpFontInstance.clear();
- mpDeviceFontList.reset();
+ mpFontFaceCollection.reset();
mpDeviceFontSizeList.reset();
mxFontCache.reset();
// font list deleted by OutputDevice dtor
@@ -1069,7 +1070,7 @@ bool Printer::SetPrinterProps( const Printer* pPrinter )
ReleaseGraphics();
pSVData->mpDefInst->DestroyInfoPrinter( mpInfoPrinter );
mpFontInstance.clear();
- mpDeviceFontList.reset();
+ mpFontFaceCollection.reset();
mpDeviceFontSizeList.reset();
// clean up font list
mxFontCache.reset();
@@ -1098,7 +1099,7 @@ bool Printer::SetPrinterProps( const Printer* pPrinter )
pSVData->mpDefInst->DestroyInfoPrinter( mpInfoPrinter );
mpFontInstance.clear();
- mpDeviceFontList.reset();
+ mpFontFaceCollection.reset();
mpDeviceFontSizeList.reset();
mxFontCache.reset();
mxFontCollection.reset();
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index 8f5a1d96f329..77f364aded4d 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -26,6 +26,7 @@
#include <vcl/virdev.hxx>
#include <outdev.h>
+#include <font/PhysicalFontFaceCollection.hxx>
#include <PhysicalFontCollection.hxx>
#include <salinst.hxx>
#include <salgdi.hxx>
@@ -470,7 +471,7 @@ void VirtualDevice::ImplSetReferenceDevice( RefDevMode i_eRefDevMode, sal_Int32
// the reference device should have only scalable fonts
// => clean up the original font lists before getting new ones
mpFontInstance.clear();
- mpDeviceFontList.reset();
+ mpFontFaceCollection.reset();
mpDeviceFontSizeList.reset();
// preserve global font lists