Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Resizing Window Resizes Text

Author
Message
Rknight
22
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 1st Nov 2003 19:06
Here's a real newbie question.

I've been asking a lot of those lately! Apologies.

When I set windows mode on, and I resize the DB program window it resizes the text within it as well.

So the fonts get all bent out of shape depending on the window size.

Is there a simple way to fix?
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Nov 2003 23:56
Everything is drawn to a backbuffer and then transferred to the screen. So what you see is not a font in the style of, say MS Word, but in simple terms a bitmap. If you resize a bitmap, the text resizes with it.

Put simply...you can't think of text as text once you've drawn it to the screen, it's just a bitmap like evrything else.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 2nd Nov 2003 00:21
Search the codebase for "set display mode" and the is an entry that uses set display mode to change the res to match the window.
The only problem is that when you use set display mode it wipes out all your loaded media and you have to load it each time the screen is resized.

You could proberly adapt the code to stop the user resizeing the window.

Login to post a reply

Server time is: 2026-07-07 11:21:39
Your offset time is: 2026-07-07 11:21:39