This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Font support of UTF-8 chars differ between w32 Emacs and Cygwin Emacs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]