简体   繁体   English

无头镀铬的字距调整问题

[英]Kerning issues with headless chrome

Running some selenium tests that involve screenshot based assertions and running to the following issue:运行一些涉及基于屏幕截图的断言的 selenium 测试并运行到以下问题:

在此处输入图片说明

For some reason headless chrome (v69 on ubuntu 16.04) screws up kerning and as a result the screenshots end up being quite different, more than the 1% threshold I've set.出于某种原因,无头 chrome(ubuntu 16.04 上的 v69)搞砸了字距调整,因此屏幕截图最终完全不同,超过了我设置的 1% 阈值。

options.addArguments("font-render-hinting=none"); options.addArguments("font-render-hinting=none");

This seemed to help.这似乎有帮助。 Still messing up plenty of other things but at least kerning is not an issue anymore...仍然搞砸了很多其他事情,但至少字距不再是一个问题......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM