public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Sebastien Vauban <sva-news@mygooglest.com>
To: cygwin@cygwin.com
Subject: Re: Font support of UTF-8 chars differ between w32 Emacs and Cygwin Emacs
Date: Thu, 11 Sep 2014 09:19:00 -0000	[thread overview]
Message-ID: <86a966bn5v.fsf@somewhere.org> (raw)
In-Reply-To: <54108F3C.5010103@cornell.edu>

Hello,

Ken Brown wrote:
> On 9/3/2014 8:41 AM, Sebastien Vauban wrote:
>> As you can see on http://screencast.com/t/XTTv9DSAC, win32 binaries of
>> Emacs and Cygwin Emacs can't display the white right-pointing
>> triangle coherently for the same fonts:
>>
>> - win32 Emacs always can display it, in all fonts,
>>
>> - Cygwin Emacs can't display it with Consolas, Courier New and Lucida
>>    (among others).
>>
>> MWE:
>>
>> --8<---------------cut here---------------start------------->8---
>> ;; these fonts only display (special?) UTF-8 chars (here: the white
>> ;; right-pointing triangle) in win32 binary of Emacs
>>
>> (modify-all-frames-parameters '((font . "Consolas-10")))
>> (char-displayable-p ?\u25B7)
>>
>> (modify-all-frames-parameters '((font . "Lucida Console-9")))
>> (char-displayable-p ?\u25B7)
>>
>> ;; these work for both win32 binary of Emacs + Cygwin Emacs
>>
>> (modify-all-frames-parameters '((font . "DejaVu Sans Mono-9")))
>> (char-displayable-p ?\u25B7)
>>
>> (modify-all-frames-parameters '((font . "Lucida Sans Typewriter-9")))
>> (char-displayable-p ?\u25B7)
>> --8<---------------cut here---------------end--------------->8---
>>
>> Any idea why such differences?
>
> I've had a chance to look at this now, and it doesn't seem to have
> anything to do with emacs.
>
> I've created a text file 25b7.txt (attached) with a single line
> containing the white right-pointing-triangle.  When I issue the
> command "cat 25b7.txt" in a mintty terminal, I sometimes see an empty
> rectangle (meaning the character can't be displayed), and I sometimes
> see the white right-pointing triangle, depending on which font
> I select in the mintty options.
>
> I don't know enough about fonts and UTF-8 encoding to be able to shed
> any more light on this.  Maybe someone else can help.

The problem would be with Cygwin in general, then, if not limited to
Emacs.

But why the same fonts (Consolas, Lucida Console) don't display the same
range of characters in both worlds?

Best regards,
  Seb

-- 
Sebastien Vauban


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2014-09-11  8:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-03 12:43 Sebastien Vauban
2014-09-03 14:00 ` Ken Brown
2014-09-03 15:04   ` Sebastien Vauban
2014-09-10 19:25 ` Ken Brown
2014-09-11  9:19   ` Sebastien Vauban [this message]
2014-09-11 10:23     ` Achim Gratz
2014-09-11 11:27       ` Sebastien Vauban
2014-09-11 13:05         ` Andrey Repin
2014-09-11 21:12         ` Ken Brown
2014-09-11  9:27   ` Marco Atzeri

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=86a966bn5v.fsf@somewhere.org \
    --to=sva-news@mygooglest.com \
    --cc=cygwin@cygwin.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).