Re: PangoCairoFontMap resolution
- From: Behdad Esfahbod <behdad behdad org>
- To: Theo Veenker <Theo Veenker let uu nl>
- Cc: gtk-i18n-list gnome org
- Subject: Re: PangoCairoFontMap resolution
- Date: Wed, 22 Oct 2008 20:22:24 -0400
Theo Veenker wrote:
> Hi all,
Hi,
> Suppose I'm writing a text on two displays (using the same font face).
> Display 1 has a resolution of 85 dpi and display 2 has a resultion of
> 100 dpi. I could create two fontmaps and for both set the desired
> resolution using pango_cairo_font_map_set_resolution() and then
> work with those.
>
> But what if I would just create one fontmap (with default resolution
> of 96 dpi) and draw the text (through cairo) with scale 85/96 on
> display 1 and with scale 100/96 on display 2. Would this yield
> the same result as with two dedicated fontmaps?
It does. Or better, use pango_cairo_context_set_resolution().
behdad
> Theo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]