"Paul Smith" <pausmith_at_nortelnetworks.com> writes:
> %% David <cupcake_at_sdf.lonestar.org> writes:
> >>> With Motif applications you can usually set X-Resources
> >>> to cause Motif to use a different font depending on the screen
> >>> size. Heres something I use in my X-resources for controlling
> >>> the Emacs window size:
>
> d> That's how it should work, and I have written some apps which
> d> start with the font and size the app depending on the font
> d> characteristics. I don't know of anyone else who has done that,
> d> however. Even in your example, you still have to size the apps
> d> using geometry: a very well behaved motif app should size itself
> d> from the font characteristics, I think.
>
> d> #elif ( HEIGHT == 1200 ) /* My home machine, 1600x1200 use side x side
> layout */
>
> d> If you can do this, why can't fvwm?
>
> FVWM _could_ size _itself_ from the font characteristics (or vice versa).
>
> But, FVWM cannot influence the font sizes, button sizes, or other
> internal dimensions of _other applications_.
>
> FVWM may be involved with deciding the x/y offset on the screen, and it
> may be involved with deciding the total height and width of the outer
> window (the one that it decorates with borders), but it is decidedly
> _not_ involved, and cannot influence in any way, the way the application
> uses that window space.
This stuff does seem like magic, and its easy to get confused about
what piece is doing what.
I think Paul covered it all (thanks Paul), but I just want to point
out that I used screen height and geometry as an example. If you want
your windows bigger, you could use similar logic in the X Resources
file to pick bigger fonts. Every Motif app I know of will make the
windows bigger to accommodate the larger fonts.
Check out the xrdb man page. You can even query the X server for
the X_RESOLUTION (pixels per meter) and pick the font based on
that.
--
Dan Espen
444 Hoes Lane Room RRC 1C-214 E-mail: dane_at_mk.telcordia.com
Piscataway, NJ 08854 Phone: (732) 699-5570
--
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 Wed Nov 14 2001 - 14:10:07 GMT