[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/ftxfont.c,v
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/ftxfont.c,v |
Date: |
Mon, 25 Feb 2008 01:45:48 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Kenichi Handa <handa> 08/02/25 01:45:47
Index: ftxfont.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/ftxfont.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- ftxfont.c 17 Feb 2008 02:03:19 -0000 1.6
+++ ftxfont.c 25 Feb 2008 01:45:47 -0000 1.7
@@ -360,6 +360,7 @@
int len = to - from;
int i;
GC *gcs;
+ int xadvance;
n[0] = n[1] = n[2] = n[3] = n[4] = n[5] = n[6] = 0;
@@ -392,8 +393,11 @@
s->clip, s->num_clips, Unsorted);
for (i = 0; i < len; i++)
- x += ftxfont_draw_bitmap (f, s->gc, gcs, font, code[i], x, y,
+ {
+ xadvance = ftxfont_draw_bitmap (f, s->gc, gcs, font, code[i], x, y,
p, 0x100, n, i + 1 == len);
+ x += (s->padding_p ? 1 : xadvance);
+ }
if (s->num_clips)
for (i = 0; i < 6; i++)
XSetClipMask (FRAME_X_DISPLAY (f), gcs[i], None);
@@ -403,8 +407,11 @@
/* We can't draw with antialiasing.
s->gc should already have a proper clipping setting. */
for (i = 0; i < len; i++)
- x += ftxfont_draw_bitmap (f, s->gc, NULL, font, code[i], x, y,
+ {
+ xadvance = ftxfont_draw_bitmap (f, s->gc, NULL, font, code[i], x, y,
p, 0x700, n, i + 1 == len);
+ x += (s->padding_p ? 1 : xadvance);
+ }
}
UNBLOCK_INPUT;
- [Emacs-diffs] Changes to emacs/src/ftxfont.c,v, Glenn Morris, 2008/02/05
- [Emacs-diffs] Changes to emacs/src/ftxfont.c,v, Kenichi Handa, 2008/02/06
- [Emacs-diffs] Changes to emacs/src/ftxfont.c,v, Kenichi Handa, 2008/02/06
- [Emacs-diffs] Changes to emacs/src/ftxfont.c,v, Kenichi Handa, 2008/02/16
- [Emacs-diffs] Changes to emacs/src/ftxfont.c,v,
Kenichi Handa <=