cztomczak / cefpython

Python bindings for the Chromium Embedded Framework (CEF)
Other
3.07k stars 473 forks source link

Blurry font rendering on Linux #402

Open cztomczak opened 6 years ago

cztomczak commented 6 years ago

Issue occurs in v60+. To fix set the environment variable: FREETYPE_PROPERTIES="truetype:interpreter-version=35".

Upstream CEF issue with more details: https://bitbucket.org/chromiumembedded/cef/issues/2239/linux-font-rendering-hinting-blurry

cztomczak commented 6 years ago

I think we should add the use_system_freetype=true GN variable in automate.py when Debian system is detected.

cztomczak commented 6 years ago

This issue occurs only with some versions of fonts on Debian Stretch (Ubuntu 16.04..17.10). Debian Stretch builds Chromium using this GN option, however default Google Chrome or Chromium distributions don't. We are planning to use Spotify builds on Linux as well, so we shoulnd't make this default in our automate.py, maybe as an option.

cztomczak commented 6 years ago

Added --use-system-freetype flag to automate.py in commit cef0ca5. Keeping this issue Open and labelled KB.