Sign in to follow this  
jusaf

NeHe lesson 13 - Bitmap Fonts

Recommended Posts

Hi all, I was wondering how can i get accented characters using bitmap fonts? using the lesson 13 code, if i try to print "olá" it will only show up "ol"... Any ideas? thanks Julien

Share this post


Link to post
Share on other sites
I liked that tutorial a lot when first learning GL. And there is plenty which you can evolve over time. Anyway...

//change this line
wglUseFontBitmaps(hDC, 32, 96, base); // Builds 96 Characters Starting At Character 32

//to this
wglUseFontBitmaps(hDC, 32, 256-32, base); // Builds 256-32 (224) Characters Starting At Character 32

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this