summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-07-13 12:50:54 -0700
committerKeith Packard <keithp@keithp.com>2017-07-13 12:50:54 -0700
commit8921b65c8661b81e925cbd3476123487b4bea227 (patch)
treef0c96a8a9601e716a677f2edc93bdc1a94131808
parent73ab5dc011e0fe6af10e7a694ba37cf7d3f123e8 (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.5c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cairo.5c b/cairo.5c
index 76bc684..b7e667d 100644
--- a/cairo.5c
+++ b/cairo.5c
@@ -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");