summaryrefslogtreecommitdiff
path: root/vcl/source/glyphs
diff options
context:
space:
mode:
authorHerbert Duerr <hdu@openoffice.org>2002-08-05 06:19:22 +0000
committerHerbert Duerr <hdu@openoffice.org>2002-08-05 06:19:22 +0000
commit2ffb8a63e0df24a7e6b8f665059e85419ac4adc7 (patch)
tree6a80877147f0281f324ad581bebc6d944e6f51e3 /vcl/source/glyphs
parentac1c15a047c63e3a310e51d9fade5608f6742a2a (diff)
#100194# do not use obsolete methods in OutputDevice
Diffstat (limited to 'vcl/source/glyphs')
-rw-r--r--vcl/source/glyphs/gcach_vdev.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/vcl/source/glyphs/gcach_vdev.cxx b/vcl/source/glyphs/gcach_vdev.cxx
index a74fe220b361..530b4e75b237 100644
--- a/vcl/source/glyphs/gcach_vdev.cxx
+++ b/vcl/source/glyphs/gcach_vdev.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: gcach_vdev.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: hdu $ $Date: 2002-02-15 15:58:49 $
+ * last change: $Author: hdu $ $Date: 2002-08-05 07:19:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -202,8 +202,8 @@ void VirtDevServerFont::InitGlyphData( int nGlyphIndex, GlyphData& rGD ) const
vdev.SetFont( aFont );
// get glyph metrics
- long nCharWidth;
- vdev.GetCharWidth( nGlyphIndex, nGlyphIndex, &nCharWidth );
+ long nCharWidth = 10;
+// TODO: vdev.GetCharWidth( nGlyphIndex, nGlyphIndex, &nCharWidth );
rGD.SetCharWidth( nCharWidth );
const Rectangle aRect = vdev.GetTextRect( aRect, nGlyphIndex );
@@ -295,6 +295,9 @@ ULONG VirtDevServerFont::GetKernPairs( ImplKernPairData** ppImplKernPairs ) cons
bool VirtDevServerFont::GetGlyphOutline( int nGlyphIndex, PolyPolygon& rPolyPoly ) const
{
+#if 1
+ return false;
+#else
Font aFont;
aFont.SetName ( GetFontSelData().maName );
aFont.SetStyleName ( GetFontSelData().maStyleName );
@@ -308,6 +311,7 @@ bool VirtDevServerFont::GetGlyphOutline( int nGlyphIndex, PolyPolygon& rPolyPoly
const bool bOptimize = true;
return vdev.GetGlyphOutline( nGlyphIndex, rPolyPoly, bOptimize );
+#endif
}
// =======================================================================