Page 2 of 2

Re: Text to .bmp

Posted: 2015-07-24T17:50:55-07:00
by fmw42
Try using Wordpad and not Notepad and select UTF-8 no BOM, if it has it.

Re: Text to .bmp

Posted: 2015-07-24T19:02:40-07:00
by 246246
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.
If your charset range is limited to 0x0000 - 0x00FF, that would be OK.

[EDIT]
At a quick check IM works fine whether the input text is latin-1 or UTF-8 without BOM.
dnorton 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.
I don't understand what kind of loop are you trying to do, but
dnorton 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.
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_Index

Re: Text to .bmp

Posted: 2015-07-24T20:38:27-07:00
by 246246
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 )
Your ALPHABET.TXT binary seems to be broken at 0x91 0x92 0x93 0x94. :D

Re: Text to .bmp

Posted: 2015-07-24T22:23:16-07:00
by snibgo
So it is. Thanks.