home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.open-look:4563 alt.toolkits.xview:1070 comp.sys.sun.misc:5318
- Path: sparky!uunet!pmcgw!ds5200.personal-media.co.jp
- From: ishikawa@ds5200.personal-media.co.jp (Chiaki Ishikawa)
- Newsgroups: comp.windows.open-look,alt.toolkits.xview,comp.sys.sun.misc
- Subject: I18N Xview font problem. Can't display on other machine?
- Message-ID: <ISHIKAWA.92Nov18234810@ds5200.personal-media.co.jp>
- Date: 18 Nov 92 14:48:10 GMT
- Sender: news@pmcgw.personal-media.co.jp
- Reply-To: ishikawa@personal-media.co.jp
- Followup-To: comp.windows.open-look
- Organization: Personal Media Corp., Tokyo Japan
- Lines: 99
- Nntp-Posting-Host: ds5200
-
-
- Hello. I am using Sun OpenWindows v2 and I18N XView (read Japanese Xview).
-
- I have compiled and linked an application on Sparcstation. Now I am
- trying to redirect the display of the program on other machines (Sun3,
- Decstation), but failed to do so. The program shows many error
- messages concerning "Cannot load font" and eventually dumps core.
-
- Surprisingly, the font name printed in the error messages from XView
- library should match to an existing font on the X11 servers on the
- other machines. (I checked the available fonts on different server by
- using xlsfonts command.)
-
- The program runs on Sparcstation just fine as long as the display is
- done on the machine locally.
-
- The program calls xv_init in main in the follow manner.
- (Note some I18N and localization stuff.)
-
- xv_init(
- XV_USE_LOCALE, TRUE,
- XV_LC_BASIC_LOCALE, "japanese",
- /**** XV_LC_INPUT_LANG, "japanese",
- XV_LC_DISPLAY_LANG, "japanese", ****/
- XV_INIT_ARGC_PTR_ARGV,&argc,argv,
- NULL);
-
- Eventually, something like the following is done to look for font.
- But, I wonder if this is where the problem lies. (The messages I show
- later seem to come from elsewhere in the XView library, but I am not
- sure.)
-
- deffont=xv_find(NULL,FONT,
- FONT_FAMILY,FONT_FAMILY_DEFAULT_FIXEDWIDTH,
- FONT_STYLE,FONT_STYLE_BOLD,
- /* from p.12 of JLE SunView to I18N XView (in Japanese) */
- FONT_LOCALE, "japanese",
- 0);
-
- [] When the display is directed to a Sun3 (MIT X11R3 or R4), and the
- program running on Sparcstation shows this output.
- ...
- XView warning: Cannot load font set '-*-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package)
- XView warning: Unable to open default font set
- ...
- Several similar messages and many error messages due to the
- missing fonts.
- ...
- signal SEGV (no mapping at the fault address) in XwcTextExtents at 0xf76e3cf0
- XwcTextExtents+0x18: ld [%l5 + 52], %o0
- (dbx) where
- XwcTextExtents() at 0xf76e3cf0
- xv_pf_textwidth_wc() at 0xf76cdfc0
- panel_make_image() at 0xf76629c0
- item_set_generic() at 0xf76468f0
- item_set_avlist() at 0xf764599c
- xv_set_pkg_avlist() at 0xf76107e0
- xv_set_avlist() at 0xf76108b8
- xv_create_avlist() at 0xf76106a8
- xv_create() at 0xf7610514
- ...
- (dbx) quit
-
- [] This is a partial listing of xlsfonts output on the Sun3:
-
- -b&h-lucida-bold-i-normal-sans-10-100-75-75-p-67-iso8859-1
- ...
- -b&h-lucida-medium-r-normal-sans-10-100-75-75-p-58-iso8859-1
- -b&h-lucida-medium-r-normal-sans-11-80-100-100-p-63-iso8859-1
- -b&h-lucida-medium-r-normal-sans-12-120-75-75-p-71-iso8859-1
- -b&h-lucida-medium-r-normal-sans-14-100-100-100-p-80-iso8859-1
- -b&h-lucida-medium-r-normal-sans-14-140-75-75-p-81-iso8859-1
- -b&h-lucida-medium-r-normal-sans-17-120-100-100-p-96-iso8859-1 <---******
- ... rest omitted ...
-
- I would think that the font marked by "<---******" match the requested
- font name.
-
- [] When I redirected the output to DECstation 5200 (DEC X11R4-based
- server), similar error occurs. xlsfonts run against DECstation server
- also shows a font name that would match the missing font.
-
- BTW, when I ran xlsfonts to the X11/NeWS server on the Sparcstation, I
- saw "0"s in the font name fields such as width field. Is this the
- right behavior? I was quite surprised that OpenWindow X11/NeWS
- handles fonts in a very different manner. There weren't even fonts.dir
- and fonts.alias?
-
- [] Now the main question is:
-
- Has anyone seen similar problem before? Is there a workaround?
-
- Does I18N XView library permit the program to run and display only on
- X11/NeWS server? (Or am I using outdated library? SunOS
- 4.1.1-JLE1.1.1.)
-
- Please reply by e-mail. I will post a summary.
-
- ishikawa@personal-media.co.jp
-