[Solved]SDL_TTF and ™

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
RandomDever
Chaos Rift Regular
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 ™

Post by RandomDever »

It's not rendering for me. Why?
Last edited by RandomDever on Thu Aug 09, 2012 5:59 pm, edited 1 time in total.
User avatar
dandymcgee
ES Beta Backer
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 ™

Post by dandymcgee »

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! :twisted:
User avatar
superLED
Chaos Rift Junior
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 ™

Post by superLED »

Or make an image of ™ and render that image as a symbol.
Only if you really can't find another way.
User avatar
bbguimaraes
Chaos Rift Junior
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 ™

Post by bbguimaraes »

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)?
RandomDever
Chaos Rift Regular
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 ™

Post by RandomDever »

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.
User avatar
dandymcgee
ES Beta Backer
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 ™

Post by dandymcgee »

RandomDever wrote: I've done the 'drawing a really small t and m' before but the point is to use legitimate font rendering.
The point should be to make it look like a TM to the user.
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.
That what functions are for. ;)

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! :twisted:
RandomDever
Chaos Rift Regular
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 ™

Post by RandomDever »

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.
User avatar
dandymcgee
ES Beta Backer
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 ™

Post by dandymcgee »

RandomDever wrote:But seeing as I have not yet designed (much less registered) a trademark I would need a ™
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).
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
RandomDever
Chaos Rift Regular
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 ™

Post by RandomDever »

It makes a difference to me. :(
User avatar
dandymcgee
ES Beta Backer
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 ™

Post by dandymcgee »

RandomDever wrote:It makes a difference to me. :(
Did you try printing the symbol using the method demonstrated in that article??
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
RandomDever
Chaos Rift Regular
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 ™

Post by RandomDever »

Yes. I'll just use (TM). Marking as solved.
Post Reply