unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Torsten Bronger <bronger@physik.rwth-aachen.de>
Cc: emacs-devel@gnu.org
Subject: Re: 23.0.60; wrong glyph widths of some Unicode codepoints
Date: Fri, 23 May 2008 16:55:53 +0900	[thread overview]
Message-ID: <E1JzS81-0002G6-Rv@etlken.m17n.org> (raw)
In-Reply-To: <87zlqhv71h.fsf@physik.rwth-aachen.de> (message from Torsten Bronger on Fri, 23 May 2008 09:00:42 +0200)

In article <87zlqhv71h.fsf@physik.rwth-aachen.de>, Torsten Bronger <bronger@physik.rwth-aachen.de> writes:

> Unfortunately, another issue with the current CVS version was a
> blocker for my particular case, so I switched back to an older
> version a couple of minutes ago.  Hmpf.  My current Emacs version
> (which displays the sub- and superscripts with correct widths) says

>      dejavu sans mono:pixelsize=17:foundry=unknown:weight=regular:slant=normal:width=normal (#x6A6)

> > By the way, are you sure that your monospace-13 font has glyphs
> > for all of them.  In my environtment, monospace font is actually
> > mapped to "bitstream vera sans mono" and that font doesn't have
> > glyphs for those characters.

> It's the same here.  However, the sub/superscripts used to work
> until recently, see above.

Ah!  "dejavu sans mono" and "bitstream vera sans mono"
happen to have the same metrics.

> > In such a situation, it's difficult to expect to see them with the
> > same metrics as others.

> If the adjustment of glyphs from different fonts is not feasible, I
> must and can live with it.  But it's certainly a useful thing to
> have in my opinion.

I agree.  It's possible to implement a code to prefer a font
of the same metrics (e.g. ascent, descent, avgwidth) as the
default one in font-selection.  But, for that, Emacs
consumes more memory and time for font finding.  And even
with that, people may prefer a different font.

I need more time to consider this problem.

BTW, if you know that you want "dejavu sans mono" for them,
how about using it as the fallback font as this:

(set-fontset-font
 "fontset-default" nil
 '("dejavu sans mono" . "iso10646-1") nil 'prepend)

It worked in my environment.

---
Kenichi Handa
handa@ni.aist.go.jp




  reply	other threads:[~2008-05-23  7:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-22 11:54 23.0.60; wrong glyph widths of some Unicode codepoints Torsten Bronger
2008-05-23  6:46 ` Kenichi Handa
2008-05-23  7:00   ` Torsten Bronger
2008-05-23  7:55     ` Kenichi Handa [this message]
2008-05-23  8:57       ` David Hansen
2008-05-23 12:25         ` Kenichi Handa
2008-05-23 12:51           ` Jason Rumney
2008-05-23 16:47       ` David De La Harpe Golden

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=E1JzS81-0002G6-Rv@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=bronger@physik.rwth-aachen.de \
    --cc=emacs-devel@gnu.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).