nanogui: Thread: pcf fonts


[<<] [<] Page 1 of 1 [>] [>>]
Subject: pcf fonts
From: Michael Bogaerts ####@####.####
Date: 3 Mar 2006 07:57:59 +0000
Message-Id: <7.0.0.16.2.20060303085122.028509b8@turnhout.tokheim.com>

Hi,

I had the same problem here, but i still don't have a solution for it.

although i'm not sure if its the font tools or the nanox. becuz i 
converted both a courier and a courier bold ttf to bdf and then to pcf

the normal cour worked fine but when using the bold variant the nanox 
segfaults.

what i did see is that when opening the font in a font viewer app the 
size does not match the size supplied while generatintg the font
maybe that has something to do with it.

-=Michael=-




To: "tj" ####@####.#### ####@####.####
Subject: Re: [nanogui] Font problems

: But, I have beeen playing around and I try to load a .bdf and get:
: fnt_createfont: /home/dufus/nano-X-src/testFontSize/luxisb.bdf,1 not found

Nano-X can't load .bdf fonts, they need to be converted to
.fnt or .pcf format.


: Also what purpose does the GR_LOGFONT serve? can .pcf fonts be resized,
etc.

No, .pcf files are fixed bitmap images.  GR_LOGFONT allows
programmatic selection of fonts by requesting attributes, rather
than knowing a specific font filename.


:
: I have also had a problem with .pcf file created from ttf file
: segfaulting nano-X.
:
: Like, I down load a TTF file and run it through tt2bdf and the resultant
: .bdf through bdftopcf. But then when I load the pcf file, gip'ed or not,
: nano-X segfaults.

I'm not sure why this is yet, perhaps the .pcf font conversions
aren't working properly.  I'm not aware of any .pcf file from
the X11 distribution that won't work, however.  I assume
also you're running the CVS code, since some .pcf fixes
were added.

It would be nice to know whether these core dumps occur
on a desktop intel system, or instead only on your target.
We had some endian issues previously.


:
: I have discovered on thing though. Trying to under stand the X system's
: font system is enough to drive anybody back to the MS Windows world.

Agreed.

Regards,

Greg


---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####
Subject: Re: [nanogui] pcf fonts
From: tj ####@####.####
Date: 3 Mar 2006 19:54:28 +0000
Message-Id: <44089F25.8080200@comcast.net>

Exact same symptoms here. ttf2bdf->bdftopcf for nano-X works ok with a 
few, but causes nano-X segfault on most.

What font viewer are you talking about???

tj

Michael Bogaerts wrote:

> Hi,
>
> I had the same problem here, but i still don't have a solution for it.
>
> although i'm not sure if its the font tools or the nanox. becuz i 
> converted both a courier and a courier bold ttf to bdf and then to pcf
>
> the normal cour worked fine but when using the bold variant the nanox 
> segfaults.
>
> what i did see is that when opening the font in a font viewer app the 
> size does not match the size supplied while generatintg the font
> maybe that has something to do with it.
>
> -=Michael=-
>
>
>
>
> To: "tj" ####@####.#### ####@####.####
> Subject: Re: [nanogui] Font problems
>
> : But, I have beeen playing around and I try to load a .bdf and get:
> : fnt_createfont: /home/dufus/nano-X-src/testFontSize/luxisb.bdf,1 not 
> found
>
> Nano-X can't load .bdf fonts, they need to be converted to
> .fnt or .pcf format.
>
>
> : Also what purpose does the GR_LOGFONT serve? can .pcf fonts be resized,
> etc.
>
> No, .pcf files are fixed bitmap images.  GR_LOGFONT allows
> programmatic selection of fonts by requesting attributes, rather
> than knowing a specific font filename.
>
>
> :
> : I have also had a problem with .pcf file created from ttf file
> : segfaulting nano-X.
> :
> : Like, I down load a TTF file and run it through tt2bdf and the 
> resultant
> : .bdf through bdftopcf. But then when I load the pcf file, gip'ed or 
> not,
> : nano-X segfaults.
>
> I'm not sure why this is yet, perhaps the .pcf font conversions
> aren't working properly.  I'm not aware of any .pcf file from
> the X11 distribution that won't work, however.  I assume
> also you're running the CVS code, since some .pcf fixes
> were added.
>
> It would be nice to know whether these core dumps occur
> on a desktop intel system, or instead only on your target.
> We had some endian issues previously.
>
>
> :
> : I have discovered on thing though. Trying to under stand the X system's
> : font system is enough to drive anybody back to the MS Windows world.
>
> Agreed.
>
> Regards,
>
> Greg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>

