bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21028: Slow font rendering in emacs


From: John Mastro
Subject: bug#21028: Slow font rendering in emacs
Date: Tue, 14 Mar 2017 13:49:59 -0700

Eli Zaretskii <address@hidden> wrote:
>   2) set up a very detailed fontset with explicit ranges of codepoints
>      allotted to each font that supports the respective characters
>      well and whose looks on display you like

Is it possible to get the codepoint ranges supported by a given font
programmatically within Emacs? It sounds like that might help a user
tell Emacs "use this font for everything it supports" without specifying
an overly-broad target (like `unicode') or finding and spelling out the
ranges of codepoints manually.

In other words, I'm imagining something like this:

(dolist (target (targets-supported-by-font "DejaVu Sans Mono"))
  (set-fontset-font "fontset-default" target
                    (font-spec :name "DejaVu Sans Mono" :registry "iso10646-1")
                    nil 'prepend))

Where `targets-supported-by-font' is the hypothetical function I'm
imagining.

Apologies if this doesn't actually make sense :)

        John





reply via email to

[Prev in Thread] Current Thread [Next in Thread]