Re: FVWM: Alternative DefaultFont feature

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Sun, 15 Feb 2004 12:31:49 -0500

Johan Svedberg <johan_at_svedberg.pp.se> writes:
> * Feb 15 17:49 Dan Espen <dane_at_mk.telcordia.com>:
> > Johan Svedberg <johan_at_svedberg.pp.se> writes:
> > > Hi!
> > >
> > > Basically what I would like to do is something like this:
> > >
> > > DefaultFont foo bar
> > >
> > > Where FVWM would use bar if foo is not availible on the system. Very
> > > similar to the way it falls back on 'fixed'.
> > >
> > > Another nice thing would be to be able to say something like this in
> > > the configuration file:
> > >
> > > + "XTerm" Exec exec xterm -fn $[DefaultFont] &
> > >
> > > Or is there currently some way to accomplish what I'm trying to do
> > > here?
> >
> > You could PipeRead a shell that does something like this:
> >
> > xlsfonts -fn $1 2>&1 | grep unmatched >/dev/null 2>&1 if [ $? = 0 ] ;
> > then printf "SetEnv DefaultFont $2" else printf "SetEnv DefaultFont
> > $1" fi
>
> Yeah, I thought about doing something like that. The problem I had was
> that xlsfonts won't show FreeType fonts, you don't happend to know a
> good way to list those?

Google led me to this answer:

Test whether the font can be displayed with a FreeType 2 demo program,
e.g. ftview. Chances are high that it is not an FT2 problem if that
works...

I have an older X server so I can't test it out.
I don't know if that's a GUI or not.
Maybe you should try freetype.org.
I'd say xlsfonts is broken if it doesn't handle FreeType.

-- 
Dan Espen                           E-mail: dane_at_mk.telcordia.com
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Feb 15 2004 - 11:34:50 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST