Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ghostlady on Sat 24/06/2006 23:20:33

Title: TTF Font with French Accents
Post by: Ghostlady on Sat 24/06/2006 23:20:33
Does anyone know where I can find a ttf font with french accents that I can import into the game?Ã,  I've tried the CNTRL Number and the copy & paste route, but it crashes the game with an error message complaining about the font.
Title: Re: TTF Font with French Accents
Post by: GarageGothic on Sun 25/06/2006 00:24:12
Which accents do you need specifically? é, è, ê and even ç showed up fine for me using the Verdana font.
Title: Re: TTF Font with French Accents
Post by: Ghostlady on Sun 25/06/2006 02:50:10
What version of AGS are you using?  I imported the Verdana font.Ã,  This sentence shows the accent:

Que désirez-tu, mon enfant?

This is the error I am getting:

(http://www.mysterymanor.net/junk/error.jpg)
Title: Re: TTF Font with French Accents
Post by: Gilbert on Sun 25/06/2006 06:33:23
I think these characters can only show up if you use a translation (basic language of the game can't contain such codes > 127), don't know if this was changed though.
Title: Re: TTF Font with French Accents
Post by: GarageGothic on Sun 25/06/2006 08:02:20
For me it shows up exactly as it should when using Verdana on the latest AGS beta, RC2a. I'm just using the Display function, so apparently it's not necessary to use translation for basic accents like these (however it would be for other foreign characters).

Edit: Looking at your error message, are you sure you've set the NormalFont/SpeechFont to Verdana? From the error message it seems that it's trying to use a SCI font.
Title: Re: TTF Font with French Accents
Post by: Gilbert on Sun 25/06/2006 10:17:26
It depends on what ASCII codes the characters are using, if they're above 127 it's possible that they can't be displayed without using a translation.
Title: Re: TTF Font with French Accents
Post by: Ghostlady on Sun 25/06/2006 15:04:01
QuoteLooking at your error message, are you sure you've set the NormalFont/SpeechFont to Verdana? From the error message it seems that it's trying to use a SCI font.

I wondered about that too????Ã,  In the game script, within the game-start function, I have SetNormalFont(4) and (4) is where I imported the Verdana font.Ã, 

Now this is bizarre.Ã,  I tried an experiment.Ã,  I did a display, and the accent shows up.Ã,  Where I am trying to use it is within a gui with the Say Special function and that is where I get the error.


Gui:
(http://www.mysterymanor.net/junk/agssample01.jpg)

Display:
(http://www.mysterymanor.net/junk/agssample02.jpg)
Title: Re: TTF Font with French Accents
Post by: GarageGothic on Sun 25/06/2006 15:24:36
But the font on the GUI is obviously not Verdana!

Is this your own Say function? If so, you should set the SetLabelFont for the GUI label to use font 4. If it's the internal speech on custom GUI function, you need to SetSpeechFont(4) as well (or Game.Speechfont = 4 if you use new scripting).

Edit: Strangely enough the GUI font doesn't look like a SCI font either. It has obvious antialiasing, so it must be TTF.
Title: Re: TTF Font with French Accents
Post by: Ghostlady on Sun 25/06/2006 15:35:08
Ahhh, this is what I needed:Ã,  SetSpeechFont(4)

Thank you!!!