Subject: Re: [nanogui] pcf fonts
From: Michael Bogaerts ####@####.####
Date: 6 Mar 2006 08:02:25 +0000
Message-Id: <7.0.0.16.2.20060306085837.02887ec0@turnhout.tokheim.com>

KFontView, from fedora 4.


-=Michael=-


At 20:55 3/03/2006, tj wrote:
>Exact same symptoms here. ttf2bdf->bdftopcf for nano-X works ok with 
>a few, but causes nano-X segfault on most.
>
>What font viewer are you talking about???
>
>tj
>
>Michael Bogaerts wrote:
>
>>Hi,
>>
>>I had the same problem here, but i still don't have a solution for it.
>>
>>although i'm not sure if its the font tools or the nanox. becuz i 
>>converted both a courier and a courier bold ttf to bdf and then to pcf
>>
>>the normal cour worked fine but when using the bold variant the 
>>nanox segfaults.
>>
>>what i did see is that when opening the font in a font viewer app 
>>the size does not match the size supplied while generatintg the font
>>maybe that has something to do with it.
>>
>>-=Michael=-
>>
>>
>>
>>
>>To: "tj" ####@####.#### ####@####.####
>>Subject: Re: [nanogui] Font problems
>>
>>: But, I have beeen playing around and I try to load a .bdf and get:
>>: fnt_createfont: /home/dufus/nano-X-src/testFontSize/luxisb.bdf,1 not found
>>
>>Nano-X can't load .bdf fonts, they need to be converted to
>>.fnt or .pcf format.
>>
>>
>>: Also what purpose does the GR_LOGFONT serve? can .pcf fonts be resized,
>>etc.
>>
>>No, .pcf files are fixed bitmap images.  GR_LOGFONT allows
>>programmatic selection of fonts by requesting attributes, rather
>>than knowing a specific font filename.
>>
>>
>>:
>>: I have also had a problem with .pcf file created from ttf file
>>: segfaulting nano-X.
>>:
>>: Like, I down load a TTF file and run it through tt2bdf and the resultant
>>: .bdf through bdftopcf. But then when I load the pcf file, gip'ed or not,
>>: nano-X segfaults.
>>
>>I'm not sure why this is yet, perhaps the .pcf font conversions
>>aren't working properly.  I'm not aware of any .pcf file from
>>the X11 distribution that won't work, however.  I assume
>>also you're running the CVS code, since some .pcf fixes
>>were added.
>>
>>It would be nice to know whether these core dumps occur
>>on a desktop intel system, or instead only on your target.
>>We had some endian issues previously.
>>
>>
>>:
>>: I have discovered on thing though. Trying to under stand the X system's
>>: font system is enough to drive anybody back to the MS Windows world.
>>
>>Agreed.
>>
>>Regards,
>>
>>Greg
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ####@####.####
>>For additional commands, e-mail: ####@####.####
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####

Subject: pcf fonts
From: Yan Seiner ####@####.####
Date: 11 Apr 2007 18:00:35 +0100
Message-Id: <461D140F.4010505@seiner.com>

OK, I'm making progress, one error at a time....

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



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: ####@####.####
:
:

Subject: Re: [nanogui] pcf fonts
From: Yan Seiner ####@####.####
Date: 11 Apr 2007 19:47:58 +0100
Message-Id: <461D2CD0.7010402@seiner.com>

Greg Haerr wrote:
> 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.
>   
Hi Greg:

I've got this one figured out....

I'm now loading the fonts but Tcl/Tk is either hanging and/or segfaulting.

Even my little test case, a simple button, is still showing up as a 
completely dark rectangle.

Also, I can't seem to figure out how to get my keypad connected to 
Microwindows...

I don't have a keyboard; instead I have a keypad which injects 
keystrokes directly into the kernel's /dev/uniput system.

These should be picked up automagically by whatever app is running...  
For some reason the Microwindows tty input isn't seeing them....


[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.