On Fri, 11 Sep 2026 11:12:46 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

>> Test used to fail on linux in CI in older releases but with upgrade in 
>> harfbuzz and linux, with current jdk, it is not failing now in several 
>> iterations in linux and other platforms (CI test job in JBS) so 
>> deproblemlisting 
>> 
>> 
>> 
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Prasanta Sadhukhan has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Use Dialog font

Using Monospaced font, visual bounds 

final GlyphVector glyphs = derivedFont.createGlyphVector(
            bg.getFontRenderContext(), STR);
        final Rectangle2D bounds = glyphs.getVisualBounds();


and TEXT_ANTIALIASING , it passes in windows and linux but fails in osx in 
compareImage

java.lang.RuntimeException: Failed: wrong text location at i=108 j= 107 rgb1 
java.awt.Color[r=222,g=0,b=0] rgb2 java.awt.Color[r=254,g=0,b=0]
        at 
DrawRotatedStringUsingRotatedFont.compareImage(DrawRotatedStringUsingRotatedFont.java:104)
        at 
DrawRotatedStringUsingRotatedFont.main(DrawRotatedStringUsingRotatedFont.java:83)

Even with antialiasing OFF macos fails with monospaced font 
It seems only Dialog works with antialiasing in all platforms

-------------

PR Comment: https://git.openjdk.org/jdk/pull/32742#issuecomment-5776451295

Reply via email to