Johan Svedberg <[EMAIL PROTECTED]> writes: > * Feb 15 17:49 Dan Espen <[EMAIL PROTECTED]>: > > Johan Svedberg <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
