[Cuis] Fixed-Width Font

Dan Norton dnorton at mindspring.com
Sat Jul 25 20:41:03 CDT 2015


Attached is a StrikeFont of Courier New 12. It's hacked - not polished by any means. It was 
made by:

Making "characters.txt" by printing in a Cuis workspace, copying to Notepad, and saving with 
encoding: ANSI.

This was input to ImageMagick to make a .png file.

The .png file was opened in Paint, then saved as a .bmp file.

The body of the .txt file was generated by:
(32 to: 257) collect: [ :ascii | ascii-32 * 7 ]  "note the 257 - needed to avoid index out of range"

The first three numbers in .txt were finagled to 12 15 5 (the last two anyway).

The font was installed by running:
StrikeFont installCourier.  "code in Courier.pck.st "

Text in the Text Editor pane was highlighted and the font changed to Courier 12 point. It 
looked much too small. Going back to Paint, the glyphs were selected and stretched 
vertically. The font was re-installed. The vertical distortion is probably obvious.

At least it's recognizable as Courier and it's fixed width. Files are attached.

 - Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CourierExample2.zip
Type: application/zip
Size: 10523 bytes
Desc: not available
URL: <http://jvuletich.org/pipermail/cuis_jvuletich.org/attachments/20150725/30c1a018/attachment-0004.zip>


More information about the Cuis mailing list