diff options
author | hg <hg@oosvn01.> | 2009-10-08 15:46:11 +0000 |
---|---|---|
committer | hg <hg@oosvn01.> | 2009-10-08 15:46:11 +0000 |
commit | 3fb2edb5945be0a8ddc69759f1ec01029f5abe1a (patch) | |
tree | e7e79bc2c80d8a392f43712a3647ff99759fa4b8 /vcl/os2 | |
parent | 4eef171d081c2ebf0005798f1ae038fb2d899441 (diff) | |
parent | b960e2fb193c459418180e67ebcc0eacf63e1c3c (diff) |
merge with m50
Diffstat (limited to 'vcl/os2')
-rw-r--r-- | vcl/os2/inc/salgdi.h | 1 | ||||
-rw-r--r-- | vcl/os2/source/gdi/salgdi3.cxx | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/vcl/os2/inc/salgdi.h b/vcl/os2/inc/salgdi.h index 5e70f50ada79..1fb51f089100 100644 --- a/vcl/os2/inc/salgdi.h +++ b/vcl/os2/inc/salgdi.h @@ -328,6 +328,7 @@ public: virtual BOOL IsNativeControlSupported( ControlType nType, ControlPart nPart ); virtual SystemGraphicsData GetGraphicsData() const; + virtual SystemFontData GetSysFontData( int nFallbacklevel ) const; }; // Init/Deinit Graphics diff --git a/vcl/os2/source/gdi/salgdi3.cxx b/vcl/os2/source/gdi/salgdi3.cxx index 546f4bf2b7cd..573fa7336fb0 100644 --- a/vcl/os2/source/gdi/salgdi3.cxx +++ b/vcl/os2/source/gdi/salgdi3.cxx @@ -1754,3 +1754,21 @@ void Os2SalGraphics::DrawServerFontLayout( const ServerFontLayout& ) //-------------------------------------------------------------------------- +SystemFontData Os2SalGraphics::GetSysFontData( int nFallbacklevel ) const +{ + SystemFontData aSysFontData; + + if (nFallbacklevel >= MAX_FALLBACK) nFallbacklevel = MAX_FALLBACK - 1; + if (nFallbacklevel < 0 ) nFallbacklevel = 0; + + aSysFontData.nSize = sizeof( SystemFontData ); + aSysFontData.hFont = mhFonts[nFallbacklevel]; + aSysFontData.bFakeBold = false; + aSysFontData.bFakeItalic = false; + aSysFontData.bAntialias = true; + aSysFontData.bVerticalCharacterType = false; + + return aSysFontData; +} + +//-------------------------------------------------------------------------- |