Re: [gtk-list] Re: FontSelection widget: how about adding resolution?



Damon Chaplin wrote:

> Roman Sulzhyk wrote:
> >
> >     Hello:
> >
> >     I'm using gfontsel, and was wondering why it doesn't allow me to
> > filter on 100/75 dpi font resolution. After a bit of poking around, I've
> > found out that gtk+ widget that it uses doesn't support filtering on
> > font resulution. I think it's feasible to add it, since old xfontsel
> > seems to be doing it. I would like to bring this matter to the attention
> > of GTK developers and see if they feel it could be possible to update
> > the widget.
>
> I may have to update GtkFontSelection to handle the unicode stuff for 1.4,
> so I could add this then if people think it is useful.
>
> But X fonts can be any resolution. Even though most are 75 or 100dpi I
> have some that are 72dpi. How would you set up the filter?
>
> Damon
>

    Damon:

    Glad to hear you think it's feasible to add it. I don't know if the font
naming will change with introduction of unicode, but the way it is done
currently you can get the list of all available resolutions by requesting list
of all fonts from the server and just looking at all the available values in
the resolution fields, I think this is how the possible values for all other
filters are obtained. I think the best way would be to look at the x-y pairs
and just get all possible combinations, currently 72x72, 75x75, 100x100. The
API to the font selector will have to change a little, but that's probably
unavoidable with unicode anyway. xfontsel does that, it parses the complete
font list and creates menus based on data found.

    As for this being useful - I believe it is very useful, since people with
larger monitor would like to set up their fonts to higher res. Right now, the
GDK font sel is biased towards 75 dpi resolution, even if you have 100 dpi
fonts listed first in your xfs path - that has been my experience with it.

    Thanks a lot!

    Roman


begin:vcard 
n:Sulzhyk;Roman
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:roman@starmedia.net
title:Software Engineer
x-mozilla-cpt:;-4352
fn:Roman Sulzhyk
end:vcard


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]