[cairo] text on win32
Daniel Amelang
daniel.amelang at gmail.com
Sun Feb 11 03:39:02 PST 2007
On 2/11/07, Daniel Amelang <daniel.amelang at gmail.com> wrote:
> Anyway, I did a quick and
> dirty manual application of your patch and it fixes the problem on my
> end. I'm attaching the updated patch.
And once again I forgot to inline it >_<
Let's try this again.
Dan
>From f07b4977068902a6b19dc74210016bbc6550435f Mon Sep 17 00:00:00 2001
From: Dan Amelang <dan at amelang.net>
Date: Sun, 11 Feb 2007 03:34:27 -0800
Subject: [PATCH] Fix Win32 text spacing problem
Thanks to Jordan Miner for reporting the problem and a fix.
---
src/cairo-win32-surface.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c
index 4025b94..6899c95 100644
--- a/src/cairo-win32-surface.c
+++ b/src/cairo-win32-surface.c
@@ -1580,8 +1580,8 @@ _cairo_win32_surface_show_glyphs (void *surface,
next_logical_x = _cairo_lround (next_user_x);
next_logical_y = _cairo_lround (next_user_y);
- dxy_buf[j] = _cairo_lround ((next_logical_x - logical_x)
* WIN32_FONT_LOGICAL_SCALE);
- dxy_buf[j+1] = _cairo_lround ((next_logical_y -
logical_y) * WIN32_FONT_LOGICAL_SCALE);
+ dxy_buf[j] = _cairo_lround (next_logical_x - logical_x);
+ dxy_buf[j+1] = _cairo_lround (next_logical_y - logical_y);
logical_x = next_logical_x;
logical_y = next_logical_y;
--
1.4.4.4
More information about the cairo
mailing list