[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15273: 24.3.50; Combining character sequences are displayed weirdly
From: |
YAMAMOTO Mitsuharu |
Subject: |
bug#15273: 24.3.50; Combining character sequences are displayed weirdly |
Date: |
Mon, 09 Sep 2013 09:52:29 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Sat, 7 Sep 2013 10:47:05 +0200, Jan Djärv <jan.h.d@swipnet.se> said:
>> nsfont.m has problems with composition, there is even comments
>> about this in the code. But from what I see on X11 and what you
>> reported from W32, no other platform does produce the correct
>> result (i.e. the ! and the triangle in the same place), so
>> comparing to those backends doesn't help.
> FWIW, I tested the mac port that has another font driver, and it
> doesn't work correctly either. It does not find a good font for the
> triangle and only displays an empty square. No composition happens.
That square is actually the glyph for U+20E4 in the PCMyungjo font.
Though it is not correct of course, but TextEdit.app also selects
PCMyungjo for U+20E4 by default and displays the square.
We need some tricks to make the composition happen for this case on
the Mac port.
(set-fontset-font t #x20e4 "STIXGeneral")
(set-char-table-range composition-function-table #x20e4
(cons ["!." 1 font-shape-gstring 0]
(aref composition-function-table #x20e4)))
The last element in the vector is an extension specific to the Mac
port, and it specifies the position of the character (relative to that
for the key) from which the font object is obtained. It was
originally introduced to support Variation Selectors 15 (text-style)
and 16 (emoji-style).
The result may not be satisfactory, but its consistency with that of
TextEdit.app (upper window in the screenshot) indicates it is the
behavior of the standard text shaper on OS X.
The other latin example seems to work perfectly on the Mac port
without any settings.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, (continued)
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Jan Djärv, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Eli Zaretskii, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Jan Djärv, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Eli Zaretskii, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Jan Djärv, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Eli Zaretskii, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Jan Djärv, 2013/09/08
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Xue Fuqiao, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Jan Djärv, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Eli Zaretskii, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly,
YAMAMOTO Mitsuharu <=
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Jan Djärv, 2013/09/09
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Wolfgang Jenkner, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Eli Zaretskii, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Wolfgang Jenkner, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Xue Fuqiao, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Xue Fuqiao, 2013/09/07
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Eli Zaretskii, 2013/09/08
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Kenichi Handa, 2013/09/08
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Eli Zaretskii, 2013/09/08
- bug#15273: 24.3.50; Combining character sequences are displayed weirdly, Kenichi Handa, 2013/09/10