[fontdefs] difining " and ' with explicitly

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
zrrion the insect
Posts: 2411
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

[fontdefs] difining " and ' with explicitly

Post by zrrion the insect »

I have an explicit font that I have working for all characters that I will be using except for " and '
They are defined like this in my fontdefs:

Code: Select all

BigFont
{
	...
	" BFNT37
	...
	' BFNT42
	...
}
However, this results in: Missing string (unexpected end of file).
How are these characters meant to be defined with explicit font definitions?
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [fontdefs] difining " and ' with explicitly

Post by _mental_ »

Single quote doesn't require anything special but double quote character needs to be defined like this

Code: Select all

BigFont
{
   ...
   "\"" BFNT37
   ...
   ' BFNT42
   ...
}
User avatar
zrrion the insect
Posts: 2411
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

Re: [fontdefs] difining " and ' with explicitly

Post by zrrion the insect »

That does it thanks!
Post Reply

Return to “Scripting”