Re: FVWM: Alternative DefaultFont feature

From: Johan Svedberg <johan_at_svedberg.pp.se>
Date: Sun, 15 Feb 2004 18:22:13 +0100

* 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?

[...]

-- 
Johan Svedberg, johan_at_svedberg.pp.se, http://johan.svedberg.pp.se/
--
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:24:32 GMT

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