[comp.windows.x] contrib: fonts/utils/bdf2vf

casey@lll-crg.llnl.gov (Casey Leedom) (01/13/89)

[[I forgot about the man page in my first try and didn't fully remove my
new names for the font conversion utilities - sorry]]

  On a quick side note, bdf2vf, mac2bdf, and vf2bdf should all be renamed
to be consistent with bdftosnf, replacing the "2"s with "to"s.  I've done
that here, but I'll use their distribution names for these postings.

#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create:
#	fonts/utils/bdf2vf/Imakefile
#	fonts/utils/bdf2vf/bdf2vf.man
# This archive created: Thu Jan 12 21:40:56 1989
export PATH; PATH=/bin:/usr/bin:$PATH
if test -f 'fonts/utils/bdf2vf/Imakefile'
then
	echo shar: "will not over-write existing file 'fonts/utils/bdf2vf/Imakefile'"
else
cat << \SHAR_EOF > 'fonts/utils/bdf2vf/Imakefile'
           SRCS = bdf2vf.c dumpvfont.c
           OBJS = bdf2vf.o dumpvfont.o

ComplexProgramTarget(bdf2vf)
SHAR_EOF
fi
if test -f 'fonts/utils/bdf2vf/bdf2vf.man'
then
	echo shar: "will not over-write existing file 'fonts/utils/bdf2vf/bdf2vf.man'"
else
cat << \SHAR_EOF > 'fonts/utils/bdf2vf/bdf2vf.man'
.TH BDF2VF 1 "1st March 1988"
.AT 3
.SH NAME
bdf2vf \- convert BDF format to vfont format
.SH SYNOPSIS
.B bdf2vf
vffile < bdffile
.SH DESCRIPTION
.I Bdftovf
converts the BDF file on stdin to vfont format.
.SH DIAGNOSTICS
No error recovery in parser, just quits.
.SH BUGS
Vfont format can only handle glyphs smaller than 127 per side.
Sun vfont glyphs is 16-bit word aligned. I haven't provided
for this. Hack it yourself.
.SH AUTHOR
Ken Yap
SHAR_EOF
fi
exit 0
#	End of shell archive

*** fonts/utils/bdf2vf/dumpvfont.c-dist	Thu Jan  5 04:01:04 1989
--- fonts/utils/bdf2vf/dumpvfont.c	Thu Jan  5 04:00:39 1989
***************
*** 2,7 ****
--- 2,11 ----
  #include	<vfont.h>
  #include	<sys/types.h>
  
+ #ifndef VFONT_MAGIC
+ #define	VFONT_MAGIC	0436
+ #endif
+ 
  #define		NCHARS	256
  
  struct header	vhdr;