all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: struct face question
Date: Fri, 16 Sep 2022 09:49:38 +0300	[thread overview]
Message-ID: <83leqj4xvh.fsf@gnu.org> (raw)
In-Reply-To: <87o7vfx4ni.fsf@yahoo.com> (message from Po Lu on Fri, 16 Sep 2022 13:35:45 +0800)

> From: Po Lu <luangruo@yahoo.com>
> Date: Fri, 16 Sep 2022 13:35:45 +0800
> 
> Is it ever valid for face->fontset to be -1?

Yes, I think so.  It means there's no fontset for this face.  Which is
normal when there's no font.

> The X font backend doesn't
> support scaling fonts, so displaying the separator-line face fails to
> find a font with height 0.1, causing the following part of
> realize_gui_face to be called:
> 
>       else
> 	{
> 	  face->font = NULL;
> 	  face->fontset = -1;
> 	}
> 
> leading to face_for_char aborting from face->fontset being -1 later on.

Please show a full backtrace from the crash, and preferably also a
reproducer.  What character are we trying to display in that case?

If indeed the X font backend doesn't support that, it would perhaps
call for a different definition of the face, but I'd like to
understand the issue better before we decide how to solve it.

Thanks.



  reply	other threads:[~2022-09-16  6:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87o7vfx4ni.fsf.ref@yahoo.com>
2022-09-16  5:35 ` struct face question Po Lu
2022-09-16  6:49   ` Eli Zaretskii [this message]
2022-09-16  7:31     ` Po Lu
2022-09-16  7:42       ` Eli Zaretskii
2022-09-16  8:11         ` Po Lu

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83leqj4xvh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.