Re: Pango: listing fixed spaced families
- From: Allin Cottrell <cottrell wfu edu>
- To: Robert Roebling <Robert Roebling t-online de>
- Cc: gtk <gtk-devel-list gnome org>
- Subject: Re: Pango: listing fixed spaced families
- Date: Tue, 11 Feb 2003 21:30:14 -0500 (EST)
On Tue, 11 Feb 2003, Robert Roebling wrote:
> is there a way in the Pango API (I haven't seen any after looking at
> every header file) that makes it possible to get a list of all font
> families which have a fixed width?
No. More's the pity. I have made a hacked-up version of gtkfontsel
that supports what you want and I use it in my own app. It seems to
work fine on a variety of platforms, but it's too ugly to submit as a
patch to gtk. It is accurate with regard to fixed vs proportional
fonts (the heuristic is to check for a text font, and if a font is a
text font, to do a trivial pango layout and see if 'i' and 'w' come
out the same width). If you're interested, email me.
Allin Cottrell.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]