[ 4 posts ]  Reply to topicPost new topic 
Author Message
 [us]
 Post subject: Help drawing Ê with Game Maker Studio's font_add_sprite
PostPosted: Sun Nov 20, 2016 5:39 am 
User avatar
Your local psychic.
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

I'm having some difficulty getting the letter Ê to display properly.

In that it doesn't. At all.

I'm trying to make the game display the phrase "Raison d'Être" but as of right now it only displays "Raison d'tre" which is not how it should work.

I have my sprite sheet set up correctly based on the UTF8 map Game Maker allegedly uses, and yet the letter refuses to display.

Any idea what's causing this?

I'm using the most recent version of Game Maker Studio: Professional.

_________________
Zero Kirby, your local psychic. Check out my game reviews! Latest review: The Legend of Zelda: Breath of the Wild

Falcon Punch is the result of the Sun heating fists. It drives the Blue Falcon. Heating causes destruction of water into the pain, where it then hurts, creating rain. Rain creates flowing water in tears, which can then be converted into other forms through more pain.


scaled image
Mario's Sticker Stage - Finished adding Jump Stickers!, 26%
 
Top
Offline 
 User page at mfgg.net
 
 [es]
 Post subject: Re: Help drawing Ê with Game Maker Studio's font_add_sprite
PostPosted: Sun Nov 20, 2016 10:23 am 
User avatar
I'm just a little adorable kitty :3
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

AFAIK, any letter with a accent or a symbol above will not display using font_add_sprite. You need to use font_add_sprite_ext and set the map there.

Syntax: [ Download ] [ Hide ]
Using gml Syntax Highlighting
font_add_sprite_ext(spr_font,"0123456789", false, 0)


EDIT: Fixed something :V

_________________
Image ImageImageImageImageImageImage Image
~ Supernova / Drawerkirby (2) / Gato / Neweegee (2) (3) ~
"shy guys are wall plugs confirmed" - Vitiman on Club Saturn Ex
Image
 
Top
Offline 
 User page at mfgg.net
 
 [at]
 Post subject: Re: Help drawing Ê with Game Maker Studio's font_add_sprite
PostPosted: Sun Nov 20, 2016 11:31 am 
Cliax Codec X Splatoon
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
[*]
Looks like GM has no functions dedicated to changing a font's range.
I guess your best bet would be to use font_add_sprite_ext as Gatete suggested, as it allows you set up all the characters.

Alternatively, you could use font_replace and set the font range in a font you create before compile time, though I didn't test this so I'm not sure it works.

_________________
Image

Cliax Codec is a combination of top-down and third-person shooter. The gameplay will blend platforming, puzzle and shmup elements together to create a unique gameplay experience. You will take control of four playable characters which rise against a team that seemingly wants to take over the world - but are their motives really that cliché, or are there deeper motives behind their actions?

Currently designing Chapter 1-6, 5%

GOTM titles
Spoiler:
Fan Art
Spoiler:
 
Top
Offline 
 User page at mfgg.net
 
 [us]
 Post subject: Re: Help drawing Ê with Game Maker Studio's font_add_sprite
PostPosted: Sun Nov 20, 2016 5:03 pm 
User avatar
Your local psychic.
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

Ugh, I reaaaally didn't want to use the _ext function but I guess I'll have to, huh.

Well, thanks anyway.

_________________
Zero Kirby, your local psychic. Check out my game reviews! Latest review: The Legend of Zelda: Breath of the Wild

Falcon Punch is the result of the Sun heating fists. It drives the Blue Falcon. Heating causes destruction of water into the pain, where it then hurts, creating rain. Rain creates flowing water in tears, which can then be converted into other forms through more pain.


scaled image
Mario's Sticker Stage - Finished adding Jump Stickers!, 26%
 
Top
Offline 
 User page at mfgg.net
 
« Previous topic | Next topic »
Display posts from previous:  Sort by  
 [ 4 posts ]  Reply to topicPost new topic 


Who is online

Users browsing this topic: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group