Re: Text to .bmp
Posted: 2015-07-24T17:50:55-07:00
Try using Wordpad and not Notepad and select UTF-8 no BOM, if it has it.
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=28091
If your charset range is limited to 0x0000 - 0x00FF, that would be OK.dnorton wrote:Took the new lines out, saved it from NotePad with encoding: ANSI, ran your convert and got what appears to be the desired glyphs, that is *without* anything prepended. Now I'll try to make a strike font out of it.
I don't understand what kind of loop are you trying to do, butdnorton wrote: Tried successively removing characters at the front until I lopped off the blank (ascii 32) but the prepended thing stubbornly remains. My Form class>>fromBinaryStream: has firstByte = 66.
Probably you would like to create a printable character list directly analyzing from the ttf font. It is too complex and not the topic of ImageMagick, but freetype2 will be your help. FT_Get_Char_Index returns 0 for ‘missing glyph’. See http://www.freetype.org/freetype2/docs/ ... Char_Indexdnorton wrote:I'm building a strike font to include not only ascii 32 to 127 but also extended ascii 128 to 155. These are printable characters (maybe not all in courier) but in some other monospaced font. I need the glyphs for these characters. The technique will be applied to other fonts beside courier.
Your ALPHABET.TXT binary seems to be broken at 0x91 0x92 0x93 0x94.snibgo wrote:There may be something funny in your text file. With a file that contains ASCII 32 to 256, plus a new-line every 32 characters (file http://snibgo.com/imforums/ALPHABET.TXT )