Fonts

Blitz3D Forums/Blitz3D Beginners Area/Fonts

JBR(Posted 2004) [#1]
Hello, I am loading in a font scaled for the screen size so that the message fills the screen width no matter what the screensize is.

Things are fine until I try 1600x1200 where my computer crashes even when in debug mode.

So, I'd like to know

1) Is there a limit to the fonts width & height?
2) How are fonts kept in memory i.e. do they use large chunks of video memory?

Any advice appreciated
Marg


Beaker(Posted 2004) [#2]
1) Not as such. But memory is an issue.
2) They are converted to bitmaps internally AFAIK. So can use huge chunks of vidmem.

If you are working in 3D you should use bitmap fonts applied to a scaled mesh. Checkout the FONText link in my sig for help here.

If you are working in 2D you can draw the text to a relatively small bitmap, and then, reading each pixel from the bitmap, draw the text (scaled up) using the Rect command. Effectively scaling each pixel.

Hope this helps.


Rob(Posted 2004) [#3]
Fontext works well - I use it all the time and wish I had it when I was a beginner.


Warren(Posted 2004) [#4]
Here's another recommendation for FONText. Fantastic little app.


JBR(Posted 2004) [#5]
Thanks