GNU bug report logs - #20793
25.0.50; Some Unicode glyphs aren't monospaced

Previous Next

Package: emacs;

Reported by: Oleh Krehel <ohwoeowho <at> gmail.com>

Date: Fri, 12 Jun 2015 13:02:02 UTC

Severity: normal

Found in version 25.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20793 in the body.
You can then email your comments to 20793 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20793; Package emacs. (Fri, 12 Jun 2015 13:02:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Oleh Krehel <ohwoeowho <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 12 Jun 2015 13:02:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Oleh Krehel <ohwoeowho <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; Some Unicode glyphs aren't monospaced
Date: Fri, 12 Jun 2015 14:54:51 +0200
My preferred font is "DejaVu Sans Mono".  When using the Unicode
character "✜", its width is more than the standard char width. This
causes alignment problems for me.

This issue doesn't occur in Emacs 24.5.2. There, the char has the same
width as all others.

Details on the char in Emacs 25:

             position: 227 of 348 (65%), column: 35
            character: ✜ (displayed as ✜) (codepoint 10012, #o23434, #x271c)
    preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0x271C
               script: symbol
               syntax: w 	which means: word
             category: .:Base
             to input: type "C-x 8 RET 271c" or "C-x 8 RET HEAVY OPEN CENTRE CROSS"
          buffer code: #xE2 #x9C #x9C
            file code: #xE2 #x9C #x9C (encoded by coding system utf-8-emacs-unix)
              display: by this font (glyph code)
    xft:-unknown-Symbola-normal-normal-semicondensed-*-15-*-*-*-*-0-iso10646-1 (#x9F9)

Character code properties: customize what to show
  name: HEAVY OPEN CENTRE CROSS
  old-name: HEAVY OPEN CENTER CROSS
  general-category: So (Symbol, Other)
  decomposition: (10012) ('✜')

There are text properties here:
  fontified            t

Details on the char in Emacs 24.5.2:

             position: 1819 of 2174 (84%), column: 5
            character: ✜ (displayed as ✜) (codepoint 10012, #o23434, #x271c)
    preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0x271C
               script: symbol
               syntax: w 	which means: word
             category: .:Base
             to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
          buffer code: #xE2 #x9C #x9C
            file code: #xE2 #x9C #x9C (encoded by coding system utf-8-unix)
              display: by this font (glyph code)
    xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1 (#xAD1)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20793; Package emacs. (Fri, 12 Jun 2015 13:44:02 GMT) Full text and rfc822 format available.

Message #8 received at 20793 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Oleh Krehel <ohwoeowho <at> gmail.com>
Cc: 20793 <at> debbugs.gnu.org
Subject: Re: bug#20793: 25.0.50; Some Unicode glyphs aren't monospaced
Date: Fri, 12 Jun 2015 16:43:13 +0300
> From: Oleh Krehel <ohwoeowho <at> gmail.com>
> Date: Fri, 12 Jun 2015 14:54:51 +0200
> 
> My preferred font is "DejaVu Sans Mono".  When using the Unicode
> character "✜", its width is more than the standard char width. This
> causes alignment problems for me.

Which alignment problems?  Can you describe them?

In general, Emacs cannot ensure all characters it displays will be of
the same pixel width, this is simply impossible, especially when some
characters require the use of non-default fonts.

> This issue doesn't occur in Emacs 24.5.2. There, the char has the same
> width as all others.
> 
> Details on the char in Emacs 25:
> 
>              position: 227 of 348 (65%), column: 35
>             character: ✜ (displayed as ✜) (codepoint 10012, #o23434, #x271c)
>     preferred charset: unicode (Unicode (ISO10646))
> code point in charset: 0x271C
>                script: symbol
>                syntax: w 	which means: word
>              category: .:Base
>              to input: type "C-x 8 RET 271c" or "C-x 8 RET HEAVY OPEN CENTRE CROSS"
>           buffer code: #xE2 #x9C #x9C
>             file code: #xE2 #x9C #x9C (encoded by coding system utf-8-emacs-unix)
>               display: by this font (glyph code)
>     xft:-unknown-Symbola-normal-normal-semicondensed-*-15-*-*-*-*-0-iso10646-1 (#x9F9)
> 
> Character code properties: customize what to show
>   name: HEAVY OPEN CENTRE CROSS
>   old-name: HEAVY OPEN CENTER CROSS
>   general-category: So (Symbol, Other)
>   decomposition: (10012) ('✜')
> 
> There are text properties here:
>   fontified            t
> 
> Details on the char in Emacs 24.5.2:
> 
>              position: 1819 of 2174 (84%), column: 5
>             character: ✜ (displayed as ✜) (codepoint 10012, #o23434, #x271c)
>     preferred charset: unicode (Unicode (ISO10646))
> code point in charset: 0x271C
>                script: symbol
>                syntax: w 	which means: word
>              category: .:Base
>              to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
>           buffer code: #xE2 #x9C #x9C
>             file code: #xE2 #x9C #x9C (encoded by coding system utf-8-unix)
>               display: by this font (glyph code)
>     xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1 (#xAD1)

As you see, Emacs 25.0.50 used a different font for this character.
Why did you expect it to use DejaVu Sans Mono?  What is your frame's
default font?  Do you have any font-related customizations, and if so,
could you please show them?

Also, when was your Emacs 25 built?  There were changes lately in this
area, so it's important to know whether your binary is recent or not.
(The output of "M-x report-emacs-bug RET" will be appreciated.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20793; Package emacs. (Fri, 12 Jun 2015 13:59:02 GMT) Full text and rfc822 format available.

Message #11 received at 20793 <at> debbugs.gnu.org (full text, mbox):

From: Oleh Krehel <ohwoeowho <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20793 <at> debbugs.gnu.org
Subject: Re: bug#20793: 25.0.50; Some Unicode glyphs aren't monospaced
Date: Fri, 12 Jun 2015 15:51:59 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Oleh Krehel <ohwoeowho <at> gmail.com>
>> Date: Fri, 12 Jun 2015 14:54:51 +0200
>> 
>> My preferred font is "DejaVu Sans Mono".  When using the Unicode
>> character "✜", its width is more than the standard char width. This
>> causes alignment problems for me.
>
> Which alignment problems?  Can you describe them?

If all chars aren't the same width, it's impossible to align plain text
into a matrix, with each char exactly below the previous one.

> As you see, Emacs 25.0.50 used a different font for this character.
> Why did you expect it to use DejaVu Sans Mono?  What is your frame's
> default font?  Do you have any font-related customizations, and if so,
> could you please show them?

I just have `custom-theme-set-faces' with default :family "DejaVu Sans Mono".
So I would expect that to be used if possible.

> Also, when was your Emacs 25 built?  There were changes lately in this
> area, so it's important to know whether your binary is recent or not.

I think I built it a week ago. I've just rebuilt 00119c6, and the bug is
gone. So I guess it's fine to close this bug.  Just to add, in the old
build the curved quotes in Info weren't fixed width as well.

Thanks for reminding me to rebuild, I'll try to remember this for the
next bug report.






Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 12 Jun 2015 14:23:03 GMT) Full text and rfc822 format available.

Notification sent to Oleh Krehel <ohwoeowho <at> gmail.com>:
bug acknowledged by developer. (Fri, 12 Jun 2015 14:23:04 GMT) Full text and rfc822 format available.

Message #16 received at 20793-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Oleh Krehel <ohwoeowho <at> gmail.com>
Cc: 20793-done <at> debbugs.gnu.org
Subject: Re: bug#20793: 25.0.50; Some Unicode glyphs aren't monospaced
Date: Fri, 12 Jun 2015 17:22:15 +0300
> From: Oleh Krehel <ohwoeowho <at> gmail.com>
> Cc: 20793 <at> debbugs.gnu.org
> Date: Fri, 12 Jun 2015 15:51:59 +0200
> 
> >> My preferred font is "DejaVu Sans Mono".  When using the Unicode
> >> character "✜", its width is more than the standard char width. This
> >> causes alignment problems for me.
> >
> > Which alignment problems?  Can you describe them?
> 
> If all chars aren't the same width, it's impossible to align plain text
> into a matrix, with each char exactly below the previous one.

I understand, but I hope you are aware that Emacs cannot possibly
promise not to disrupt this alignment.  If you must align text, you
need to use the ':align-to' display property (assuming you are talking
about some specialized mode).

> > As you see, Emacs 25.0.50 used a different font for this character.
> > Why did you expect it to use DejaVu Sans Mono?  What is your frame's
> > default font?  Do you have any font-related customizations, and if so,
> > could you please show them?
> 
> I just have `custom-theme-set-faces' with default :family "DejaVu Sans Mono".
> So I would expect that to be used if possible.
> 
> > Also, when was your Emacs 25 built?  There were changes lately in this
> > area, so it's important to know whether your binary is recent or not.
> 
> I think I built it a week ago. I've just rebuilt 00119c6, and the bug is
> gone. So I guess it's fine to close this bug.

Done.

> Just to add, in the old build the curved quotes in Info weren't
> fixed width as well.

I guess you've updated your tree after I made a change that prefers
the Symbola font for symbols, but before I followed that up with a
change that caused Emacs to use the default font if it supports a
character, even though Symbola was preferred for them.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 11 Jul 2015 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 340 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.