View Full Version : Change Bitmap font size problem !!
12-14-2006, 10:28 PM
I write a program that will display a Bitmap font. The program allow user to change the text size. What I did was re-create a new Bitmap font with a new text size. The problem happen when I have 2 different opengl form that run in the same application. When I re-create a new Bitmap font for both Opengl form at the same time, all the Bitmap font disappear. Can anyone help me. Thanks.
12-15-2006, 05:14 AM
This is most likely a bug, so we can't help you without having a look at your code. Probably the best thing you can do is to debug it yourself.
Another thing is that you should not create fonts every time you need different size. You could just use multiple bitmaps - each time you need a font with size you haven't used before, you add one bitmap to the list. If the list gets too long you can remove least recently used bitmaps.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.