I need a box-drawing font (or a font editor(

I need a box-drawing font (or a font editor(

Post by Norm Dresne » Mon, 07 Feb 2000 04:00:00



Because I'm porting a program that originally ran under MS-DOS (sort-of, but
that's a long, off-topic story) on a PC, I really need to be able to display
what in the PC-world are called the line-drawing (or box-drawing) characters
within an xterm window.  It's easy from a text-terminal because they are in
the VGA-card's native character set, but the X-Window fonts don't include
these characters, though they include a large number of "foreign" language
characters which my application doesn't need.

The simplest way to do the porting is to find an X-Window font that includes
the usual 32-127 characters plus an approximation to the box-drawing set on
the VGA card.  But I couldn't find -- in the reasonably complete load from
RH 5.2 -- any fonts that met these requirements.

If I can't do this, then the next simplest way to do this is to take an
existing font and replace some of the characters I don't need (and won't
ever need -- this is an embedded application, not mass-market software) and
edit the font to add the characters I need.  But I haven't been able to find
a font-editor either.

All suggestions (or solutions) are welcome.

Thanks
    Norm

 
 
 

I need a box-drawing font (or a font editor(

Post by Norm Dresne » Mon, 07 Feb 2000 04:00:00





> >The simplest way to do the porting is to find an X-Window font that
includes
> >the usual 32-127 characters plus an approximation to the box-drawing set
on
> >the VGA card.  But I couldn't find -- in the reasonably complete load
from
> >RH 5.2 -- any fonts that met these requirements.

> Try xfd -fn fixed, the box drawing characters are there.

    Well, no.  The fixed font includes a bunch of identical characters, each
of which looks like a small black box.  The VGA box-drawing characters
include things with single and double lines in various directions to allow
drawing "all kinds of" outlined boxes.  The fixed font might be made to
work, but it's definitely not as elegant and the original

    Norm

 
 
 

I need a box-drawing font (or a font editor(

Post by Juergen Hein » Mon, 07 Feb 2000 04:00:00







>> >The simplest way to do the porting is to find an X-Window font that
>includes
>> >the usual 32-127 characters plus an approximation to the box-drawing set
>on
>> >the VGA card.  But I couldn't find -- in the reasonably complete load
>from
>> >RH 5.2 -- any fonts that met these requirements.

>> Try xfd -fn fixed, the box drawing characters are there.

>    Well, no.  The fixed font includes a bunch of identical characters, each
>of which looks like a small black box.  The VGA box-drawing characters
>include things with single and double lines in various directions to allow
>drawing "all kinds of" outlined boxes.  The fixed font might be made to
>work, but it's definitely not as elegant and the original

Never content, eh 8-) ... but okay, signle lines are there but not the
double ones, yes. Try a search on "font editor" on http://freshmeat.net,
as there are quite some font editors for X11 available.

Cheers,
Juergen

--
\ Real name     : Jrgen Heinzl                 \       no flames      /

 
 
 

I need a box-drawing font (or a font editor(

Post by David Wrag » Mon, 07 Feb 2000 04:00:00



> >The simplest way to do the porting is to find an X-Window font that includes
> >the usual 32-127 characters plus an approximation to the box-drawing set on
> >the VGA card.  But I couldn't find -- in the reasonably complete load from
> >RH 5.2 -- any fonts that met these requirements.

> Try xfd -fn fixed, the box drawing characters are there.
> [...]

This might work now on your machine, but is liable to stop working in
the near future. What does xfd tell you that fixed expands to? In
particular, what does the full name have in the registry/encoding
field?

On a properly encoding-aware installation of X (e.g. XFree86 3.9.x),
the encoding for fixed may be something like iso8859-1, which doesn't
have the box drawing characters. If you want these, you have to
specify the registry as iso10646 and use the Unicode encodings for the
box drawing characters.

David Wragg

 
 
 

I need a box-drawing font (or a font editor(

Post by T.E.Dicke » Tue, 08 Feb 2000 04:00:00



>     Well, no.  The fixed font includes a bunch of identical characters, each
> of which looks like a small black box.  The VGA box-drawing characters
> include things with single and double lines in various directions to allow
> drawing "all kinds of" outlined boxes.  The fixed font might be made to
> work, but it's definitely not as elegant and the original

vt100's (and kindred) don't do double-line characters.

--
Thomas E.*ey

http://www.veryComputer.com/

 
 
 

I need a box-drawing font (or a font editor(

Post by T.E.Dicke » Tue, 08 Feb 2000 04:00:00



> On a properly encoding-aware installation of X (e.g. XFree86 3.9.x),
> the encoding for fixed may be something like iso8859-1, which doesn't
> have the box drawing characters. If you want these, you have to
> specify the registry as iso10646 and use the Unicode encodings for the
> box drawing characters.

no: besides being overkill, the alternate character set that has the
line-drawing characters need not be Unicode.  xterm works fine either way.

--
Thomas E.*ey

http://www.veryComputer.com/

 
 
 

I need a box-drawing font (or a font editor(

Post by Norm Dresne » Thu, 10 Feb 2000 04:00:00


VT100's don't do some other things that are available using alternate
fonts -- like Japanese kana.  I really don't care what a VT100 does or
doesn't do. I said that I needed to do this in an xterm window under Linux!
    Norm



> >     Well, no.  The fixed font includes a bunch of identical characters,
each
> > of which looks like a small black box.  The VGA box-drawing characters
> > include things with single and double lines in various directions to
allow
> > drawing "all kinds of" outlined boxes.  The fixed font might be made to
> > work, but it's definitely not as elegant and the original

> vt100's (and kindred) don't do double-line characters.

> --
> Thomas E.*ey

> http://www.veryComputer.com/

 
 
 

I need a box-drawing font (or a font editor(

Post by T.E.Dicke » Fri, 11 Feb 2000 04:00:00



> VT100's don't do some other things that are available using alternate
> fonts -- like Japanese kana.  I really don't care what a VT100 does or
> doesn't do. I said that I needed to do this in an xterm window under Linux!

man xterm:

     The xterm program is a terminal emulator for  the  X  Window
     System.  It provides DEC VT102 and Tektronix 4014 compatible
     terminals for programs that  can't  use  the  window  system
     directly.   If the underlying operating system supports ter-
     minal resizing capabilities (for example, the SIGWINCH  sig-
     nal  in  systems  derived  from  4.3bsd), xterm will use the
     facilities to notify programs running in the window whenever
     it is resized.

(you can either use the line-drawing characters as they're designed to work
in vt100 convention, or hardcode assignments against a specific font - but
it helps to know which you intend to do).

--
Thomas E.*ey

http://www.veryComputer.com/

 
 
 

I need a box-drawing font (or a font editor(

Post by wo.. » Tue, 15 Feb 2000 04:00:00



>      System.  It provides DEC VT102 and Tektronix 4014 compatible

Yeah... why doesn't he go for the 4014? (-:

SCNR!
--

PGP fingerprint = 06 5F 66 B3  2A AD 7D 2D  B7 19 67 3C  95 A7 9D AF
"Ohhhhhhhh!", she cried out, "OOOOOOHHHHHMIGOOOOD!"
"I'm sorry", the lawyer said, "but that's just my usual hourly fee."

 
 
 

I need a box-drawing font (or a font editor(

Post by T.E.Dicke » Wed, 16 Feb 2000 04:00:00




>>      System.  It provides DEC VT102 and Tektronix 4014 compatible
> Yeah... why doesn't he go for the 4014? (-:

he's welcome to try (but the font support is a little different ;-)

Quote:> SCNR!

?

--
Thomas E.*ey

http://www.veryComputer.com/

 
 
 

I need a box-drawing font (or a font editor(

Post by Jonathan Buzza » Wed, 16 Feb 2000 04:00:00




Quote:> Because I'm porting a program that originally ran under MS-DOS (sort-of, but
> that's a long, off-topic story) on a PC, I really need to be able to display
> what in the PC-world are called the line-drawing (or box-drawing) characters
> within an xterm window.  It's easy from a text-terminal because they are in
> the VGA-card's native character set, but the X-Window fonts don't include
> these characters, though they include a large number of "foreign" language
> characters which my application doesn't need.

> The simplest way to do the porting is to find an X-Window font that includes
> the usual 32-127 characters plus an approximation to the box-drawing set on
> the VGA card.  But I couldn't find -- in the reasonably complete load from
> RH 5.2 -- any fonts that met these requirements.

Hum, can't have looked that hard. Try installing DOSemu on my Debian system
this introduces the following files

    /usr/X11R6/lib/X11/fonts/misc/vga.pcf.gz
    /usr/X11R6/lib/X11/fonts/misc/vga11x9.pcf.gz

These are of course two vga X11 fonts as used by xdos. These won't work in
an xterm, under which you will *never* get the double line characters.

However if you only want the program to run under X11, then you could use
these fonts to write a DOS screen emulation library in Xlib. A starting
point would be DOSemu again.

JAB.

--

Northumberland, United Kingdom.       Tel: +44(0)1661-832195

 
 
 

1. I need a box-drawing font (or a font editor)

Because I'm porting a program that originally ran under MS-DOS (sort-of, but
that's a long, off-topic story) on a PC, I really need to be able to display
what in the PC-world are called the line-drawing (or box-drawing) characters
within an xterm window.  It's easy from a text-terminal because they are in
the VGA-card's native character set, but the X-Window fonts don't include
these characters, though they include a large number of "foreign" language
characters which my application doesn't need.

The simplest way to do the porting is to find an X-Window font that includes
the usual 32-127 characters plus an approximation to the box-drawing set on
the VGA card.  But I couldn't find -- in the reasonably complete load from
RH 5.2 -- any fonts that met these requirements.

If I can't do this, then the next simplest way to do this is to take an
existing font and replace some of the characters I don't need (and won't
ever need -- this is an embedded application, not mass-market software) and
edit the font to add the characters I need.  But I haven't been able to find
a font-editor either.

All suggestions (or solutions) are welcome.

Thanks
    Norm

2. updating kernel

3. Need an icon font editor that handles multiple fonts per file

4. Setting up dual boot w/ XP & RH 8.0 using LILO problems

5. FONTS FONTS AND MORE FONTS

6. Cannot get SciLab started on my MkLinux box

7. FONTS FONTS FONTS... LOTS OF THEM!!!!!!!

8. Mouse dead under kernel 2.6.10

9. aixterm font for vt100 line draw characters

10. Line drawing characters missing from RedHat 8.0 linux console font/termio?

11. GNOME install: runs ok, but fonts are not drawn

12. Using Corel Draw 3.0 ATM fonts in Ghostscript?

13. Draw rotated font using qt2 graphic libraries