[Cuis] Fixed-Width Font

Juan Vuletich juan at jvuletich.org
Wed Jul 29 09:54:52 CDT 2015


Hi Dan,

I looked for it in old stuff I haven't touched in several years, and 
found it. Glyph rendering is done by FreeType. 
https://www.dropbox.com/sh/9d5xi3x2lvtrtum/AABy17XMTRmciA44ysM-vuxza?dl=0

This original ran on the Mac I had by then, but with the VM I added, it 
seems to work ok on Windows. Anyway, there are no guarantees. I didn't 
try to import the files generated, and for sure you'd need to add glyphs 
for 128, 129, 130 and 131, to follow the Cuis convention.

BTW, I suggest using free fonts, that you can share without concern. 
DejaVu Sans is a good option. Inconsolata is just great. There are 
several more free code-oriented monospaced fonts out there.

Cheers,
Juan Vuletich

On 7/28/2015 7:00 PM, Dan Norton wrote:
> When the glyphs for the Cuis default font (DejaVu) or those for DejaVu Sans are filed out and
> then examined using Paint, it is obvious that they are of much higher quality than those
> produced by ImageMagick. The height is exactly right, as can be seen at ascii 129, 132, and
> 133. They are the right size and crisp when displayed. This is the quality we should have for a
> fixed-width font. How were these .bmp files produced?
>
> On 25 Jul 2015 at 21:41, Dan Norton wrote:
>
>> 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
>>
>> Attachments:
>>    C:\Cuis\CourierExample2.zip
>
>
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>





More information about the Cuis mailing list