Hidden Font Characters

Started by edmundito, Thu 21/04/2005 01:36:03

Previous topic - Next topic

edmundito

Puma, or someone:

I was wondering what the hidden characters for the AGS fonts are. For example, I screwed up on commenting the wrong script line and I ended up with the following message on the screen:  :P

That's right, I got a little face that looked like  :P, so I'd like to use that kind of stuff! I think it should be documented too. ;D

Gilbert

#1
Just open up the font file with say, Radiant's fontedit and you can check out all 128 characters in the SCI font (works also for AGS wfn fonts).

Rui 'Trovatore' Pires

But we can't export the font files that come with AGS... and they are not external (i.e., there ain't no file containing them)...
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Ashen

For the built-in AGS fonts, you can use StrSetChatAt () to see what characters acsii codes generate.
I.e.:
Code: ags

int charpos;
string disp;
while (charpos < 31) {
  StrFormat (disp, " ");
  StrSetCharAt (disp, 0, charpos);
  string pos;
  StrFormat (pos, " %d", charpos);
  StrCat (disp, pos);
  Display (disp);
  charpos ++;
}

31-128 are just the standard characters shown on the 'Fonts' window, so it's 1 - 30 that're the 'hidden' chars. Over 128 seems to be 'special' characters and keypresses that can't be displayed without crashing.
I know what you're thinking ... Don't think that.

Gilbert

You can't display characters with ASCII values > 127 directly.
You can only display them if you're using a translation and using a TTF. (SCI fonts don't support more than 128 characters)

SMF spam blocked by CleanTalk