Author: hdu
Date: Wed May 21 12:56:56 2014
New Revision: 1596566

URL: http://svn.apache.org/r1596566
Log:
#i124915# use target device dependent font height again

Setting a fixed default font height parameter doesn't make much sense when
neither the target device nor its mapping mode nor its target resolution are
known. This change reverts revision 1589449 of bug 124686 that has already been
solved differently and restores the previous behaviour so that the default 
height
of default constructed fonts is set to 12pt when the target device becomes 
known.

Modified:
    openoffice/trunk/main/vcl/source/gdi/font.cxx

Modified: openoffice/trunk/main/vcl/source/gdi/font.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/source/gdi/font.cxx?rev=1596566&r1=1596565&r2=1596566&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/source/gdi/font.cxx (original)
+++ openoffice/trunk/main/vcl/source/gdi/font.cxx Wed May 21 12:56:56 2014
@@ -74,12 +74,6 @@ Impl_Font::Impl_Font() :
        mbVertical                      = false;
        mbTransparent           = true;
        mbConfigLookup          = false;
-
-    // #124686# the Size is defaulted to (0,0) when default constructed,
-    // this is not useful for a default font. Init it to a useful default
-    // so that the Font::Font() constructor which uses a 'naked' static 
-    // Impl_Font instance (aStaticImplFont) creates a useful default font
-    maSize = Size(0, 16);
 }
 
 // -----------------------------------------------------------------------


Reply via email to