[jdk8u-dev] RFR: 8203485: [freetype] text rotated on 180 degrees is too narrow

Sergey Bylokhov serb at openjdk.org
Mon Jan 2 06:38:03 UTC 2023


On Mon, 12 Dec 2022 00:53:06 GMT, Leslie Zhai <lzhai at openjdk.org> wrote:

> Hi,
> 
> java/awt/Graphics2D/DrawString/RotTransText.java fail:
> 
> 
> STDERR:
> java.lang.RuntimeException: Ratio of blue to red is too great: 0.14015748031496064
>         at RotTransText.testIt(RotTransText.java:102)
>         at RotTransText.main(RotTransText.java:41)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
>         at java.lang.Thread.run(Thread.java:750)
> 
> 
> And JDK-8203485: [freetype] text rotated on 180 degrees is too narrow fix the issue.
> 
> The patch applies clean except manually change the source file path:
> 
> * jdk/src/share/native/sun/font/freetypeScaler.c
> * jdk/test/java/awt/font/Rotate/RotatedTextTest.java
> 
> Tested jtreg tier1~3 for fastdebug/release.
> 
> Thanks,
> Leslie Zhai

Marked as reviewed by serb (Reviewer).

Looks fine. Please check that the fix for [JDK-8233006](https://bugs.openjdk.org/browse/JDK-8233006) need to be backported or not. It reworked this code as well.

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

PR: https://git.openjdk.org/jdk8u-dev/pull/208


More information about the jdk8u-dev mailing list