Or just turn off text antialiasing with RenderingHints.KEY_TEXT_ANTIALIASING set to RenderingHints.VALUE_TEXT_ANTIALIAS_OFF?

I do not know if setting KEY_ANTIALIASING to VALUE_ANTIALIAS_OFF also turns off text antialiasing.

Kind regards,
Ben.

On 28/02/18 10:05, Ben Caradoc-Davies wrote:
Andrea,

what happens if you set:

export FREETYPE_PROPERTIES=truetype:interpreter-version=35

FreeType 2.7 enables the new v40 TrueType instructions interpreter by default. In my view, v40 makes a horrible blurry mess of my favourite manually hinted fonts, so I use v35. The maintainer is super-excited by v40, so I guess it is here to stay:
https://www.freetype.org/freetype2/docs/subpixel-hinting.html

The MBStyles test already allows 1% of pixels to be different, which is a lot. If we increase the margin, we risk missing legitimate failures such as a line being absent. If platform font antialiasing is so variable, perhaps we should turn it off for image tests including text?

Kind regards,
Ben.

On 28/02/18 05:08, Andrea Aime wrote:
Hi,
I'm having a build failure in the mbstyles module that has no match on the
build server, the test
being VisualTransformerTest.mbSymbolLayerTextLinePlacementVisualTest.
The error is:

java.lang.AssertionError: Images are visibly different, found 1975
different pixels, against a threshold of 1800

Here is the visual diff:

[image: Inline image 1]

Zooming in, it actually seems an aliasing issue.

So, objections to relax the threshold to2000? Just in that test, or in all
of them?

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel



--
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <https://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to