From: Stephen Eglen <sje30@cam.ac.uk>
To: help-gnu-emacs@gnu.org
Subject: Help with unicode diacritics
Date: Mon, 28 Dec 2020 07:07:36 +0000 [thread overview]
Message-ID: <87eejaxvbb.fsf@cam.ac.uk> (raw)
Hello,
can anyone out here help me with debugging a Unicode font issue? In
particular, I'd like to use the COMBINING OVERLINE (x0305) code to make
"x" with a bar above it (i.e. x bar, to represent the mean of x).
I'm on manjaro arch, with Emacs 27.1. I wrote the following snippet to
demonstrate the problem. See the line of a character a with various
diacritics under the call to (code) to demonstrate the problem. Out of
the three fonts I tested, Monaco does the best, but ideally I'd like to
use JuliaMono. If I view this same file in xfce4-terminal, using
JuliaMono, all the diacritics appear fine. This makes me suspect Emacs.
On the page: https://damtp.cam.ac.uk/user/sje30/temp/accents.png is what
I see (using EXWM, with emacs rendering on left and xfce-terminal on the
right).
How might I debug further?
The JuliaMono font was installed using the arch package
https://github.com/cormullion/juliamono
Alternatively, does anyone recommend a monospace font with good Unicode
performance in Emacs?
Thanks for any pointers, Stephen
(defun code ()
"Insert a range of unicode diactrics into buffer."
(dotimes (i 20)
(insert "a")
(insert (+ 769 i))
(insert " ")
))
;; x0301 is code point (+ (* 3 256) 1) => 769
;; (code)
;; á â ã ā a̅ ă ȧ ä ả å a̋ ǎ a̍ a̎ ȁ a̐ ȃ a̒ a̓ a̔
;; Monaco renders ok except a̐
;; (set-face-attribute 'default nil :font "Monaco")
;;
;; quite a few missing
;; (set-face-attribute 'default nil :font "JuliaMono")
;;
;; quite a few missing
;; (set-face-attribute 'default nil :font "Roboto Mono")
(emacs-version)
"GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3)
of 2020-08-28"
next reply other threads:[~2020-12-28 7:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-28 7:07 Stephen Eglen [this message]
2020-12-28 12:33 ` Help with unicode diacritics Skip Montanaro
2020-12-28 13:43 ` Stephen Eglen
2020-12-28 14:48 ` Eli Zaretskii
2020-12-28 16:50 ` Drew Adams
2020-12-28 17:45 ` AproposUnicode (was: Help with unicode diacritics) Janusz S. Bień
2020-12-28 18:11 ` Drew Adams
2020-12-28 18:16 ` AproposUnicode Janusz S. Bień
2020-12-28 18:40 ` AproposUnicode Drew Adams
2020-12-30 9:51 ` Help with unicode diacritics Stephen Eglen
2020-12-30 17:05 ` Janusz S. Bień
2020-12-30 17:50 ` Stephen Eglen
2020-12-30 20:22 ` Eli Zaretskii
2020-12-28 14:34 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eejaxvbb.fsf@cam.ac.uk \
--to=sje30@cam.ac.uk \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).