Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!tuegate.tue.nl!rc3.urc.tue.nl!rcpt From: rcpt@rc3.urc.tue.nl (Piet Tutelaers) Newsgroups: comp.text.tex Subject: Re: bitmap to font Keywords: bitmap font conversion Message-ID: Date: 26 Jul 90 09:20:52 GMT References: <34476@ut-emx.UUCP> Sender: news@tuegate.tue.nl Lines: 46 allred@ut-emx.UUCP (Kevin L. Allred) writes: >Does anyone have tools to convert an arbitarty bitmap into a 1 >character font file (.pxl or .pk) with an associated .tfm file? This >would seem like an easy way for people without a postscript printer to >print out graphics. I don't have a tool that way but the other way. It (pk2bm) converts a character from a pkfont to a bitmap. With emTeX there is the program pkedit which can edit pkfonts. Perhaps somebody can write a program pkedit with a X11interface having possibilities to convert to/from bitmap's? I don't know if the source of pkedit is available, pk2bm is free! Here is what pk2bm can do: /* * NAME * pk2bm - create a bitmap from a TeX pkfont * SYNOPSIS: * pk2bm [-bh] [-W width] [-H height] -c char pkfont * DESCRIPTION * This program generates a bitmap (ASCII file) which can be used * to create X11 applications. The bitmap file consists of all * pixels of the specified character from the given pkfont. The * format is described in bitmap(X11). * * The pkfont is a packed fontfile generated by gftopk(TeX) from a * gffont. A gffont is the output of METAFONT a program to design fonts * in a device independant way. * * With the -b flag a bitmap is generated in which all set bits are * drawn as a `*' and all reset bits as a `.'. With the -h flag a * hexadecimal bitmap dump is generated. * * The -W and/or -H options can be used to create a bitmap of * respectivally height' pixels. The pk-bitmap will in * this case be centered according to these new dimensions. * * The output is written to the standard output. * SEE ALSO * METAFONT'', Donald Knuth. * The PKtype processor'', belonging to the METAFONTware. * bitmap(X11), gftopk(TeX), pktype(TeX) * AUTHOR * Piet Tutelaers * rcpt@urc.tue.nl */