home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / openloo / 4563 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  4.2 KB

  1. Xref: sparky comp.windows.open-look:4563 alt.toolkits.xview:1070 comp.sys.sun.misc:5318
  2. Path: sparky!uunet!pmcgw!ds5200.personal-media.co.jp
  3. From: ishikawa@ds5200.personal-media.co.jp (Chiaki Ishikawa)
  4. Newsgroups: comp.windows.open-look,alt.toolkits.xview,comp.sys.sun.misc
  5. Subject: I18N Xview font problem. Can't display on other machine?
  6. Message-ID: <ISHIKAWA.92Nov18234810@ds5200.personal-media.co.jp>
  7. Date: 18 Nov 92 14:48:10 GMT
  8. Sender: news@pmcgw.personal-media.co.jp
  9. Reply-To: ishikawa@personal-media.co.jp
  10. Followup-To: comp.windows.open-look
  11. Organization: Personal Media Corp., Tokyo Japan
  12. Lines: 99
  13. Nntp-Posting-Host: ds5200
  14.  
  15.  
  16. Hello. I am using Sun OpenWindows v2 and I18N XView (read Japanese Xview).
  17.  
  18. I have compiled and linked an application on Sparcstation.  Now I am
  19. trying to redirect the display of the program on other machines (Sun3,
  20. Decstation), but failed to do so.  The program shows many error
  21. messages concerning "Cannot load font" and eventually dumps core.
  22.  
  23. Surprisingly, the font name printed in the error messages from XView
  24. library should match to an existing font on the X11 servers on the
  25. other machines.  (I checked the available fonts on different server by
  26. using xlsfonts command.)
  27.  
  28. The program runs on Sparcstation just fine as long as the display is
  29. done on the machine locally.
  30.  
  31. The program calls xv_init in main in the follow manner.
  32. (Note some I18N and localization stuff.)
  33.  
  34.     xv_init(
  35.         XV_USE_LOCALE, TRUE,
  36.         XV_LC_BASIC_LOCALE, "japanese",
  37.     /****    XV_LC_INPUT_LANG, "japanese",
  38.         XV_LC_DISPLAY_LANG, "japanese", ****/
  39.         XV_INIT_ARGC_PTR_ARGV,&argc,argv,
  40.         NULL);
  41.  
  42. Eventually, something like the following is done to look for font. 
  43. But, I wonder if this is where the problem lies.  (The messages I show
  44. later seem to come from elsewhere in the XView library, but I am not
  45. sure.)
  46.  
  47.       deffont=xv_find(NULL,FONT,
  48.         FONT_FAMILY,FONT_FAMILY_DEFAULT_FIXEDWIDTH,
  49.         FONT_STYLE,FONT_STYLE_BOLD,
  50.     /* from p.12 of JLE SunView to I18N XView (in Japanese) */
  51.             FONT_LOCALE, "japanese",
  52.       0);
  53.  
  54. [] When the display is directed to a Sun3 (MIT X11R3 or R4), and the
  55. program running on Sparcstation shows this output.
  56.     ...
  57. XView warning: Cannot load font set '-*-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)
  58. XView warning: Unable to open default font set
  59.     ...
  60.     Several similar messages and many error messages due to the
  61.     missing fonts.
  62.     ...
  63. signal SEGV (no mapping at the fault address) in XwcTextExtents at 0xf76e3cf0
  64. XwcTextExtents+0x18:    ld    [%l5 + 52], %o0
  65. (dbx) where
  66. XwcTextExtents() at 0xf76e3cf0
  67. xv_pf_textwidth_wc() at 0xf76cdfc0
  68. panel_make_image() at 0xf76629c0
  69. item_set_generic() at 0xf76468f0
  70. item_set_avlist() at 0xf764599c
  71. xv_set_pkg_avlist() at 0xf76107e0
  72. xv_set_avlist() at 0xf76108b8
  73. xv_create_avlist() at 0xf76106a8
  74. xv_create() at 0xf7610514
  75.     ...
  76. (dbx) quit
  77.  
  78. [] This is a partial listing of xlsfonts output on the Sun3:
  79.  
  80. -b&h-lucida-bold-i-normal-sans-10-100-75-75-p-67-iso8859-1
  81.     ...
  82. -b&h-lucida-medium-r-normal-sans-10-100-75-75-p-58-iso8859-1
  83. -b&h-lucida-medium-r-normal-sans-11-80-100-100-p-63-iso8859-1
  84. -b&h-lucida-medium-r-normal-sans-12-120-75-75-p-71-iso8859-1
  85. -b&h-lucida-medium-r-normal-sans-14-100-100-100-p-80-iso8859-1
  86. -b&h-lucida-medium-r-normal-sans-14-140-75-75-p-81-iso8859-1
  87. -b&h-lucida-medium-r-normal-sans-17-120-100-100-p-96-iso8859-1 <---******
  88.     ... rest omitted ...
  89.  
  90. I would think that the font marked by "<---******" match the requested
  91. font name.
  92.  
  93. [] When I redirected the output to DECstation 5200 (DEC X11R4-based
  94. server), similar error occurs.  xlsfonts run against DECstation server
  95. also shows a font name that would match the missing font.
  96.  
  97. BTW, when I ran xlsfonts to the X11/NeWS server on the Sparcstation, I
  98. saw "0"s in the font name fields such as width field.  Is this the
  99. right behavior?  I was quite surprised that OpenWindow X11/NeWS
  100. handles fonts in a very different manner. There weren't even fonts.dir
  101. and fonts.alias?
  102.  
  103. [] Now the main question is:
  104.  
  105.     Has anyone seen similar problem before? Is there a workaround?
  106.  
  107. Does I18N XView library permit the program to run and display only on
  108. X11/NeWS server?  (Or am I using outdated library? SunOS
  109. 4.1.1-JLE1.1.1.)
  110.  
  111. Please reply by e-mail. I will post a summary.
  112.  
  113. ishikawa@personal-media.co.jp
  114.