summaryrefslogtreecommitdiff
path: root/vcl/os2/source
diff options
context:
space:
mode:
authorhg <hg@oosvn01.>2009-10-08 15:46:11 +0000
committerhg <hg@oosvn01.>2009-10-08 15:46:11 +0000
commit3fb2edb5945be0a8ddc69759f1ec01029f5abe1a (patch)
treee7e79bc2c80d8a392f43712a3647ff99759fa4b8 /vcl/os2/source
parent4eef171d081c2ebf0005798f1ae038fb2d899441 (diff)
parentb960e2fb193c459418180e67ebcc0eacf63e1c3c (diff)
merge with m50
Diffstat (limited to 'vcl/os2/source')
-rw-r--r--vcl/os2/source/gdi/salgdi3.cxx18
1 files changed, 18 insertions, 0 deletions
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;
+}
+
+//--------------------------------------------------------------------------