From bca35afd1156dd59e60ffabd1ef50355398e5cdc Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 19 May 2019 11:12:24 +0200 Subject: Merge itches for Cairo bug and emoji support --- personal/itches/emacs/bulk.md | 18 --------------- personal/itches/emacs/cairo-hint-style.org | 37 ------------------------------ personal/itches/emacs/emoji.org | 29 +++++++++++++++++++++++ 3 files changed, 29 insertions(+), 55 deletions(-) delete mode 100644 personal/itches/emacs/cairo-hint-style.org create mode 100644 personal/itches/emacs/emoji.org (limited to 'personal') diff --git a/personal/itches/emacs/bulk.md b/personal/itches/emacs/bulk.md index 21dc52f..17554c6 100644 --- a/personal/itches/emacs/bulk.md +++ b/personal/itches/emacs/bulk.md @@ -164,24 +164,6 @@ paragraphs; somehow transient-mark-mode knows not to highlight this space, maybe the answer lies there -## Emoji support - -When built `--with-cairo`, it seems that Emacs can -[now][emacs-devel-emoji] display color Emojis. - -Some remaining issues: - -- not sure whether combining ZWJ sequences work…? -- no convenient way to `set-fontset-font` e.g. Noto Color Emoji for - "all emojis"; valid TARGETs for this function are - - single characters - - character ranges - - scripts, as defined in `script-representative-chars` - - charsets - - nil ≡ any character not already covered by another font-spec - -[emacs-devel-emoji]: https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00996.html - ## Ellipses customization Make ellipses for "invisible" text easily customizable (src/xdisp.c). diff --git a/personal/itches/emacs/cairo-hint-style.org b/personal/itches/emacs/cairo-hint-style.org deleted file mode 100644 index 4f3b0ea..0000000 --- a/personal/itches/emacs/cairo-hint-style.org +++ /dev/null @@ -1,37 +0,0 @@ -* 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 474mm x 296mm -*** openSUSE Tumbleweed -** desktop 2: big -*** DP-2 1920x1080 509mm x 286mm -*** Xubuntu 16.04 -** laptop: noticeable -*** LVDS1 1024x600 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 diff --git a/personal/itches/emacs/emoji.org b/personal/itches/emacs/emoji.org new file mode 100644 index 0000000..768eadf --- /dev/null +++ b/personal/itches/emacs/emoji.org @@ -0,0 +1,29 @@ +Support for color fonts has landed on version 27.0 (master). +Remaining issues: + +* Fix font-hinting =--with-cairo= + +See bug#35781. Potentially useful reading: + +- https://bugs.freedesktop.org/show_bug.cgi?id=11838 +- https://unix.stackexchange.com/questions/321857/why-is-xft-ignoring-font-settings + +* Check whether combining sequences work + +For example:, regional flags, ZWJ sequences from + +- ZWJ sequences from + : + - 🧟‍♂️, 🧟‍♀️ + - 🐕‍🦺 +- regional indicators: 🇪🇺, 🇫🇷 + +* Add a convenient way to set a font for all emojis + +AFAICT there is no convenient way to =set-fontset-font= e.g. Noto + Color Emoji for "all emojis"; valid TARGETs for this function are + - single characters + - character ranges + - scripts, as defined in =script-representative-chars= + - charsets + - nil = any character not already covered by another font-spec -- cgit v1.2.3