diff options
author | Christof Pintaske <cp@openoffice.org> | 2001-04-09 09:55:07 +0000 |
---|---|---|
committer | Christof Pintaske <cp@openoffice.org> | 2001-04-09 09:55:07 +0000 |
commit | 300bdb5fb595b4ca0a838811005472e45c57a980 (patch) | |
tree | 9579c3096f9ebe5813fcae4bfe3f1abdb022469f /vcl/unx/source/gdi/xfont.cxx | |
parent | 429a0d2db64d59fc20853f740ee330c9c3f6a7aa (diff) |
#85876# correct width for fixed width fonts
Diffstat (limited to 'vcl/unx/source/gdi/xfont.cxx')
-rw-r--r-- | vcl/unx/source/gdi/xfont.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/unx/source/gdi/xfont.cxx b/vcl/unx/source/gdi/xfont.cxx index 0a508489e392..9e6d4183127a 100644 --- a/vcl/unx/source/gdi/xfont.cxx +++ b/vcl/unx/source/gdi/xfont.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xfont.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: cp $ $Date: 2001-04-06 08:13:37 $ + * last change: $Author: cp $ $Date: 2001-04-09 10:55:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -372,7 +372,7 @@ ExtendedFontStruct::GetCharWidth8( sal_Unicode nFrom, sal_Unicode nTo, { // fixed width font for ( int nIdx = nFrom; nIdx <= nTo; nIdx++, pWidthArray++ ) - *pWidthArray = mnDefaultWidth; + *pWidthArray = pXFontStruct->max_bounds.width; } else { @@ -426,7 +426,7 @@ ExtendedFontStruct::GetCharWidthUTF16( sal_Unicode nFrom, sal_Unicode nTo, { // really a fixed width font for ( sal_Int32 nIdx = nFrom; nIdx <= nTo; nIdx++, pWidthArray++ ) - *pWidthArray = mnDefaultWidth; + *pWidthArray = pXFontStruct->max_bounds.width; } else { @@ -512,7 +512,7 @@ ExtendedFontStruct::GetCharWidth16( sal_Unicode nFrom, sal_Unicode nTo, || (pFont->per_char == NULL) ) { // fixed width font - *pWidthArray = pFont->min_bounds.width; + *pWidthArray = pFont->max_bounds.width; } else { |