Linux to Sun Question...

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Linux to Sun Question...

Submitted by Anonymous on Wed, 06/12/2002 - 20:20. Developers
I have a Motif Executable that I am writing on a Linux box; however, once completed, it needs to be able to run on a Sun box as well. Currently it works on the Sun machine. However, the fonts and widths are scewed. It is chopping off words and sizing dialogs in strange ways. Is there a way to program the settings into the executable to keep them from changing?

Thanks in Advance...
C. Lamb

ICS_support

Well, yes. You can dictate the fonts in the program by hard-coding them as resource values or by explicitly opening the fonts. However, the fonts are not necessarily on the target machine, so doing so is generally a bad idea. The real problem is that you are likely using hard-coded size values in your program rather than making constraint-based layouts that work regardless of the size of particular fonts and the widgets that contain them.