delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/10/13:48:52

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=xh+6ZK
pv6VUNERTkqmTl/eV2CIU+ngVTis14Ytdl8m664mmUXUnXuShZ9Vdcb1eSCGB/zy
6tpDy8WpW7MHLRHtRECPMSpzsWhwqzy69/bDTVMR/a7QC4OZgDoWqm2EI5A1Kerw
Y3qRvuyQ0n2qRn3I94IKScvQWdvjKzrOQW/8o=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=IMh6JWlKYr9R
rKlUz3lFVrmWSUw=; b=Qxd+BeHpxUtlu+K1jyCSvwdrYREyU20w6OARsIN/hl6X
q3De3BYMrJBMP2/Y/N8cruOmf2PX2ExZZpl8243iQ0/Wzavd8wAnz37AktsCgXpf
xAJh+4ZrSKT5TD77i92v7AdViMxl+8XPB0zz5yoCLnNcCd+QiU3dvdudiMoWyEg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_00,LIKELY_SPAM_SUBJECT,RP_MATCHES_RCVD,SHORT_BODY,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: limerock03.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <54108F3C.5010103@cornell.edu>
Date: Wed, 10 Sep 2014 13:49:48 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Font support of UTF-8 chars differ between w32 Emacs and Cygwin Emacs
References: <868um0dgfp DOT fsf AT somewhere DOT org>
In-Reply-To: <868um0dgfp.fsf@somewhere.org>
X-IsSubscribed: yes

--------------070501000908030302000900
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 9/3/2014 8:41 AM, Sebastien Vauban wrote:
> Hello,
>
> 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 [1] 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 . "Courier New-9")))
> (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?
>
> Best regards,
>    Seb
>
> [1] http://www.scarfboy.com/coding/unicode-tool?s=U%2B25B7

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.

Ken

--------------070501000908030302000900
Content-Type: text/plain; charset=UTF-8;
 name="25b7.txt"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment;
 filename="25b7.txt"

â–·


--------------070501000908030302000900
Content-Type: text/plain; charset=us-ascii

--
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
--------------070501000908030302000900--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019