[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pango and guile-gtk
From: |
Kevin Ryde |
Subject: |
Re: Pango and guile-gtk |
Date: |
Fri, 06 Apr 2007 09:00:17 +1000 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
Paul Emsley <address@hidden> writes:
>
> $ pkg-config --modversion pango
> 1.8.1
>
> This pango seems not to declare 'PANGO_PIXELS_CEIL' or
> `PANGO_PIXELS_FLOOR' and thus gives me a link error when I try to link
> my app.
Thanks.
> Add a work-around in the source code?
Yes, I'll do that. The definitions are simply
#define PANGO_PIXELS_FLOOR(d) (((int)(d)) >> 10)
#define PANGO_PIXELS_CEIL(d) (((int)(d) + 1023) >> 10)
ie. a division by PANGO_SCALE, rounding up or down.