Hi! everybody
I wanna my richeditor can read ASCII Art Text, as u know, ******* like using it to make document, the text in nfo files sometime is DOS/UNIX like font, but in my Chinese XP, it looks like unrecognizable character, how can I display it rightly in my editor?
dREAMtHEATER
Sorry, cannot make that reference in this forum.
I wanna my richeditor can read ASCII Art Text, as u know, ******* like using it to make document, the text in nfo files sometime is DOS/UNIX like font, but in my Chinese XP, it looks like unrecognizable character, how can I display it rightly in my editor?
dREAMtHEATER
Sorry, cannot make that reference in this forum.
dREAMtHEATER,
The solution depends on the fonts you have on your machine. If you have a TTF that displays the extended ASCII characters, set it as the font for your rich text editor.
Regards,
hutch@movsd.com
The solution depends on the fonts you have on your machine. If you have a TTF that displays the extended ASCII characters, set it as the font for your rich text editor.
Regards,
hutch@movsd.com
Hi! Hutch
I've tried every font in my machine, but no any font can dispaly it rightly, but when I use AsciiArtViewer it can show normally and it doesn't use any extra font in its resource, I think it use some special technology
In the attachment, it's AsciiArtViewer
dREAMtHEATER
I've tried every font in my machine, but no any font can dispaly it rightly, but when I use AsciiArtViewer it can show normally and it doesn't use any extra font in its resource, I think it use some special technology
In the attachment, it's AsciiArtViewer
dREAMtHEATER
The solution depends on the fonts you have on your machine. If you have a TTF that displays the extended ASCII characters, set it as the font for your rich text editor.
dREAMtHEATER,
Have you tried the fixed system fonts called OEM fonts. They are usually in a US/English windows version. It may do what you need.
Regards,
hutch@movsd.com
Have you tried the fixed system fonts called OEM fonts. They are usually in a US/English windows version. It may do what you need.
Regards,
hutch@movsd.com
An edit with the Terminal font does the job pretty well... (for the graphics in nfo-like files).
Hi Thomas
I've downloaded and installed the font you gave, but it still not work :(
I've downloaded and installed the font you gave, but it still not work :(
ASCII Art Text used the Ascii Code bigger than 128 to show beautiful text graphics under English system,and some other single-byte system. Double-byte system will treat the code as a half of local character,so you can see only a mess. The solution is some software which calls riched32.dll, that forces the program to avoid double-byte displaying in the system
I was having the same problem and I included the richedit from my U.S. version of xp and it worked fine
Even with the terminal font, you will not get 100% correct results
(depending on system locale and other things). You can get it to
look "mostly right", but a few chars will be wrong. One solution that
will work is to grab the 8x16 DOS font (preferably the one from
codepage 865, norwegian/danish as it displays correctly.)
At runtime you translate the bitpacked font data to a color bitmap with
the fore/background colors you want. The "rendering" of the ascii will
be a little more complicated than TextOut or using a edit control, but
the results should be worth it :).
I was going to code a viewer like this but never really got around doing
it. It's not that the code is very complicated, the most annoying part
will probably be dealing with the scrollbars ;).
(depending on system locale and other things). You can get it to
look "mostly right", but a few chars will be wrong. One solution that
will work is to grab the 8x16 DOS font (preferably the one from
codepage 865, norwegian/danish as it displays correctly.)
At runtime you translate the bitpacked font data to a color bitmap with
the fore/background colors you want. The "rendering" of the ascii will
be a little more complicated than TextOut or using a edit control, but
the results should be worth it :).
I was going to code a viewer like this but never really got around doing
it. It's not that the code is very complicated, the most annoying part
will probably be dealing with the scrollbars ;).