diff options
Diffstat (limited to 'vcl/source/font')
-rw-r--r-- | vcl/source/font/FontSelectPattern.cxx (renamed from vcl/source/font/fontselect.cxx) | 3 | ||||
-rw-r--r-- | vcl/source/font/PhysicalFontCollection.cxx | 2 | ||||
-rw-r--r-- | vcl/source/font/PhysicalFontFace.cxx | 6 | ||||
-rw-r--r-- | vcl/source/font/fontcache.cxx | 5 | ||||
-rw-r--r-- | vcl/source/font/fontinstance.cxx | 6 | ||||
-rw-r--r-- | vcl/source/font/fontmetric.cxx | 6 |
6 files changed, 17 insertions, 11 deletions
diff --git a/vcl/source/font/fontselect.cxx b/vcl/source/font/FontSelectPattern.cxx index 3ea89bde90e1..23e7673c8da2 100644 --- a/vcl/source/font/fontselect.cxx +++ b/vcl/source/font/FontSelectPattern.cxx @@ -20,10 +20,11 @@ #include <sal/config.h> #include <o3tl/safeint.hxx> #include <tools/gen.hxx> + #include <vcl/font.hxx> -#include <PhysicalFontFace.hxx> #include <font/FontSelectPattern.hxx> +#include <font/PhysicalFontFace.hxx> namespace vcl::font { diff --git a/vcl/source/font/PhysicalFontCollection.cxx b/vcl/source/font/PhysicalFontCollection.cxx index c97beb478c79..42dc11d303e2 100644 --- a/vcl/source/font/PhysicalFontCollection.cxx +++ b/vcl/source/font/PhysicalFontCollection.cxx @@ -276,7 +276,7 @@ vcl::font::PhysicalFontFamily* PhysicalFontCollection::GetGlyphFallbackFont( vcl return pFallbackData; } -void PhysicalFontCollection::Add( PhysicalFontFace* pNewData ) +void PhysicalFontCollection::Add( vcl::font::PhysicalFontFace* pNewData ) { OUString aSearchName = GetEnglishSearchFontName( pNewData->GetFamilyName() ); diff --git a/vcl/source/font/PhysicalFontFace.cxx b/vcl/source/font/PhysicalFontFace.cxx index 7d278df9871d..6acfe3da1575 100644 --- a/vcl/source/font/PhysicalFontFace.cxx +++ b/vcl/source/font/PhysicalFontFace.cxx @@ -24,9 +24,12 @@ #include <unotools/fontdefs.hxx> #include <fontattributes.hxx> + #include <font/FontSelectPattern.hxx> +#include <font/PhysicalFontFace.hxx> -#include <PhysicalFontFace.hxx> +namespace vcl::font +{ PhysicalFontFace::PhysicalFontFace( const FontAttributes& rDFA ) : FontAttributes( rDFA ) @@ -176,5 +179,6 @@ bool PhysicalFontFace::IsBetterMatch( const vcl::font::FontSelectPattern& rFSD, rStatus.mnWidthMatch = nWidthMatch; return true; } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/vcl/source/font/fontcache.cxx b/vcl/source/font/fontcache.cxx index 5e94441466b0..c125d49f0d1b 100644 --- a/vcl/source/font/fontcache.cxx +++ b/vcl/source/font/fontcache.cxx @@ -18,10 +18,11 @@ */ #include <sal/config.h> + #include <sal/log.hxx> #include <PhysicalFontCollection.hxx> -#include <PhysicalFontFace.hxx> +#include <font/PhysicalFontFace.hxx> #include <font/PhysicalFontFamily.hxx> #include <fontinstance.hxx> #include <impfontcache.hxx> @@ -143,7 +144,7 @@ rtl::Reference<LogicalFontInstance> ImplFontCache::GetFontInstance( PhysicalFont if( !pFontInstance && pFontFamily) // still no cache hit => create a new font instance { - PhysicalFontFace* pFontData = pFontFamily->FindBestFontFace(aFontSelData); + vcl::font::PhysicalFontFace* pFontData = pFontFamily->FindBestFontFace(aFontSelData); // create a new logical font instance from this physical font face pFontInstance = pFontData->CreateFontInstance( aFontSelData ); diff --git a/vcl/source/font/fontinstance.cxx b/vcl/source/font/fontinstance.cxx index 672ac82e1bdb..49b0593ce592 100644 --- a/vcl/source/font/fontinstance.cxx +++ b/vcl/source/font/fontinstance.cxx @@ -22,9 +22,9 @@ #include <hb-ot.h> #include <hb-graphite2.h> +#include <font/PhysicalFontFace.hxx> #include <fontinstance.hxx> #include <impfontcache.hxx> -#include <PhysicalFontFace.hxx> #include <o3tl/hash_combine.hxx> @@ -45,7 +45,7 @@ namespace std } -LogicalFontInstance::LogicalFontInstance(const PhysicalFontFace& rFontFace, const vcl::font::FontSelectPattern& rFontSelData ) +LogicalFontInstance::LogicalFontInstance(const vcl::font::PhysicalFontFace& rFontFace, const vcl::font::FontSelectPattern& rFontSelData ) : mxFontMetric( new ImplFontMetricData( rFontSelData )) , mpConversion( nullptr ) , mnLineHeight( 0 ) @@ -56,7 +56,7 @@ LogicalFontInstance::LogicalFontInstance(const PhysicalFontFace& rFontFace, cons , m_aFontSelData(rFontSelData) , m_pHbFont(nullptr) , m_nAveWidthFactor(1.0f) - , m_pFontFace(&const_cast<PhysicalFontFace&>(rFontFace)) + , m_pFontFace(&const_cast<vcl::font::PhysicalFontFace&>(rFontFace)) { } diff --git a/vcl/source/font/fontmetric.cxx b/vcl/source/font/fontmetric.cxx index 2e3859b1f941..000523941813 100644 --- a/vcl/source/font/fontmetric.cxx +++ b/vcl/source/font/fontmetric.cxx @@ -26,9 +26,9 @@ #include <vcl/outdev.hxx> #include <sal/log.hxx> -#include <PhysicalFontFace.hxx> -#include <fontinstance.hxx> #include <font/FontSelectPattern.hxx> +#include <font/PhysicalFontFace.hxx> +#include <fontinstance.hxx> #include <impfontmetricdata.hxx> #include <sft.hxx> @@ -53,7 +53,7 @@ FontMetric::FontMetric() FontMetric::FontMetric( const FontMetric& rFontMetric ) = default; -FontMetric::FontMetric(PhysicalFontFace const& rFace) +FontMetric::FontMetric(vcl::font::PhysicalFontFace const& rFace) : FontMetric() { SetFamilyName(rFace.GetFamilyName()); |