Regression test for non-Latin character rendering
Pavel Tisnovsky
ptisnovs at redhat.com
Fri Oct 29 09:26:10 PDT 2010
Hi all,
I created regression test (reproducer) for RH bug
https://bugzilla.redhat.com/show_bug.cgi?id=643674
This regression test checks if all required fonts are properly installed
and that *.src.properties font configuration file is correct for given
system (Debian, Fedora, Ubuntu, SuSE...). The test is based on rendering
certain characters from selected code pages into BufferedImage.
When the required font does not exists or font configuration is broken
in any way, only empty rectangle is rendered instead of the selected
character shape. This rectangle is filtered and then the destination
image is tested whether it is empty or almost empty (ie if it contains
only white area). White area means that selected character is not
correctly rendered and vice versa.
If test images with rendered characters needs to be created, please use
the following flag:
-create-images
(name of each image start with character code)
Is it ok to push this test (as patch) to IcedTea6 HEAD?
(I'd like to push it to OpenJDK6 & OpenJDK7, but it takes some time to
get approved...)
Cheers,
Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: InternationalFontsRendering.java
Type: text/x-java
Size: 7106 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20101029/833b02fb/InternationalFontsRendering.java
More information about the distro-pkg-dev
mailing list