1 Index: vcl/unx/source/gdi/dtint.cxx
2 ===================================================================
3 RCS file: /cvs/gsl/vcl/unx/source/gdi/dtint.cxx,v
4 retrieving revision 1.16
5 diff -u -p -u -r1.16 dtint.cxx
6 --- vcl/unx/source/gdi/dtint.cxx 28 May 2003 12:33:47 -0000 1.16
7 +++ vcl/unx/source/gdi/dtint.cxx 10 Jun 2003 14:17:38 -0000
8 @@ -229,19 +229,8 @@ Font DtIntegrator::parseFont( const Byte
9 xub_StrLen nIndex = nPos2;
10 ByteString aToken = rLine.GetToken( 1, ',', nIndex );
13 - int nPixelHeight = aToken.ToInt32();
15 - long nDispDPIY = mpSalDisplay->GetResolution().B();
16 - mpSalDisplay->GetScreenFontResolution( nDPIX, nDPIY );
17 - int nHeight = nPixelHeight * nDispDPIY / nDPIY;
18 - // allow for rounding in back conversion (at SetFont)
19 - while( (nHeight * nDPIY / nDispDPIY) > nPixelHeight )
21 - while( (nHeight * nDPIY / nDispDPIY) < nPixelHeight )
23 - aFont.SetHeight( nHeight );
25 + aFont.SetHeight( (long) OString(aToken).toDouble() );
27 while( nIndex != STRING_NOTFOUND )
29 aToken = rLine.GetToken( 0, ',', nIndex );