[Motiftools-users] Font Display Problem -- HELP!!
Brought to you by:
motiftools
From: Jake C. <co...@pp...> - 2001-01-10 14:21:43
|
The following message is a courtesy copy of an article that has been posted to comp.windows.x,comp.windows.x.motif,comp.windows.x.intrinsics as well. (this message is being posted to a number of related newsgroups and email lists since I have had no response to prior postings and am hoping someone reading this can help me.) My problem is with the display of my application across different X Servers. I use a resource file to specify the fonts to be used for my XmLabel widgets, XmText widgets, etc. The fonts are specified fairly generically using wildcards in the usual places. My first problem is that the app displays its screens as I'd expect only a PC-based Exceed Server but displays with grossly larger fonts when displayed on a native Sun X Server. As near as I can tell both servers have the same fonts available to them, yet they are not selecting the same font. A related problem is that when the app is built on a system with a non-standard locale (UK) and displayed on a server running on a system with a standard locale (US) the application crashed. In this case, the app crashes due to a documented bug related to fonts not being found when attempting to query font metrics. So, again, the two servers are not each picking up the font I think I specified. So, to solve this, how can I precisely determine which specific font is being used by a specific widget given my font spec? I have confirmed to the best of my ability, using tools like xlsfonts, xfontsel, xfd to check that the proper fonts would be selected on each server given the same ambiguous spec. Yet, the screens are not displaying in an identical manner. How can I have the application itself tell me which font it is using? TIA! -- Jake Colman Principia Partners LLC Phone: (201) 946-0300 Harborside Financial Center Fax: (201) 946-0320 902 Plaza II Beeper: (800) 928-4640 Jersey City, NJ 07311 E-mail: co...@pp... E-mail: jc...@jn... web: http://www.ppllc.com |