TTF Library

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++

TTF Library

Post by RandomDever »

How would i load Times New Roman as a font?
andrew
Chaos Rift Regular
Chaos Rift Regular
Posts: 121
Joined: Mon Dec 08, 2008 2:12 pm

Re: TTF Library

Post by andrew »

1) Read this tutorial.

2) Download this font.

3) Replace the font in the tutorial with the font you downloaded.

I haven't used this tutorial before, but I don't see why it wouldn't work. :)
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: TTF Library

Post by RandomDever »

New question. I am already using lazyfoo and I tried the key presses. nothing happened when i pressed a key.
so I then downloaded and pasted his source into my project and it still didn't work.
I'm so confused! :cry:
andrew
Chaos Rift Regular
Chaos Rift Regular
Posts: 121
Joined: Mon Dec 08, 2008 2:12 pm

Re: TTF Library

Post by andrew »

Are you talking about Lesson 8?

If you are, it only looks for the arrow keys being pushed and not the ones from the number pad.
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: TTF Library

Post by RandomDever »

andrew wrote:Are you talking about Lesson 8?

If you are, it only looks for the arrow keys being pushed and not the ones from the number pad.
Yes
I know but i've tried both.
andrew
Chaos Rift Regular
Chaos Rift Regular
Posts: 121
Joined: Mon Dec 08, 2008 2:12 pm

Re: TTF Library

Post by andrew »

Let's try to rule out a hardware problem.
Try this file: lesson08.exe
You'll have to put it with the rest of the files it needs for it to work.

If it works on yours, then your problem is probably in the code you compiled.
Post Reply