On Fri, 20 Feb 2009, Lorenzo Fiorini wrote: > > In GTXWC there are two compile time switches which can be used to > > "fix" font metrics: > > #define XWC_DEFAULT_FONT_FIXMETRIC FALSE > > #define XWC_DEFAULT_FONT_CLRBKG FALSE > I'm working with 1.0.1 under Ubuntu now but I can choose many fonts > without any garbage. > Could it be that XWC_DEFAULT_FONT_FIXMETRIC TRUE cures it?
Yes, it's possible. When FIXMETRICS is set only single character is drawn and GTXWC recalculates the position of next one. When it's not set then many characters are set if they have the same foreground and background colors. F.e. if you make ? "ABC" then "ABC" is send to XServer as single string. If you set FixMetric to TRUE then "A", "B" and "C" are send separately and for each character new position is calculated. It allows to use some proportional fonts but reduce the speed. ClsrBkg enables additional clearing the background. By default characters or strings are send with both foreground and background colors. But if font metric is wrong then it's possible that not whole background area will be written. If you set ClsrBkg to true then GTXWC write rectangle in background color erasing the are before writing any character(s). Both switches can be used separately and both causes some speed overhead. best regards, Przemek _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
