>X-Unix-From: [EMAIL PROTECTED]  Fri Aug  3 03:12:07
2001
>Delivered-To: [EMAIL PROTECTED]
>X-Priority: 3 (Normal)
>Mime-Version: 1.0
>Date: Fri, 3 Aug 2001 12:03:13 +0200
>From: matthias sweertvaegher <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] font scale factor
>To: [EMAIL PROTECTED]
>
>hello again
>
>i just realized i have the source code of this class :)
>i looked at it and idd, setrectanglescalefactor does NOT update the geometry
>but i found also a workaround :
>just set the label of the Text2D object after you set the scale factor
>then the geometry gets updated :)
>
>so i suppose this is a bug?
>
>greetz
>

Yes, this is bug 4431725 - Text2D setRectangleScaleFactor()
 not work if call after scene graph live

- Kelvin
-------------
Java 3D Team
Sun Microsystems Inc.

8/3/01 11:47:49 AM, matthias sweertvaegher
<[EMAIL PROTECTED]> wrote:
>
>>hello
>>
>>i have the following problem :
>>Suppose you have a textlabel of the class Text2D
>>Problem is, if you just display that with normal height (eg fontsize=14)
>>then it is very small. This is because of the rectanglescalefactor
>>which is by default 1/256.
>>So I thought, no problem, I just set it to 1 with the setRectangleScaleFactor
>>method.
>>Unfortunately, this doesn't work, and in a way I can understand because:
>>setrectanglescalefactor is not a static method. So you can only execute it
>>after you created the text object. But then the geometry is already set up,
>>so changing the scalefactor doesn't change the geometry, but the question
>>is then : how do I use the scalefactor method?
>>when has it to be called?
>>
>>notes :
>>-you also can't give it as a parameter to the constructor
>>-increasing the font size isn't a practical solution because it consumes a
huge
>> amount of memory then and the size isn't even that big yet
>>
>>my code fragment :
>> Text2D label = new Text2D("label",new
Color3f(1.0f,1.0f,1.0f),"Helvetica",14,java.awt.Font.BOLD);
>> label.setRectangleScaleFactor(1.0f);
>>
>>please help
>>
>>regards,
>>
>>mattie
>>
>>===========================================================================
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>>[EMAIL PROTECTED] and include in the body of the message "help".
>>
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to