# HG changeset patch # User Claus Gittinger # Date 1289224225 -3600 # Node ID 760a83be3f6103b9547f77c5bd8f010f9a37a4f1 # Parent 664ce01f38f5e73d98f22f0a8d4f781bd1f79938 changed: #fontDescriptionFromLogicalFontInfoArray: diff -r 664ce01f38f5 -r 760a83be3f61 WinWorkstation.st --- a/WinWorkstation.st Mon Nov 08 14:46:15 2010 +0100 +++ b/WinWorkstation.st Mon Nov 08 14:50:25 2010 +0100 @@ -12663,27 +12663,36 @@ ! fontDescriptionFromLogicalFontInfoArray:anInfoArray - |fntDescr family face style logicalSize pointSize encoding| + |fntDescr family face style logicalSize pointSize encoding outQuality| family := anInfoArray at:16. face := anInfoArray at:6. style := anInfoArray at:15. logicalSize := anInfoArray at:1. encoding := anInfoArray at:17. + outQuality := anInfoArray at:13. logicalSize := logicalSize abs. "/ convert from device to point size pointSize := (logicalSize / self getLogicalPixelSizeY * 72.0). fntDescr := FontDescription - family:family - face:face - style:style - size:pointSize - sizeUnit:#pt - encoding:encoding. + family:family + face:face + style:style + size:pointSize + sizeUnit:#pt + encoding:encoding. fntDescr setPixelSize:logicalSize. + + UserPreferences current workAroundRenderingBugOnVista ifTrue:[ + fntDescr isFixedWidth ifFalse:[ + fntDescr hasOverlappingCharacters:true. + ] + ]. ^ fntDescr. + + "Modified: / 08-11-2010 / 14:49:26 / cg" ! fontMetricsOf:fontId @@ -18930,11 +18939,11 @@ !WinWorkstation class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libview/WinWorkstation.st,v 1.442 2010-10-26 15:30:40 cg Exp $' + ^ '$Header: /cvs/stx/stx/libview/WinWorkstation.st,v 1.443 2010-11-08 13:50:25 cg Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/libview/WinWorkstation.st,v 1.442 2010-10-26 15:30:40 cg Exp $' + ^ '$Header: /cvs/stx/stx/libview/WinWorkstation.st,v 1.443 2010-11-08 13:50:25 cg Exp $' ! ! WinWorkstation initialize!