<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Dan,<br>
<br>
The format saved by image writer is not (currently) supported in
Cuis, Squeak, etc. Maybe there is a command line option to tell
imageMagick to use a more standard bmp format. Or you can just save
in png. I opened them in Windows Paint, clicked on 'save' and then
Cuis was able to read them.<br>
<br>
Your xTables in the txt files are indeed wrong. For Courier12, the
width of the bmp file is around 1500 pixels. And in the xTable you
have entries calling pixels around x=2600. Impossible. Take a look
at the bmp you generated count the width used by each glyph. It is 7
pixels wide. Your xTable is multiples of 12...<br>
<br>
After fixing this 2 issues, I run your stuff and indeed it starts to
run. It looks like a bit more work is needed in the xTable, though.<br>
<br>
Cheers,<br>
Juan Vuletich<br>
<br>
On 7/24/2015 5:20 PM, Dan Norton wrote:
<blockquote cite="mid:55B29E13.29241.F06B25@dnorton.mindspring.com"
type="cite">
<title></title>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;"><br>
</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;">Encouraged by this, I have tried
cobbling a fixed-width StrikeFont from Courier New which
comes with Windows7. At this point, if some kind of
fixed-width smudges would appear then it would be progress.
Here's where I am:</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;"><br>
</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;">The immediate problem is an error:
'Unsupported format. Try
"Graphics-Files-Additional.pck.st".' which arises when
ImageReadWriter class>>formFromStream: examines the
.bmp file.</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;"><br>
</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;">Higher in the context, Form
class>>fromBinaryStream: has firstByte = 66 which I
mention because of the way the .bmp file was made. Here is
the process I used, from the bottom up:</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;"><br>
</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;">ImageMagick freeware produces the
glyphs but with something stubbornly prepended. The command
line is:</span></font><font face="Times New Roman"><span
style="font-size: 12pt;"><br>
convert -font \windows\fonts\cour.ttf -pointsize
12 <a class="moz-txt-link-abbreviated" href="mailto:label:@characters.txt">label:@characters.txt</a> courier12.bmp</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"><br>
</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;">Using NotePad, save characters.txt
with encoding: UTF-8.</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"><br>
</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;">Paste the character string onto a
NotePad</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"><br>
</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;">Copy the character string.</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"><br>
</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;">In a Cuis workspace print:</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"> str := String new
writeStream.</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"> (32 to: 255) do: [ :n |
str nextPut: n asCharacter]</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"> str contents.</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"><br>
</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;">Code package and files allegedly
for courier strike fonts are attached if you're interested.</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"><br>
</span></font></div>
<div align="left"><font face="Times New Roman"><span
style="font-size: 12pt;"> - Dan</span></font><br>
</div>
</blockquote>
<br>
</body>
</html>