unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Elias Mårtenson" <lokedhs@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Emacs's algorithm for glyph substitution
Date: Fri, 29 Jun 2018 10:54:51 +0800	[thread overview]
Message-ID: <CADtN0WJc5wT26_yvvLF=FPM62SXSOwyaBV-JGN68gEsp-M-rxA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

How does Emacs choose which glyph to use (i.e. from which font to pick the
glyph from) in case the required character is missing from the user's
chosen font?

I have noticed that if I use Source Code Pro and insert some greek
characters into the buffer, it picks those characters from the font Noto
Sans Display instead.

I have a need to do the same thing (I've been implementing a new font
renderer for McCLIM) and since Emacs does such a good job with it, I wanted
to see how Emacs does it, but I have been unable to find the code where
this substitution happens.

Does anyone know where in the Emacs code base this happens, and what the
algorithm is?

Regards,
Elias

[-- Attachment #2: Type: text/html, Size: 807 bytes --]

             reply	other threads:[~2018-06-29  2:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-29  2:54 Elias Mårtenson [this message]
2018-06-29  6:35 ` Emacs's algorithm for glyph substitution 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='CADtN0WJc5wT26_yvvLF=FPM62SXSOwyaBV-JGN68gEsp-M-rxA@mail.gmail.com' \
    --to=lokedhs@gmail.com \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).