Re: What happened to the fonts?
On Fri, 28 Jan 2005, Mark Vojkovich wrote: I tried tracing twm when it is drawing fonts. I don't really understand the font paths very well, but it looks like it never even draws anything. It looks like: _XomGetFontSetFromCharSet returns NULL so _XomConvert returns -1 so _XomGenericDrawString doesn't draw anything I walked through the loop in _XomGetFontSetFromCharSet. There are two fontsets (ie. font_set_num = 2). Both have only one charset. Neither matches the one passed to _XomGetFontSetFromCharSet. (gdb) p font_set[0] $62 = {id = 0, charset_count = 1, charset_list = 0x80910d8, font_data_count = 1, font_data = 0x80916b0, font_name = 0x8091ea0 "-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso88 59-15", info = 0x0, font = 0x80919c0, side = XlcGL, is_xchar2b = 0, substitute_num = 1, substitute = 0x80916d0, vpart_initialize = 0, vmap_num = 0, vmap = 0x80916f0, vrotate_num = 1, vrotate = 0x8091700} (gdb) p font_set[1] $63 = {id = 1, charset_count = 1, charset_list = 0x80910a8, font_data_count = 1, font_data = 0x8091720, font_name = 0x8091edd "-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso88 59-15", info = 0x0, font = 0x8091c30, side = XlcGR, is_xchar2b = 0, substitute_num = 0, substitute = 0x8091740, vpart_initialize = 0, vmap_num = 0, vmap = 0x8091750, vrotate_num = 0, vrotate = 0x0} (gdb) p *font_set[0].charset_list $72 = 0x8084848 (gdb) p *font_set[1].charset_list $73 = 0x8082698 (gdb) p charset $64 = 0x8081e80 (gdb) p *charset $65 = {name = 0x807f238 "ISO8859-1:GL", xrm_name = 1, encoding_name = 0x807f108 "ISO8859-1", xrm_encoding_name = 2, side = XlcGL, char_size = 1, set_size = 94, ct_sequence = 0x807f245 "\e(B", string_encoding = 1, udc_area = 0x0, udc_area_num = 0, source = CSsrcStd} (gdb) I'm not really sure what to do with this information. Ummm. See if changing line 19 of /usr/X11R6/lib/X11/locale/iso8859-15/XLC_LOCALE to read ... nameISO8859-1:GL ... instead of ... nameISO8859-15:GL ... fixes the problem. Be mindful of tabs. Marc. +--+---+ | Marc Aurele La France | work: 1-780-492-9310 | | Computing and Network Services | fax:1-780-492-1729 | | 352 General Services Building | email: [EMAIL PROTECTED] | | University of Alberta +---+ | Edmonton, Alberta | | | T6G 2H1 | Standard disclaimers apply| | CANADA | | +--+---+ XFree86 developer and VP. ATI driver and X server internals. ___ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel
Re: What happened to the fonts?
I tried tracing twm when it is drawing fonts. I don't really understand the font paths very well, but it looks like it never even draws anything. It looks like: _XomGetFontSetFromCharSet returns NULL so _XomConvert returns -1 so _XomGenericDrawString doesn't draw anything I walked through the loop in _XomGetFontSetFromCharSet. There are two fontsets (ie. font_set_num = 2). Both have only one charset. Neither matches the one passed to _XomGetFontSetFromCharSet. (gdb) p font_set[0] $62 = {id = 0, charset_count = 1, charset_list = 0x80910d8, font_data_count = 1, font_data = 0x80916b0, font_name = 0x8091ea0 "-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso88 59-15", info = 0x0, font = 0x80919c0, side = XlcGL, is_xchar2b = 0, substitute_num = 1, substitute = 0x80916d0, vpart_initialize = 0, vmap_num = 0, vmap = 0x80916f0, vrotate_num = 1, vrotate = 0x8091700} (gdb) p font_set[1] $63 = {id = 1, charset_count = 1, charset_list = 0x80910a8, font_data_count = 1, font_data = 0x8091720, font_name = 0x8091edd "-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso88 59-15", info = 0x0, font = 0x8091c30, side = XlcGR, is_xchar2b = 0, substitute_num = 0, substitute = 0x8091740, vpart_initialize = 0, vmap_num = 0, vmap = 0x8091750, vrotate_num = 0, vrotate = 0x0} (gdb) p *font_set[0].charset_list $72 = 0x8084848 (gdb) p *font_set[1].charset_list $73 = 0x8082698 (gdb) p charset $64 = 0x8081e80 (gdb) p *charset $65 = {name = 0x807f238 "ISO8859-1:GL", xrm_name = 1, encoding_name = 0x807f108 "ISO8859-1", xrm_encoding_name = 2, side = XlcGL, char_size = 1, set_size = 94, ct_sequence = 0x807f245 "\e(B", string_encoding = 1, udc_area = 0x0, udc_area_num = 0, source = CSsrcStd} (gdb) I'm not really sure what to do with this information. Mark. ___ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel
Re: [PATCH] fontmisc.h
On Fri, 28 Jan 2005, Jeff Chua wrote: The latest CVS can't compile bdfread.c Attached is a patch to make it work on gcc version 2.95.3 20010315. gcc -c -ansi -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wundef -I../../../include/fonts -I../include -I../../.. -I../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DBDFFORMAT -DPCFFORMAT -DSNFFORMAT -O2 -fno-strength-reduce bdfread.c -o unshared/bdfread.o ... bdfread.c:482: parse error before `;' bdfread.c:291: label `BAILOUT' used but not defined bdfread.c: At top level: bdfread.c:490: parse error before `->' bdfread.c:491: warning: type defaults to `int' in declaration of `i' bdfread.c:491: warning: data definition has no type or storage class bdfread.c:492: parse error before `for' bdfread.c:512: parse error before `->' make[4]: *** [bdfread.o] Error 1 make[4]: Leaving directory `/v6/src2/xfree86/xc/lib/font/bitmap' I've already fixed that. You should probably subscribe to cvs-commit. Marc. +--+---+ | Marc Aurele La France | work: 1-780-492-9310 | | Computing and Network Services | fax:1-780-492-1729 | | 352 General Services Building | email: [EMAIL PROTECTED] | | University of Alberta +---+ | Edmonton, Alberta | | | T6G 2H1 | Standard disclaimers apply| | CANADA | | +--+---+ XFree86 developer and VP. ATI driver and X server internals. ___ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel