GNU bug report logs - #3325
23.0.93; Unexpected font for composed character

Previous Next

Package: emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Mon, 18 May 2009 18:10:06 UTC

Severity: wishlist

Tags: moreinfo

Done: Stefan Kangas <stefan <at> marxist.se>

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 3325 in the body.
You can then email your comments to 3325 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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3325; Package emacs. (Mon, 18 May 2009 18:10:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Markus Triska <markus.triska <at> gmx.at>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 18 May 2009 18:10:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Markus Triska <markus.triska <at> gmx.at>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.93; Unexpected font for composed character
Date: Mon, 18 May 2009 20:05:12 +0200
I have a file ~/Downloads/Büroanwendungen.zip. When I visit ~/Downloads/
in dired (C-x d ~/Downloads/ RET) and press C-u x = on the "ü", I get:

           character: u (117, #o165, #x75)
   preferred charset: ascii (ASCII (ISO646 IRV))
          code point: 0x75
              syntax: w 	which means: word
            category: .:Base, a:ASCII, l:Latin, r:Roman
         buffer code: #x75
           file code: #x75 (encoded by coding system utf-8-unix)
             display: composed to form "ü" (see below)

   Composed with the following character(s) "̈" using this font:
     xft:-itc-American Typewriter-normal-normal-normal-*-20-*-*-*-*-0-iso10646-1
   by these glyphs:
     [0 1 117 93 12 -1 12 11 0 nil]
     [0 1 776 241 0 -8 -2 14 -11 [-2 -2 0]]

   Character code properties: customize what to show
     name: LATIN SMALL LETTER U
     general-category: Ll (Letter, Lowercase)

   There are text properties here:
     dired-filename       t
     fontified            t
     help-echo            "mouse-2: visit this file in other window"
     mouse-face           highlight

This font differs unexpectedly (for me) from the one used for the "r":

             character: r (114, #o162, #x72)
   preferred charset: ascii (ASCII (ISO646 IRV))
          code point: 0x72
              syntax: w 	which means: word
            category: .:Base, a:ASCII, l:Latin, r:Roman
         buffer code: #x72
           file code: #x72 (encoded by coding system utf-8-unix)
             display: by this font (glyph code)
       xft:-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-20-*-*-*-m-0-iso10646-1 (#x55)

   Character code properties: customize what to show
     name: LATIN SMALL LETTER R
     general-category: Ll (Letter, Lowercase)

   There are text properties here:
     dired-filename       t
     fontified            t
     help-echo            "mouse-2: visit this file in other window"
     mouse-face           highlight


In GNU Emacs 23.0.93.3 (i386-apple-darwin9.6.1, GTK+ Version 2.14.7)
 of 2009-05-11 on mt-imac.local
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3325; Package emacs. (Tue, 19 May 2009 01:00:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kenichi Handa <handa <at> m17n.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 19 May 2009 01:00:05 GMT) Full text and rfc822 format available.

Message #10 received at 3325 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Kenichi Handa <handa <at> m17n.org>
To: Markus Triska <markus.triska <at> gmx.at>, 3325 <at> debbugs.gnu.org
Subject: Re: bug#3325: 23.0.93; Unexpected font for composed character
Date: Tue, 19 May 2009 09:54:49 +0900
In article <m2skj2s2w7.fsf <at> gmx.at>, Markus Triska <markus.triska <at> gmx.at> writes:

> I have a file ~/Downloads/Büroanwendungen.zip. When I visit ~/Downloads/
> in dired (C-x d ~/Downloads/ RET) and press C-u x = on the "ü", I get:

>            character: u (117, #o165, #x75)
>    preferred charset: ascii (ASCII (ISO646 IRV))
>           code point: 0x75
>               syntax: w 	which means: word
>             category: .:Base, a:ASCII, l:Latin, r:Roman
>          buffer code: #x75
>            file code: #x75 (encoded by coding system utf-8-unix)
>              display: composed to form "ü" (see below)

>    Composed with the following character(s) "̈" using this font:
>      xft:-itc-American Typewriter-normal-normal-normal-*-20-*-*-*-*-0-iso10646-1
[...]
> This font differs unexpectedly (for me) from the one used for the "r":
[...]
>        xft:-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-20-*-*-*-m-0-iso10646-1 (#x55)

In your file, `ü" is acually not a signle character but two
characters `u' and U+308 (COMBINING DIAERESIS), and it seems
that the above bitstream font doesn't contain a glyph of
U+308.  So, Emacs searches for a font that has that glyph.
The found font in your case was "American Typewriter".

It may be good that Emacs knows that `u'+U+308 = `ü', but
that kind of normalization is not yet supported.

---
Kenichi Handa
handa <at> m17n.org




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3325; Package emacs. (Sun, 07 Feb 2016 21:03:02 GMT) Full text and rfc822 format available.

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

From: Alan Third <alan <at> idiocy.org>
To: Kenichi Handa <handa <at> m17n.org>
Cc: Markus Triska <markus.triska <at> gmx.at>, 3325 <at> debbugs.gnu.org
Subject: Re: bug#3325: 23.0.93; Unexpected font for composed character
Date: Sun, 07 Feb 2016 21:01:59 +0000
Kenichi Handa <handa <at> m17n.org> writes:

> In article <m2skj2s2w7.fsf <at> gmx.at>, Markus Triska <markus.triska <at> gmx.at> writes:
>
>> I have a file ~/Downloads/Büroanwendungen.zip. When I visit ~/Downloads/
>> in dired (C-x d ~/Downloads/ RET) and press C-u x = on the "ü", I get:
>
>>            character: u (117, #o165, #x75)
>>    preferred charset: ascii (ASCII (ISO646 IRV))
>>           code point: 0x75
>>               syntax: w 	which means: word
>>             category: .:Base, a:ASCII, l:Latin, r:Roman
>>          buffer code: #x75
>>            file code: #x75 (encoded by coding system utf-8-unix)
>>              display: composed to form "ü" (see below)
>
>>    Composed with the following character(s) "̈" using this font:
>>      xft:-itc-American Typewriter-normal-normal-normal-*-20-*-*-*-*-0-iso10646-1
> [...]
>> This font differs unexpectedly (for me) from the one used for the "r":
> [...]
>>        xft:-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-20-*-*-*-m-0-iso10646-1 (#x55)
>
> In your file, `ü" is acually not a signle character but two
> characters `u' and U+308 (COMBINING DIAERESIS), and it seems
> that the above bitstream font doesn't contain a glyph of
> U+308.  So, Emacs searches for a font that has that glyph.
> The found font in your case was "American Typewriter".

This still happens in Emacs 25, but from the above description it
doesn't really sound like a bug. It's Emacs working around the fact that
the font doesn't have the glyph.

> It may be good that Emacs knows that `u'+U+308 = `ü', but
> that kind of normalization is not yet supported.

I'm changing this bug report to wishlist.
-- 
Alan Third




Severity set to 'wishlist' from 'normal' Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Sun, 07 Feb 2016 21:03:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3325; Package emacs. (Mon, 08 Feb 2016 18:04:01 GMT) Full text and rfc822 format available.

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

From: Anders Lindgren <andlind <at> gmail.com>
To: Alan Third <alan <at> idiocy.org>
Cc: 3325 <at> debbugs.gnu.org, Markus Triska <markus.triska <at> gmx.at>,
 Kenichi Handa <handa <at> m17n.org>
Subject: Re: bug#3325: 23.0.93; Unexpected font for composed character
Date: Mon, 8 Feb 2016 16:31:25 +0100
[Message part 1 (text/plain, inline)]
Hi!

In Dired, this should not happen any more (on OS X, using the "ns"
interface). Emacs is now using a file-name coding system (utf-8-hfs) that
converts the file names to non-decomposed names, before presenting them to
the user.

However, in other contexts where decomposed characters are used, the
problem is still present. The problem seems to be font-related. I tested
all my installed fonts using `ns-popup-font-panel', and only a handful of
them worked, mainly those that were provided by the OS: Menlo, Monaco,
Courier, Courier New. Included in the fonts that didn't work were Vera and
Hack.

    -- Anders Lindgren
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3325; Package emacs. (Fri, 01 Nov 2019 16:04:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alan Third <alan <at> idiocy.org>
Cc: 3325 <at> debbugs.gnu.org, Markus Triska <markus.triska <at> gmx.at>,
 Kenichi Handa <handa <at> m17n.org>
Subject: Re: bug#3325: 23.0.93; Unexpected font for composed character
Date: Fri, 01 Nov 2019 17:03:03 +0100
Alan Third <alan <at> idiocy.org> writes:

> This still happens in Emacs 25, but from the above description it
> doesn't really sound like a bug. It's Emacs working around the fact that
> the font doesn't have the glyph.
>
>> It may be good that Emacs knows that `u'+U+308 = `ü', but
>> that kind of normalization is not yet supported.
>
> I'm changing this bug report to wishlist.

If I try this (i.e., load a file with ü in it, or say (insert ?u
#x308)), I get the following:

             position: 1 of 2 (0%), column: 0
            character: u (displayed as u) (codepoint 117, #o165, #x75)
              charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x75
               script: latin
               syntax: w 	which means: word
             category: .:Base, L:Left-to-right (strong), a:ASCII, l:Latin, r:Roman
             to input: type "C-x 8 RET 75" or "C-x 8 RET LATIN SMALL LETTER U"
          buffer code: #x75
            file code: #x75 (encoded by coding system utf-8)
              display: composed to form "ü" (see below)

Composed with the following character(s) "̈" using this font:
  xfthb:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-25-*-*-*-m-0-iso10646-1
by these glyphs:
  [0 1 117 190 15 2 13 19 0 nil]

Character code properties: customize what to show
  name: LATIN SMALL LETTER U
  general-category: Ll (Letter, Lowercase)
  decomposition: (117) ('u')

And the display looks correct.  So it seems like this has been fixed
now?

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




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 01 Nov 2019 16:04:03 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Thu, 13 Aug 2020 01:42:03 GMT) Full text and rfc822 format available.

Notification sent to Markus Triska <markus.triska <at> gmx.at>:
bug acknowledged by developer. (Thu, 13 Aug 2020 01:42:03 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Alan Third <alan <at> idiocy.org>, 3325-done <at> debbugs.gnu.org,
 Markus Triska <markus.triska <at> gmx.at>, Kenichi Handa <handa <at> m17n.org>
Subject: Re: bug#3325: 23.0.93; Unexpected font for composed character
Date: Wed, 12 Aug 2020 18:41:12 -0700
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Alan Third <alan <at> idiocy.org> writes:
>
>> This still happens in Emacs 25, but from the above description it
>> doesn't really sound like a bug. It's Emacs working around the fact that
>> the font doesn't have the glyph.
>>
>>> It may be good that Emacs knows that `u'+U+308 = `ü', but
>>> that kind of normalization is not yet supported.
>>
>> I'm changing this bug report to wishlist.
>
> If I try this (i.e., load a file with ü in it, or say (insert ?u
> #x308)), I get the following:
>
>              position: 1 of 2 (0%), column: 0
>             character: u (displayed as u) (codepoint 117, #o165, #x75)
>               charset: ascii (ASCII (ISO646 IRV))
> code point in charset: 0x75
>                script: latin
>                syntax: w 	which means: word
>              category: .:Base, L:Left-to-right (strong), a:ASCII, l:Latin, r:Roman
>              to input: type "C-x 8 RET 75" or "C-x 8 RET LATIN SMALL LETTER U"
>           buffer code: #x75
>             file code: #x75 (encoded by coding system utf-8)
>               display: composed to form "ü" (see below)
>
> Composed with the following character(s) "̈" using this font:
>   xfthb:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-25-*-*-*-m-0-iso10646-1
> by these glyphs:
>   [0 1 117 190 15 2 13 19 0 nil]
>
> Character code properties: customize what to show
>   name: LATIN SMALL LETTER U
>   general-category: Ll (Letter, Lowercase)
>   decomposition: (117) ('u')
>
> And the display looks correct.  So it seems like this has been fixed
> now?

Since there has been no further update here within 40 weeks, I'm going
to assume yes and close this bug report.

If this conclusion is incorrect, please reply to this email (use "Reply
to all" in your email client) and we can reopen the bug report.

Best regards,
Stefan Kangas




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 Sep 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 228 days ago.

Previous Next


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