summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2019-05-17 07:52:56 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2019-05-17 07:56:00 +0200
commit14be3dcbe25a7bc9b9b2c02b43444271cf12eb25 (patch)
treea3caa536a6136eedbbe46f8c1def496943b7dfcc
parent864c65d5ac808c80a0d4bcbed25f091b72173757 (diff)
downloadmemory-leaks-14be3dcbe25a7bc9b9b2c02b43444271cf12eb25.tar.xz
Add tentative patch for Emacs Cairo build
-rw-r--r--README.md2
-rw-r--r--personal/itches/emacs/cairo-hint-style.org37
2 files changed, 38 insertions, 1 deletions
diff --git a/README.md b/README.md
index 917763d..99460dc 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
# Peniblec's Memory Leaks
-## still reachable: 7982 words in 17 pages
+## still reachable: 8114 words in 18 pages
Hi! I am a software engineer interested in [a bunch of things].
diff --git a/personal/itches/emacs/cairo-hint-style.org b/personal/itches/emacs/cairo-hint-style.org
new file mode 100644
index 0000000..bbe4783
--- /dev/null
+++ b/personal/itches/emacs/cairo-hint-style.org
@@ -0,0 +1,37 @@
+* patch
+
+I find that this patch makes fonts less "aggressively sharp" with
+Cairo builds:
+
+#+BEGIN_SRC diff
+diff --git a/src/ftcrfont.c b/src/ftcrfont.c
+index e7c73eac4d..51890dc18c 100644
+--- a/src/ftcrfont.c
++++ b/src/ftcrfont.c
+@@ -146,6 +146,7 @@ ftcrfont_open (struct frame *f, Lisp_Object entity, int pixel_size)
+ cairo_matrix_init_scale (&font_matrix, pixel_size, pixel_size);
+ cairo_matrix_init_identity (&ctm);
+ cairo_font_options_t *options = cairo_font_options_create ();
++ cairo_font_options_set_hint_style (options, CAIRO_HINT_STYLE_SLIGHT);
+ ftcrfont_info->cr_scaled_font =
+ cairo_scaled_font_create (font_face, &font_matrix, &ctm, options);
+ cairo_font_face_destroy (font_face);
+#+END_SRC
+
+
+* visual impact
+** desktop 1: small
+*** DVI-I-0 1680x1050+0+0 474mm x 296mm
+*** openSUSE Tumbleweed
+** desktop 2: big
+*** TODO xrandr screen info
+*** Xubuntu 16.03
+** laptop: noticeable
+*** LVDS1 1024x600+0+0 230mm x 140mm
+*** Debian stretch
+
+
+* TODO if this is made configurable,
+** TODO what actions to take when the variable is set?
+** TODO add variable
+** TODO add customization spec