all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vladimir Panteleev <thecybershadow@gmail.com>,
	Kenichi Handa <handa@gnu.org>
Cc: 24560@debbugs.gnu.org
Subject: bug#24560: 25.1; With `--font 7x13', wrong font is used for Unicode characters
Date: Thu, 29 Sep 2016 18:30:37 +0300	[thread overview]
Message-ID: <837f9uoh9e.fsf@gnu.org> (raw)
In-Reply-To: <6d2acac2-1134-9182-34c1-b76448872e0b@gmail.com> (message from Vladimir Panteleev on Wed, 28 Sep 2016 21:58:20 +0000)

Adding Handa-san to this discussion, in the hope that he could shed
some light on this issue.

> From: Vladimir Panteleev <thecybershadow@gmail.com>
> Cc: 24560@debbugs.gnu.org
> Date: Wed, 28 Sep 2016 21:58:20 +0000
> 
> On 2016-09-28 20:16, Eli Zaretskii wrote:
> > Are you sure the 7x13 font installed on your system supports all those
> > characters?  Emacs won't switch to a different font if the default
> > font supports the character it needs to display.
> 
> As I mentioned in my bug report and as is visible in the screenshots,
> the characters are indeed present in the font and are rendered correctly
> in other applications. Only Emacs exhibits this problem.
> 
> > Or could it be that some customizations, either yours or site-wide,
> > force Emacs to use other fonts for the above characters?
> 
> This problem is reproducible with "emacs -Q", without any
> customizations, on all distributions I've tried.

Then I guess there's some factor at work here that I don't quite
figure out.  Maybe the Emacs font selection algorithm doesn't like
that font for some reason?

If you start Emacs with 12x13 font or 8x13, does Emacs display more
characters than 7x13 before it switches to another font?

> Here is a complete recipe using a live CD, to remove any possibility of
> user or site customization:
> 
> 1. Get the Antergos live ISO (
> https://antergos.com/download/antergos-live-iso/ ) and boot from it
> (e.g. in a VM).
> 2. Choose "Start Antergos live".
> 3. Choose "Try It".
> 4. Install Emacs and urxvt (in a terminal, run "pacman -S emacs
> rxvt-unicode").
> 5. Run "emacs -Q --font 7x13".
> 6. M-x view-hello-file
> 7. Observe that Cyrillic characters are rendered in a 12x13 font.
> 8. Run "urxvt -fn 7x13".
> 9. Copy some Cyrillic characters from Emacs and paste them in urxvt.
> 10. Observe that urxvt renders the Cyrillic characters correctly, in the
> correct font.
> 
> This is not specific to Arch / Antegros: The problem is also
> reproducible on Ubuntu and Fedora Workstation Live CDs, though you may
> have to also install some font packages (xorg-x11-fonts-misc for
> Fedora), and Emacs uses the 8x13 font for Cyrillic characters (so the
> problem is less obvious). urxvt still uses the correct font there.
> 
> >> I have found that evaluating the Sexpr:
> >>
> >> (set-fontset-font "fontset-default" 'unicode "-misc-fixed-*-*-*--13-*-*-*-*-70-iso10646-1")
> >>
> > 
> > Don't do that, this setting will cause all kinds of surprises.  To
> > customize the fonts, use specific character codepoint ranges, and only
> > specify font for a range if the font support most or all of that
> > range.
> 
> Noted. However, immediately lacking a better concrete workaround, I
> don't have a better option at my disposal.

Hopefully, Handa-san will have some advice here.





  reply	other threads:[~2016-09-29 15:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 16:34 bug#24560: 25.1; With `--font 7x13', wrong font is used for Unicode characters Vladimir Panteleev
2016-09-28 20:16 ` Eli Zaretskii
2016-09-28 21:58   ` Vladimir Panteleev
2016-09-29 15:30     ` Eli Zaretskii [this message]
2016-09-29 16:33       ` Vladimir Panteleev
2016-10-08 13:07       ` Eli Zaretskii
2016-10-15 14:10         ` Eli Zaretskii
2016-11-18  8:48           ` Eli Zaretskii
2019-11-17  7:21 ` Lars Ingebrigtsen
2019-11-17 13:10   ` Vladimir Panteleev
2019-11-17 16:10     ` Eli Zaretskii
2019-11-17 16:26       ` Lars Ingebrigtsen
2019-11-17 17:07         ` Eli Zaretskii
2019-11-17 17:09           ` Lars Ingebrigtsen
2019-11-17 17:58           ` Lars Ingebrigtsen
2019-11-17 18:25             ` Eli Zaretskii
2019-11-17 18:33               ` Lars Ingebrigtsen
2019-11-17 21:05             ` Robert Pluim
2019-11-18  9:19               ` Lars Ingebrigtsen
2022-04-23 14:02                 ` Lars Ingebrigtsen
2022-04-23 15:17                   ` Vladimir Panteleev
2019-11-17 19:05           ` Lars Ingebrigtsen

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=837f9uoh9e.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=24560@debbugs.gnu.org \
    --cc=handa@gnu.org \
    --cc=thecybershadow@gmail.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.