diff options
Diffstat (limited to 'vcl/win/gdi/salfont.cxx')
-rw-r--r-- | vcl/win/gdi/salfont.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index ec122f48e41a..323b6af952e9 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -79,6 +79,8 @@ static int IntTimes256FromFixed(FIXED f) return nFixedTimes256; } +namespace { + // raw font data with a scoped lifetime class RawFontData { @@ -93,6 +95,8 @@ private: unsigned mnByteCount; }; +} + RawFontData::RawFontData( HDC hDC, DWORD nTableTag ) : mnByteCount( 0 ) { @@ -145,6 +149,8 @@ RawFontData::RawFontData( HDC hDC, DWORD nTableTag ) // platform specific font substitution hooks for glyph fallback enhancement +namespace { + class WinPreMatchFontSubstititution : public ImplPreMatchFontSubstitution { @@ -172,6 +178,8 @@ private: bool HasMissingChars(PhysicalFontFace*, OUString& rMissingChars) const; }; +} + // does a font face hold the given missing characters? bool WinGlyphFallbackSubstititution::HasMissingChars(PhysicalFontFace* pFace, OUString& rMissingChars) const { @@ -338,6 +346,8 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute(FontSelectPattern& rFont return bFound; } +namespace { + struct ImplEnumInfo { HDC mhDC; @@ -348,6 +358,8 @@ struct ImplEnumInfo int mnFontCount; }; +} + static rtl_TextEncoding ImplCharSetToSal( BYTE nCharSet ) { rtl_TextEncoding eTextEncoding; @@ -1513,6 +1525,8 @@ ScopedFont::~ScopedFont() } } +namespace { + class ScopedTrueTypeFont { public: @@ -1528,6 +1542,8 @@ private: TrueTypeFont * m_pFont; }; +} + ScopedTrueTypeFont::~ScopedTrueTypeFont() { if (m_pFont != nullptr) |