Great idea Jody! Seemed to work fine ... until I discovered that the 
Lucida fonts are proprietary and not shipped with OpenJDK.  :-|

Kind regards,
Ben.

On 28/04/14 10:16, Jody Garnett wrote:
> Ben we were testing LabelShieldTest with a pure java implementation of
> PerceptualDiff.
>
> Looking at the visual comparison this test is very sensitive to
> different fonts used, as a large box is drawn around the output). Since
> we are using a generic "serif" font for the test we are ensured
> different "default" results between platforms.
>
> For details on logical (i.e. platform specific) vs physical fonts
> http://docs.oracle.com/javase/tutorial/2d/text/fonts.html
>
> Looks like we should change our test to use "Lucidia" fonts.
>
> Jody Garnett
>
>
> On Mon, Apr 28, 2014 at 12:09 PM, Ben Caradoc-Davies
> <ben.caradoc-dav...@csiro.au <mailto:ben.caradoc-dav...@csiro.au>> wrote:
>
>     LabelShieldTest is also failing on Linux with Java 6. Jody suggested
>     (on IRC) picking a more platform-independent font. Boundless Jenkins
>     looks stuck; I have kicked geotools-master to see if I can get it to
>     reproduce this failure, which I see locally and on another Jenkins.
>
>     Locally I see:
>
>     Failed tests:
>        LabelShieldTest.__testLabelShieldMultiline:82 Images are visibly
>     different, PerceptualDiff output is:
>     Field of view is 89.900002 degrees
>     Threshold pixels is 300 pixels
>     The Gamma is 2.200000
>     The Display's luminance is 100.000000 candela per meter squared
>     Converting RGB to XYZ
>     Constructing Laplacian Pyramids
>     Performing test
>     FAIL: Images are visibly different
>     1228 pixels are different
>
>        LabelShieldTest.__testLabelShieldMultilineStretc__h:97 Images are
>     visibly different, PerceptualDiff output is:
>     Field of view is 89.900002 degrees
>     Threshold pixels is 300 pixels
>     The Gamma is 2.200000
>     The Display's luminance is 100.000000 candela per meter squared
>     Converting RGB to XYZ
>     Constructing Laplacian Pyramids
>     Performing test
>     FAIL: Images are visibly different
>     1206 pixels are different
>
>     I have:
>
>     Apache Maven 3.0.5 (__r01de14724cdef164cd33c7c8c2fe1__55faf9602da;
>     2013-02-19 21:51:28+0800)
>     Maven home: /home/car605/junk/java/maven3
>     Java version: 1.6.0_45, vendor: Sun Microsystems Inc.
>     Java home: /home/car605/junk/java/jdk1.6.__0_45.x64/jre
>     Default locale: en_GB, platform encoding: UTF-8
>     OS name: "linux", version: "3.13-1-amd64", arch: "amd64", family: "unix"
>
>     Kind regards,
>
>     --
>     Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
>     Software Engineer
>     CSIRO Earth Science and Resource Engineering
>     Australian Resources Research Centre
>
>

-- 
Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to