summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2014-05-21 12:56:56 +0000
committerHerbert Dürr <hdu@apache.org>2014-05-21 12:56:56 +0000
commit8470308050cb5c71262fdf67ec689d628c9558e8 (patch)
tree61a7b4655808efa80610061f74dfe325f921b67c /vcl/source
parent4bdef485997f44c1acf786232327ed6901c60f63 (diff)
#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. Reviewed-by: Armin Le Grand <alg@apache.org>
Notes
Notes: prefer: 21334f74a53197c32863fdf3d7e6f365f1b868b7
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/font.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/vcl/source/gdi/font.cxx b/vcl/source/gdi/font.cxx
index 69724672ae1e..1826c92aabc0 100644
--- a/vcl/source/gdi/font.cxx
+++ b/vcl/source/gdi/font.cxx
@@ -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);
}
// -----------------------------------------------------------------------