GNU bug report logs - #4129
Support for dual spacing fonts

Previous Next

Package: emacs;

Reported by: Takanori MATSUURA <t.matsuu <at> gmail.com>

Date: Wed, 12 Aug 2009 02:05:04 UTC

Severity: normal

Tags: patch

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4129 in the body.
You can then email your comments to 4129 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4129; Package emacs. (Wed, 12 Aug 2009 02:05:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Takanori MATSUURA <t.matsuu <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 12 Aug 2009 02:05:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Takanori MATSUURA <t.matsuu <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Support for dual spacing fonts
Date: Wed, 12 Aug 2009 10:55:30 +0900
When I use IPAGothic font with emacs-23.1, ASCII characters are shown
as character itself and extra space (ie. "A ", "t ").  The font have
the spacing value of "90" which means dual spacing. If I explicitly
define the spacing to "0", this font-width issue is solved.

Other software which use fontconfig can treat IPAGothic fonts
properly.  So I'm afraid that emacs doesn't handle it.


Fonts are shown with wrong spacing:
Add ~/.emacs to
(set-frame-font "IPAGothic")

Fonts are shown properly:
Add ~/.emacs to
(set-frame-font "IPAGothic:spacing=0")

And add the following fontconfig configuration
<match target="font">
  <test name="family">
     <string>IPAGothic</string>
  </test>
  <edit name="spacing">
     <int>0</int>
  </edit>
  <edit name="globaladvance">
     <bool>false</bool>
  </edit>
</match>


IPAGothic font is available from:
http://ossipedia.ipa.go.jp/ipafont/
(Both Japanese and English contents included in one page. same meaning)


Regards,
Takanori




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4129; Package emacs. (Wed, 21 Apr 2010 01:34:02 GMT) Full text and rfc822 format available.

Message #8 received at 4129 <at> debbugs.gnu.org (full text, mbox):

From: Takanori MATSUURA <t.matsuu <at> gmail.com>
To: 4129 <at> debbugs.gnu.org
Subject: Re: bug#4129: Support for dual spacing fonts
Date: Wed, 21 Apr 2010 10:28:13 +0900
[Message part 1 (text/plain, inline)]
Please find the file attached.

The patch fixes bug#4129.


Takanori
[emacs-23.1-spacing.patch (text/x-patch, attachment)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4129; Package emacs. (Fri, 25 Jun 2010 17:18:02 GMT) Full text and rfc822 format available.

Message #11 received at 4129 <at> debbugs.gnu.org (full text, mbox):

From: Naohiro Aota <naota <at> elisp.net>
To: 4129 <at> debbugs.gnu.org
Subject: Emacs still have font spacing problem
Date: Sat, 26 Jun 2010 02:10:33 +0900 (JST)
Hi, list

As I post last year [1], Emacs still doesn't deal with fonts whose
spacing is set to FC_DUAL. Please see this screen-shot I've sent last
year [2]. You see disgusting Elisp indentation, don't you?

This is all because Emacs assume "space width" is as same as "font max
width" only just if the font is not "PROPORTIONAL". Some Japanese are
using "DUAL" fonts (M+ font, IPA font and so on). These fonts have
"glyphs in precisely two widths, one twice as wide as the other" [3],
Emacs shouldn't use "max width" for "min width" and "space width" when
there is two kinds of width!

Please please think applying the patch.

Regards,

[1] http://article.gmane.org/gmane.emacs.devel/111557/
[2] http://article.gmane.org/gmane.emacs.devel/111572/
[3] http://fontconfig.org/fontconfig-devel/fcfreetypecharsetandspacing.html




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4129; Package emacs. (Wed, 30 Jun 2010 06:58:02 GMT) Full text and rfc822 format available.

Message #14 received at 4129 <at> debbugs.gnu.org (full text, mbox):

From: Kenichi Handa <handa <at> m17n.org>
To: Naohiro Aota <naota <at> elisp.net>
Cc: 4129 <at> debbugs.gnu.org
Subject: Re: bug#4129: Emacs still have font spacing problem
Date: Wed, 30 Jun 2010 15:57:24 +0900
In article <20100626.021033.1233076457334905269.naota <at> elisp.net>, Naohiro Aota <naota <at> elisp.net> writes:

> As I post last year [1], Emacs still doesn't deal with fonts whose
> spacing is set to FC_DUAL. Please see this screen-shot I've sent last
> year [2]. You see disgusting Elisp indentation, don't you?

> This is all because Emacs assume "space width" is as same as "font max
> width" only just if the font is not "PROPORTIONAL". Some Japanese are
> using "DUAL" fonts (M+ font, IPA font and so on). These fonts have
> "glyphs in precisely two widths, one twice as wide as the other" [3],
> Emacs shouldn't use "max width" for "min width" and "space width" when
> there is two kinds of width!

> Please please think applying the patch.

Thank you for the patch, and I'm very sorry for the late
response on this matter.  It seems that I somehow missed
your first report.

I've just applied your patch in this mail:

> [1] http://article.gmane.org/gmane.emacs.devel/111557/

---
Kenichi Handa
handa <at> m17n.org




bug closed, send any further explanations to Takanori MATSUURA <t.matsuu <at> gmail.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Wed, 30 Jun 2010 14:17:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 29 Jul 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 15 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.