T.R | Title | User | Personal Name | Date | Lines |
---|
1112.1 | | SDSVAX::SWEENEY | Honey, I iconified the kids | Mon Jul 17 1989 10:35 | 13 |
| If a font size is hard-coded in a .h file then there is no way to
change it: it is "hard coded".
Typically applications use UIL files or resource default files to
specify fonts. Some applications I have written have a menu to select
the font size to be used at run time.
If you have access to sources and can change the .h file, then the list
of fonts in DECwindows V1 is to be found in Appendix D of the VMS
DECwindows Guide to Xlib Programming, both MIT binding and VAX binding.
Various programs in the DW_EXAMPLES conference list fonts as well.
|
1112.2 | translation? | MARX::TSOI | | Mon Jul 17 1989 14:48 | 13 |
| I do have the source code to the application, and I got the list
of fonts in the format:
-adobe-itc avant garde gothic-book-r-normal--25-180-100-100-p-138-iso8859-1
What I don't understand is how do I find the font size in the
form of "18X20", for example? In the .h file, it was specified:
#define DFL_FONT "18X20" /* default font */
Thanks. As you can see, I am very new to Xwindows...
Stella
|
1112.3 | 18x20 is not a valid font name | GVRIEL::SCHOELLER | Who's on first? | Mon Jul 17 1989 15:29 | 16 |
| Stella,
Several old applications seem to have fonts specified as you describe. This
is not compatible with the X11R3 naming scheme. Therefore, these applications
give their little warnings and then go off and use whatever font is in the GC.
Applications which wish to hard code fonts should try to specify the minimum
necessary (point size, weight, spacing and maybe one or two more) and then
pick among the fonts which satisfy on the server. Use XLookupFont to do this.
Unfortunately, there are many applications out there which either hard code
old font specifications or code for a very specific font which is not
accessible on all servers.
Dick
|
1112.4 | thanks | MARX::TSOI | | Mon Jul 17 1989 16:09 | 4 |
| Thanks. I think I finally see the light.
Stella
|