• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Printing Block Ascii to JApplet Screen

I'm creating a JApplet and i'm trying to print characters as seen here:
http://en.wikipedia.org/wiki/Image:ASCII_notepad_acidview_compare.gif

As shown on that wikipedia article if you open a file with such characters in notepad with font set to Terminal, all will display fine. However

If I'm passed in Graphics g;
.....
g.setFont( new Font("terminal", Font.PLAIN, 9));
g.drawString("    ÛÛÛÛÛÛÛ", 0, 0);

does not work.

Anyone have a clue? I've asked countless people and no one has a clue. Seems to be extremely difficult or rarely known ;x
0
cl0ckwork
Asked:
cl0ckwork
  • 2
1 Solution
 
hoomanvCommented:
> does not work.
what does make you feel its not working
0
 
StillUnAwareCommented:
You'll have to use unicode for the special characters:

String s = "a\u2589b";

here are the character listings:

http://www.unicode.org/charts/PDF/U2580.pdf
http://www.unicode.org/charts/PDF/U2500.pdf

and the page:

http://www.unicode.org/charts/symbols.html
0
 
cl0ckworkAuthor Commented:
Thank you very much StillUnaware, that site is very helpful!
0
 
StillUnAwareCommented:
glad to help
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now