RE: font size and point->pixel conversion
- From: "Joaquin Cuenca Abela" <e98cuenc free fr>
- To: "'Adrian E. Feiguin'" <afeiguin uci edu>, <gtk-i18n-list gnome org>
- Cc:
- Subject: RE: font size and point->pixel conversion
- Date: Wed, 25 Aug 2004 23:02:39 +0200
Adrian wrote:
>
> Hi! I am having a little problem with the font sizes. Before
> using pango (gtk-1, or GdkFont for that matter), I could
> match exactly the font size to the postscript font size, so
> if a font was 12pt on my pixmap, and 12pt on the ps file,
> they would look exactly the same.
Probably due to the different default dpi between X core fonts and
FontConfig. You should retrieve the dpi (now it's 96 by default) and use it
to convert from points to pixels.
Cheers,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]