[piccolo2d-dev] Re: Issue 191 in piccolo2d: Disabling FRACTIONAL_METRICS on Windows yields incorrect bounds for text PSwing components

2011-03-30 Thread piccolo2d


Comment #13 on issue 191 by cmal...@pixelzoom.com: Disabling  
FRACTIONAL_METRICS on Windows yields incorrect bounds for text PSwing  
components

http://code.google.com/p/piccolo2d/issues/detail?id=191

Yes, I am able to work around ellipses in a component by explicitly  
increasing its preferred width.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 191 in piccolo2d: Disabling FRACTIONAL_METRICS on Windows yields incorrect bounds for text PSwing components

2011-03-28 Thread piccolo2d


Comment #11 on issue 191 by atdi...@gmail.com: Disabling FRACTIONAL_METRICS  
on Windows yields incorrect bounds for text PSwing components

http://code.google.com/p/piccolo2d/issues/detail?id=191

Are you able to workaround ellipses by explicitly setting preferred bounds  
on the component (giving it larger width)?


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 191 in piccolo2d: Disabling FRACTIONAL_METRICS on Windows yields incorrect bounds for text PSwing components

2011-03-02 Thread piccolo2d


Comment #3 on issue 191 by heue...@gmail.com: Disabling FRACTIONAL_METRICS  
on Windows yields incorrect bounds for text PSwing components

http://code.google.com/p/piccolo2d/issues/detail?id=191

Per

http://developer.apple.com/library/mac/documentation/Java/Reference/Java_PropertiesRef/Articles/JavaSystemProperties.html

There are some system properties on OSX that might affect how text is  
rendered and how this rendering hint is applied:


apple.awt.graphics.EnableQ2DX

Determines whether hardware acceleration is used to speed up rendering  
of simple primitives like images, lines, rects, and simple characters. In  
addition to using this flag, you need to enable Quartz 2D acceleration in  
the Quartz Debug application, included with the Xcode Developer Tools for  
Mac OS X.


This is strictly a developer option. Java applications intended for use  
on Mac OS X should not rely on the presence of Quartz 2D acceleration.


The default value is false.

apple.awt.graphics.UseQuartz

Determines whether Apple’s Quartz renderer is used instead of Sun’s 2D  
renderer.


The default value is true for J2SE 5.0 and false for Java SE 6.


Thus the OS check might not be sufficient.

See also Issue 117 which documents my frustration with Piccolo2D text  
rendering in general.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 191 in piccolo2d: Disabling FRACTIONAL_METRICS on Windows yields incorrect bounds for text PSwing components

2011-03-02 Thread piccolo2d


Comment #4 on issue 191 by heue...@gmail.com: Disabling FRACTIONAL_METRICS  
on Windows yields incorrect bounds for text PSwing components

http://code.google.com/p/piccolo2d/issues/detail?id=191

Consider also OpenJDK builds on Mac OSX

http://code.google.com/p/openjdk-osx-build/

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 191 in piccolo2d: Disabling FRACTIONAL_METRICS on Windows yields incorrect bounds for text PSwing components

2010-12-21 Thread piccolo2d

Updates:
Labels: Milestone-1.3.1

Comment #2 on issue 191 by heue...@gmail.com: Disabling FRACTIONAL_METRICS  
on Windows yields incorrect bounds for text PSwing components

http://code.google.com/p/piccolo2d/issues/detail?id=191

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 191 in piccolo2d: Disabling FRACTIONAL_METRICS on Windows yields incorrect bounds for text PSwing components

2010-09-08 Thread piccolo2d


Comment #1 on issue 191 by allain.lalonde: Disabling FRACTIONAL_METRICS on  
Windows yields incorrect bounds for text PSwing components

http://code.google.com/p/piccolo2d/issues/detail?id=191

The solution you gave seems to be the way to go about it.

Best case scenario is to have the fractional metrics enabled across the  
board and this gets us far closer to that. Even though it's obviously going  
against the very nature of cross platform Java code, working is working.


Only gotcha there I think is that it would disable it for all mac  
platforms. Are we sure that there are no mac machines for which fractional  
metrics doesn't introduce an ellipsis?


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en