Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   showtext default font set? (https://forums.graalonline.com/forums/showthread.php?t=62894)

jake13jake 12-21-2005 08:38 AM

showtext default font set?
 
Well, I have a few questions about the showtext font. I already know that specifying no font uses the default font.
What I would like to know is:
1. Does it support font parameters like "fantasy", "serif", and "sans-serif"?
2. Can you embed fonts? (doubt it, and doubt Stefan would add it if I asked for it)

NicoX 12-21-2005 04:02 PM

Quote:

Originally Posted by jake13jake
Well, I have a few questions about the showtext font. I already know that specifying no font uses the default font.
What I would like to know is:
1. Does it support font parameters like "fantasy", "serif", and "sans-serif"?
2. Can you embed fonts? (doubt it, and doubt Stefan would add it if I asked for it)

You tell it a font to display, it displays that font. So in theory it should show everything you throw at it if you have the font in the first place.

Btw what means embed ? I belive you mean "emboss" ? If yes just use showtext twice. One on top of the other with a very slight difference.
And different colour - you'll probably want to make the showtext at the back darker. Light text on top of dark text.

NPC Code:

showtext 1,x,y,tempus sans itc,c,I am sexy;
showtext 2,x+.1, y+.1,tempus sans itc,c,I am sexy;
changeimgcolors 1,1,1,1,1;
changeimgcolors 2,0,0,0,1;


prozacboy666 12-21-2005 05:37 PM

showtext index,x,y,font,style,text; shows text at the given position with font and style
*just put it there for reference*

As far as I know, you can put any font in your options menu. The only problem is if other people dont have it. I dont know if it reset the value to your settings on your computer or it just wont show up..

NicoX 12-21-2005 05:41 PM

Quote:

Originally Posted by prozacboy666
showtext index,x,y,font,style,text; shows text at the given position with font and style
*just put it there for reference*

As far as I know, you can put any font in your options menu. The only problem is if other people dont have it. I dont know if it reset the value to your settings on your computer or it just wont show up..


Well I think it would show you new times roman or arial or something else if you dont have that Font. But I am not sure.

Skyld 12-21-2005 06:50 PM

Quote:

Originally Posted by NicoX
I belive you mean "emboss" ?

He does not mean "emboss", he means "embed". This means providing the font to the player's client if the client does not already have it, I believe.
Quote:

Originally Posted by NicoX
Well I think it would show you new times roman or arial or something else if you dont have that Font. But I am not sure.

If you do not have the font on your computer, it displays your system's default sans-serif font, I think.

Fry 12-21-2005 08:25 PM

And you meant specifying font families with 1, and no, you can't do this with Graal. I guess it'd be good if you could specify the file name of a font downloadable by the client.

ApothiX 12-21-2005 09:22 PM

Quote:

Originally Posted by Skyld
He does not mean "emboss", he means "embed". This means providing the font to the player's client if the client does not already have it, I believe.

I thought he meant change fonts multiple times in one string of text, could be mistaken though. (No, that's not possible without multiple showtext/showimg calls.)

Quote:

Originally Posted by Skyld
If you do not have the font on your computer, it displays your system's default sans-serif font, I think.

I thought it displayed the font you had picked in your options menu?

Skyld 12-21-2005 09:22 PM

Quote:

Originally Posted by ApothiX
I thought it displayed the font you had picked in your options menu?

It might do, I don't remember.

ApothiX 12-21-2005 09:28 PM

Quote:

Originally Posted by Skyld
It might do, I don't remember.

Me either, and my IP address isn't set on #gscript, so I can't test. *HINT HINT* :P

jake13jake 12-22-2005 04:20 AM

Ah, okay. So you can't do either. HTML supports both but the only browser that supports any kind of embedded fonts is IE. Embedded fonts might bring some copyright issues; I don't know how font licensing works exactly, but having default family fonts like sans-serif, serif, cursive and fantasy would be a pretty good idea in my opinion.

Damix2 12-22-2005 04:32 AM

Quote:

Originally Posted by ApothiX
Me either, and my IP address isn't set on #gscript, so I can't test. *HINT HINT* :P


fry or Chad mate =D

ApothiX 12-22-2005 05:09 AM

Quote:

Originally Posted by jake13jake
Ah, okay. So you can't do either. HTML supports both but the only browser that supports any kind of embedded fonts is IE. Embedded fonts might bring some copyright issues; I don't know how font licensing works exactly, but having default family fonts like sans-serif, serif, cursive and fantasy would be a pretty good idea in my opinion.

You can use whatever they have installed on their computer, I believe. (So all default Windows fonts should work for most people)

Quote:

Originally Posted by Damix2
fry or Chad mate =D

Blast these elusive people! My computer doesn't like IRC right now, so I'll have to wait until I get it fixed :(


All times are GMT +2. The time now is 06:32 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.