nanogui: pcf fonts


Previous by date: 11 Apr 2007 19:31:34 +0100 pcf fonts, Yan Seiner
Next by date: 11 Apr 2007 19:31:34 +0100 Re: How to start using microwindows, Greg Haerr
Previous in thread: 11 Apr 2007 19:31:34 +0100 pcf fonts, Yan Seiner
Next in thread: 11 Apr 2007 19:31:34 +0100 Re: pcf fonts, Yan Seiner

Subject: Re: [nanogui] pcf fonts
From: "Greg Haerr" ####@####.####
Date: 11 Apr 2007 19:31:34 +0100
Message-Id: <051c01c77c67$737dd2d0$0300a8c0@RDP>

Yan -

In the error record below, it appears that NXLIB and nano-X
have loaded the font, but TCL/TK is complaining.  This could be
a return value.  In any case, this is a pretty minor error, do  you
have any graphics yet?

I did see a bug report for PCF fonts on big endian machines,
let me know I can send you it.  You might try editing fonts.dir
and using the uncompressed cursur.pcf, just to eliminate one
more issue.

Regards,

Greg


: I've got Tcl/Tk running after a fasion, but it cannot find the cursor
font.
:
: I've got PCF font support built-in, I've put cursor.pcf.gz everywhere that
I can think of, and it's still failing.
:
: This is the entire output of the program:
:
: root:/bin/hv> DISPLAY=:0 wish /bin/hv/hv
http://127.0.0.1/cgi-bin/index.php
: nx11: display bpp = 16, bits_per_rgb 6
: XSetLocaleModifiers called
: nxTranslateEventMask no handler for event mask (00c1807f): 16 22 23
: XInternAtom Comm 0
: XInternAtom InterpRegistry 0
: XInternAtom TK_APPLICATION 0
: XGrabServer called
: XChangeProperty InterpRegistry
: XUngrabServer called
: XChangeProperty TK_APPLICATION
: WARNING: can't find package Img
: WARNING: can't find package sqlite3
: XInternAtom MULTIPLE 0
: XInternAtom INCR 0
: XInternAtom TARGETS 0
: XInternAtom TIMESTAMP 0
: XInternAtom TEXT 0
: XInternAtom COMPOUND_TEXT 0
: XInternAtom TK_WINDOW 0
: XInternAtom CLIPBOARD 0
: XInternAtom UTF8_STRING 0
: fnt_createfont: /usr/lib/X11/fonts/misc/cursor.pcf.gz,0 not found
: XLoadFont('cursor') = '/usr/lib/X11/fonts/misc/cursor.pcf.gz' [0]
: nxTranslateEventMask no handler for event mask (00c1807f): 16 22 23
: nxTranslateEventMask no handler for event mask (00c1807f): 16 22 23
: nxTranslateEventMask no handler for event mask (00c1807f): 16 22 23
: nxTranslateEventMask no handler for event mask (00c1807f): 16 22 23
: Error in startup script: couldn't load cursor font
:     (default value for "-cursor" in widget ".toolbar.entry.entry")
:     invoked from within
: "::entry .toolbar.entry.entry"
:     ("eval" body line 1)
:     invoked from within
: "eval [linsert $args 0 ::entry]"
:     (procedure "::hv3::entry" line 5)
:     invoked from within
: "::hv3::entry ${win}.entry"
:     (procedure "::hv3::locationentry::Snit_constructor" line 9)
:     invoked from within
: "::hv3::locationentry::Snit_constructor ::hv3::locationentry
::hv3::locationentry::Snit_inst1 .toolbar.entry .toolbar.entry"
:     ("eval" body line 1)
:     invoked from within
: "eval [linsert $arglist 0  ${type}::Snit_constructor $type $selfns
$instance $instance]"
:     (procedure "RT.ConstructInstance" line 9)
:     invoked from within
: "RT.ConstructInstance $type $selfns $name $args"
:     (procedure "::snit::RT.widget.typemethod.create" line 53)
:     invoked from within
: "::snit::RT.widget.typemethod.create ::hv3::locationentry .toolbar.entry"
:     ("uplevel" body line 1)
:     invoked from within
: "uplevel 1 $command $args"
:     invoked from within
: "::hv3::locationentry .toolbar.entry"
:     (procedure "gui_build" line 8)
:     invoked from within
: "gui_build     ::hv3::G"
:     (procedure "main" line 24)
:     invoked from within
: "main http://127.0.0.1/cgi-bin/index.php"
:     ("eval" body line 1)
:     invoked from within
: "eval [concat main $argv]"
:     (file "/bin/hv/hv3_main.tcl" line 1387)
:     invoked from within
: "source /bin/hv/hv3_main.tcl"
:     (file "/bin/hv/hv" line 2)
: nxTranslateEventMask no handler for event mask (00c1807f): 16 22 23
: XSetErrorHandler called
: root:/bin/hv> nano-X: client closed socket: 6
:
: strace says:
:
: open("/usr/lib/X11/fonts/misc/fonts.dir", O_RDONLY) = 4
: fstat64(4, {st_mode=S_IFREG|0644, st_size=13396, ...}) = 0
: old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2aac3000
: read(4, "171\n6x12.pcf.gz -misc-fixed-medi"..., 4096) = 4096
: read(4, "mal--12-120-75-75-c-60-iso8859-4"..., 4096) = 4096
: read(4, "-240-ksc5601.1987-0\njiskan16.pcf"..., 4096) = 4096
: close(4)                                = 0
: munmap(0x2aac3000, 4096)                = 0
: write(3, "?\0\30\0\377\3\0\0\0\0\0\0\0\0\0\0\20\0\0\0\20\0\0\000"..., 72)
= 72
: read(3, fnt_createfont: /usr/lib/X11/fonts/misc/cursor.pcf.gz,0 not found
: "5\0", 2)                       = 2
: read(3, "\0\0\0\0", 4)                  = 4
: write(1, "XLoadFont(\'cursor\') = \'/usr/lib/"..., 66XLoadFont('cursor') =
'/usr/lib/X11/fonts/misc/cursor.pcf.gz' [0]
: ) = 66
:
: root:/bin/hv> ls /usr/lib/X11/fonts/misc/cursor.pcf.gz
: /usr/lib/X11/fonts/misc/cursor.pcf.gz
: root:/bin/hv> ls -l /usr/lib/X11/fonts/misc/cursor.pcf.gz
: -rw-r--r--    1 1000     1000         5094 Oct  2  2006
/usr/lib/X11/fonts/misc/cursor.pcf.gz
:
:
:
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
:
:


Previous by date: 11 Apr 2007 19:31:34 +0100 pcf fonts, Yan Seiner
Next by date: 11 Apr 2007 19:31:34 +0100 Re: How to start using microwindows, Greg Haerr
Previous in thread: 11 Apr 2007 19:31:34 +0100 pcf fonts, Yan Seiner
Next in thread: 11 Apr 2007 19:31:34 +0100 Re: pcf fonts, Yan Seiner


Powered by ezmlm-browse 0.20.