unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: Kenichi Handa <handa@m17n.org>
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: character composition seems much worse than before
Date: Tue, 09 Nov 2010 14:46:25 +0900	[thread overview]
Message-ID: <buofwvbgiby.fsf@dhlpc061.dev.necel.com> (raw)
In-Reply-To: <tl7k4kot65h.fsf@m17n.org> (Kenichi Handa's message of "Mon, 08 Nov 2010 20:18:50 +0900")

[-- Attachment #1: Type: text/plain, Size: 1882 bytes --]

Kenichi Handa <handa@m17n.org> writes:
>> This is pretty irritating, as Bitstream Vera Sans Mono seems to be
>> what Emacs uses by default on Debian...!
>
> How about the other programs?  For instance, can gedit display the
> same text correctly with that font?

Yes, it seems to.

I tried 3 different fonts, and two different character combinations
("e" + COMBINING ACUTE ACCENT [0x301], and "e" + COMBINING CIRCUMFLEX
ACCENT [0x302] + COMBINING ACUTE ACCENT), in Emacs and gedit:

                                 -Emacs-     -gedit-
  "Dejavu Sans Mono"            PERFECT     PERFECT
  "Bitstream Vera Sans Mono"    NONE        OK
  "Lucida Typewriter"           NONE        PASSABLE

According to "otfview", only Dejavu Sans Mono has those combining
accents (0x301 and 0x302), so gedit must have been doing some
substitution -- it looked pretty good though, especially with
Bitstream Vera Sans Mono.  [I tried Lucida Sans too because while the
letter shapes in Dejavu and Vera are basically identical, Lucida Sans
looks different, so it's easier to tell if substitutions are being
made.]

   "PERFECT" means:  correct letter-shape used (no wacky font
   substitution), perfect spacing/alignment/accent-positioning.

   "OK" means:  correct letter-shape used, correct spacing,
   accent-positioning slightly (~1 pixel) off but basically OK.

   "PASSABLE" means:  correct letter-shape used, correct spacing,
   accent-positioning slightly (~1 pixel) off but basically OK for a
   single accent, *but* smashed-together/overstruck for two
   simultaneous accents.

   "NONE" means: no combining done, letter and accents displayed as
   separate characters.

So gedit seems to be doing some substitution or something, but it does
a fairly good job of it except in the case of two accents being used
simultaneously.

-Miles

p.s. I've attached the text file I used for testing...



[-- Attachment #2: test file for combining accents --]
[-- Type: application/octet-stream, Size: 92 bytes --]

this is a test é 1lI|0Oabcdef
ếếếếếế|
éééééé|
eeeeee|

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]



-- 
"Most attacks seem to take place at night, during a rainstorm, uphill,
 where four map sheets join."   -- Anon. British Officer in WW I

  parent reply	other threads:[~2010-11-09  5:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08  3:40 character composition seems much worse than before Miles Bader
2010-11-08  3:53 ` Miles Bader
2010-11-08  4:06   ` Eli Zaretskii
2010-11-08  4:11     ` Miles Bader
2010-11-08  6:46       ` Eli Zaretskii
2010-11-08  7:30       ` Kenichi Handa
2010-11-08  7:46         ` Miles Bader
2010-11-08  7:51           ` Miles Bader
2010-11-08  9:17             ` Eli Zaretskii
2010-11-08 10:58             ` Andreas Schwab
2010-11-08 11:18               ` Miles Bader
2010-11-08 12:11                 ` Andreas Schwab
2010-11-08 11:18             ` Kenichi Handa
2010-11-08 12:03               ` Andreas Schwab
2010-11-09  5:46               ` Miles Bader [this message]
2010-11-09  5:49                 ` Miles Bader
2010-11-09 10:04                   ` Julien Danjou
2010-11-10  1:41                 ` Kenichi Handa

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=buofwvbgiby.fsf@dhlpc061.dev.necel.com \
    --to=miles@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).