emacs-devel
[Top][All Lists]
Advanced

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

Re: Entering emojis


From: Lars Ingebrigtsen
Subject: Re: Entering emojis
Date: Fri, 29 Oct 2021 16:30:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

>     (char-displayable-p char)))

The thing that takes time is way down in

fontset_find_font (Lisp_Object fontset, int c, struct face *face,

This bit:

          /* Find a font best-matching with the spec without checking
             the support of the character C.  That checking is costly,
             and even without the checking, the found font supports C
             in high possibility.  */
          font_entity = font_find_for_lface (f, face->lface,
                                             FONT_DEF_SPEC (font_def), -1);
          if (NILP (font_entity))
            {
              /* Record that no font matches the spec.  */
              RFONT_DEF_SET_FACE (rfont_def, -1);
              continue;
            }

So might it be an idea to introduce a variable that could be bound to
avoid this part?  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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