all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Takanori MATSUURA <t.matsuu@gmail.com>
To: 4129@debbugs.gnu.org
Subject: bug#4129: Support for dual spacing fonts
Date: Wed, 21 Apr 2010 10:28:13 +0900	[thread overview]
Message-ID: <t2l6f27515e1004201828h6af82fe8i7530f136b2d04c46@mail.gmail.com> (raw)
In-Reply-To: <6f27515e0908111855l2b4c9d48i12c62c88e6e999cd@mail.gmail.com>

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

Please find the file attached.

The patch fixes bug#4129.


Takanori

[-- Attachment #2: emacs-23.1-spacing.patch --]
[-- Type: text/x-patch, Size: 949 bytes --]

diff --git a/src/ftfont.c b/src/ftfont.c
index 4ebc4be..bac9a4f 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -1262,7 +1262,7 @@ ftfont_open (f, entity, pixel_size)
     spacing = XINT (AREF (entity, FONT_SPACING_INDEX));
   else
     spacing = FC_PROPORTIONAL;
-  if (spacing != FC_PROPORTIONAL)
+  if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL)
     font->min_width = font->average_width = font->space_width
       = (scalable ? ft_face->max_advance_width * size / upEM
 	 : ft_face->size->metrics.max_advance >> 6);
diff --git a/src/xftfont.c b/src/xftfont.c
index 82701ce..e74ce31 100644
--- a/src/xftfont.c
+++ b/src/xftfont.c
@@ -418,7 +418,7 @@ xftfont_open (f, entity, pixel_size)
 	ascii_printable[i] = ' ' + i;
     }
   BLOCK_INPUT;
-  if (spacing != FC_PROPORTIONAL)
+  if (spacing != FC_PROPORTIONAL && spacing != FC_DUAL)
     {
       font->min_width = font->average_width = font->space_width
 	= xftfont->max_advance_width;

  reply	other threads:[~2010-04-21  1:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-12  1:55 bug#4129: Support for dual spacing fonts Takanori MATSUURA
2010-04-21  1:28 ` Takanori MATSUURA [this message]
2010-06-25 17:10 ` bug#4129: Emacs still have font spacing problem Naohiro Aota
2010-06-30  6:57   ` 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

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

  git send-email \
    --in-reply-to=t2l6f27515e1004201828h6af82fe8i7530f136b2d04c46@mail.gmail.com \
    --to=t.matsuu@gmail.com \
    --cc=4129@debbugs.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.