diff options
author | Keith Packard <keithp@keithp.com> | 2017-07-13 12:50:54 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-07-13 12:50:54 -0700 |
commit | 8921b65c8661b81e925cbd3476123487b4bea227 (patch) | |
tree | f0c96a8a9601e716a677f2edc93bdc1a94131808 | |
parent | 73ab5dc011e0fe6af10e7a694ba37cf7d3f123e8 (diff) |
Force freetype to draw correctly
New Freetype versions make fast and loose with how glyphs are drawn,
making the results significantly different from older versions. This
can be mostly fixed by setting the FREETYPE_PROPERTIES environment
variable to "truetype:interpreter-version=35".
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | cairo.5c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -33,6 +33,8 @@ * Keith Packard <keithp@keithp.com> */ +Environ::set("FREETYPE_PROPERTIES", "truetype:interpreter-version=35"); + if (!Command::valid_name ((string[]) { "Cairo" })) Foreign::load ("libcairo-5c.so.0"); |