I am drawing to a canvas using RB 2006r3.

I did file a bug report as Joe suggested, and got a very quick response form the RS testing department which reports that the difference is due to the underlying OS APIs, and that not much can be done about it.

:-(

--Peter


On Sep 20, 2006, at 8:20 AM, Francois Van Lerberghe wrote:

le 20/09/06 6:17, Peter Truskier <[EMAIL PROTECTED]> a écrit :

I've just encountered what seems to be a really unfortunate
difference (a bug?) in the way the graphics.drawstring method behaves
on Mac and Windows when drawing a string with the optional WrapWidth
parameter specified. On the Mac, the string may be broken anywhere to
fit whereas on Windows, the string will only break on a space character.

That is, if s is long string that contains no spaces, g.drawstring
s,x,y,w will draw all characters in the string on the Mac, line-
breaking wherever it needs to. On Windows, on the other hand, it will
be truncated, just as if the WrapWidth parameter were not specified.

Is this a bug? Is there a workaround I'm overlooking?

Do you try to draw on screen or on a printer graphic ?

In RB 3.5, I've seen a similar situation with g.stringWidth. This function
returned an incorrect value in windows when used to draw on a printer
graphic AND the printing resolution was low (not maximal) (not true with any font). Or perhaps it's the resulting drawing that was modified when the resolution was low : the width of the printed text was bigger in this case
than with maximal resolution.

François Van Lerberghe
Rue Thier Monty, 15 A
4570 Marchin
Belgique

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to