Page 1 of 1
[Solved]SDL_TTF and ™
Posted: Tue Aug 07, 2012 4:20 pm
by RandomDever
It's not rendering for me. Why?
Re: SDL_TTF and ™
Posted: Tue Aug 07, 2012 7:27 pm
by dandymcgee
It probably doesn't support that character. Just draw a really small T and M.
Re: SDL_TTF and ™
Posted: Tue Aug 07, 2012 8:29 pm
by superLED
Or make an image of ™ and render that image as a symbol.
Only if you really can't find another way.
Re: SDL_TTF and ™
Posted: Tue Aug 07, 2012 8:33 pm
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)?
Re: SDL_TTF and ™
Posted: Tue Aug 07, 2012 8:49 pm
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.
Re: SDL_TTF and ™
Posted: Tue Aug 07, 2012 9:01 pm
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?
Re: SDL_TTF and ™
Posted: Tue Aug 07, 2012 10:20 pm
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.
Re: SDL_TTF and ™
Posted: Wed Aug 08, 2012 8:20 am
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).
Re: SDL_TTF and ™
Posted: Wed Aug 08, 2012 5:15 pm
by RandomDever
It makes a difference to me.
Re: SDL_TTF and ™
Posted: Thu Aug 09, 2012 5:17 pm
by dandymcgee
RandomDever wrote:It makes a difference to me.
Did you try printing the symbol using the method demonstrated in that article??
Re: SDL_TTF and ™
Posted: Thu Aug 09, 2012 5:59 pm
by RandomDever
Yes. I'll just use (TM). Marking as solved.