[Solved]SDL_TTF and ™
Moderator: Coders of Rage
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
[Solved]SDL_TTF and ™
It's not rendering for me. Why?
Last edited by RandomDever on Thu Aug 09, 2012 5:59 pm, edited 1 time in total.
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: SDL_TTF and ™
It probably doesn't support that character. Just draw a really small T and M.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
- superLED
- Chaos Rift Junior
- Posts: 303
- Joined: Sun Nov 21, 2010 10:56 am
- Current Project: Engine
- Favorite Gaming Platforms: N64
- Programming Language of Choice: C++, PHP
- Location: Norway
Re: SDL_TTF and ™
Or make an image of ™ and render that image as a symbol.
Only if you really can't find another way.
Only if you really can't find another way.
- bbguimaraes
- Chaos Rift Junior
- Posts: 294
- Joined: Wed Apr 11, 2012 4:34 pm
- Programming Language of Choice: c++
- Location: Brazil
- Contact:
Re: SDL_TTF and ™
Not being very helpful, but two othings I guess could be the problem are wrong encoding or your font doesn't have that character. But I don't know the library. Have you checked the documentation? Does it draw something (the dreaded square)?
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Re: SDL_TTF and ™
It draws the square and I'm pretty sure arial has a ™ character.
I've done the 'drawing a really small t and m' before but the point is to use legitimate font rendering.
Because this is for my engine and I would rather not have to do this every time I want to draw the ™ character.
Same thing with using an image.
And I've been through the documentation and tried all 3 encoding options.
I've done the 'drawing a really small t and m' before but the point is to use legitimate font rendering.
Because this is for my engine and I would rather not have to do this every time I want to draw the ™ character.
Same thing with using an image.
And I've been through the documentation and tried all 3 encoding options.
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: SDL_TTF and ™
The point should be to make it look like a TM to the user.RandomDever wrote: I've done the 'drawing a really small t and m' before but the point is to use legitimate font rendering.
That what functions are for.RandomDever wrote: Because this is for my engine and I would rather not have to do this every time I want to draw the ™ character.
Assuming you've read this?
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Re: SDL_TTF and ™
Yes I have read that and the copyright and registered trademark symbols work for me as well.
But seeing as I have not yet designed (much less registered) a trademark I would need a ™ which actually (confusingly) means unregistered trademark.
But seeing as I have not yet designed (much less registered) a trademark I would need a ™ which actually (confusingly) means unregistered trademark.
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: SDL_TTF and ™
The point was obviously not to use a different symbol... but to apply the same method to the symbol you are trying to render. You're spending far too much time on something that literally makes no difference at all to you users. They would be just as happy with (TM).RandomDever wrote:But seeing as I have not yet designed (much less registered) a trademark I would need a ™
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Re: SDL_TTF and ™
It makes a difference to me.
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: SDL_TTF and ™
Did you try printing the symbol using the method demonstrated in that article??RandomDever wrote:It makes a difference to me.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Re: SDL_TTF and ™
Yes. I'll just use (TM). Marking as solved.
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip