summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-28 15:11:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-10-29 10:14:16 +0100
commit388735924392027eb6a8e722083e6496b92a40fa (patch)
tree112aaf7591c9fef82d3415fe8e16c0263a1a2383 /vcl/source/outdev
parente58592414da353aaef9432277d7155fc0c0f0213 (diff)
tdf#137643 alternative solution to activate embedded fonts in one batch
Change-Id: Ib5ffb2b8a31f237d5d2e465bf3f777590e0bfade Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104947 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/font.cxx18
1 files changed, 0 insertions, 18 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index faaff5682df5..e633781ed040 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -135,26 +135,8 @@ Size OutputDevice::GetDevFontSize( const vcl::Font& rFont, int nSizeIndex ) cons
return aSize;
}
-namespace
-{
- struct UpdateFontsGuard
- {
- UpdateFontsGuard()
- {
- OutputDevice::ImplClearAllFontData(true);
- }
-
- ~UpdateFontsGuard()
- {
- OutputDevice::ImplRefreshAllFontData(true);
- }
- };
-}
-
bool OutputDevice::AddTempDevFont( const OUString& rFileURL, const OUString& rFontName )
{
- UpdateFontsGuard aUpdateFontsGuard;
-
ImplInitFontList();
if( !mpGraphics && !AcquireGraphics() )