unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: Kenichi Handa <handa@m17n.org>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Interesting combining character issue
Date: Fri, 05 Dec 2008 04:14:43 -0500	[thread overview]
Message-ID: <m31vwn6l0l.fsf@lugabout.jhcloos.org> (raw)
In-Reply-To: <E1L8Sj0-00016p-5t@etlken.m17n.org> (Kenichi Handa's message of "Fri, 05 Dec 2008 13:55:34 +0900")

>>>>> "Kenichi" == Kenichi Handa <handa@m17n.org> writes:

Kenichi> The last vector is the information about the glyph of U+304
Kenichi> (COMBINING MACRON).  Yours says that the glyph width is -9
Kenichi> (5th element), which is a little bit strange.

Agreed.

Kenichi> Please show me these info:
Kenichi> % freetype-config --version

Kenichi> % libotf-config --version
Kenichi> % m17n-config --version

Kenichi> Mine are 9.18.3, 0.9.8, 1.5.3 respectively.

9.18.3, 0.9.8, 1.5.1

I'm upgrading m17n now.

Kenichi> And, please run the attached program as this:
Kenichi> % fttest .../DejaVuSansMono.ttf 647

Kenichi> I got this:

Kenichi> width=8, lbearing=2, rbearing=6, acsent=10, descent=-9

I got the same.

Ignoring the glyf instructions, uni0304 looks like:

,----< excerpt from DejaVuSansMono.sfd >
| StartChar: uni0304
| Encoding: 772 772 772
| Width: 1233
| Flags: W
| AnchorPoint: "above" 616 1120 mark 0
| LayerCount: 2
| Fore
| SplineSet
| 317 1526 m 1,0,-1
|  915 1526 l 1,1,-1
|  915 1378 l 1,2,-1
|  317 1378 l 1,3,-1
|  317 1526 l 1,0,-1
| EndSplineSet
| Position2: "'mark' Zero-Width Marks lookup" dx=0 dy=0 dh=-1233 dv=0
| EndChar
`----

So it is a spacing glyph with a positioning command to make it work like
a zero-width glyph.  uni0304 in DejaVu Serif, OTOH, is a conventional
zero-width glyph.  I believe it was done this way to ensure that DejaVu
Sans Mono gets listed as a monowidth font everywhere.

Perhaps that is where the -9 comes from?

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6




  reply	other threads:[~2008-12-05  9:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-16 17:48 Interesting combining character issue James Cloos
2008-11-16 19:06 ` Stefan Monnier
2008-12-02 15:15   ` James Cloos
2008-12-04  1:49     ` Kenichi Handa
2008-12-04 10:12       ` James Cloos
2008-12-04 12:45         ` Kenichi Handa
2008-12-04 13:33           ` James Cloos
2008-12-05  4:55             ` Kenichi Handa
2008-12-05  9:14               ` James Cloos [this message]
2008-12-05 12:30                 ` Kenichi Handa
2008-12-05 20:48                   ` James Cloos
2008-12-06  1:14                   ` James Cloos
2008-12-07  8:51                     ` 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=m31vwn6l0l.fsf@lugabout.jhcloos.org \
    --to=cloos@jhcloos.com \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    --cc=monnier@iro.umontreal.ca \
    /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).