|
-
Mar 29th, 2024, 11:38 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Windows vs App Fonts
I typically create app on Windows XP Pro.
They are run on Win XP Pro and Windows 7 Pro.
I use Arial Bold and Lucida Console Bold (due to vision problems).
On Win XP Pro all looks good.
On Windows 7 Pro many text displayed are wrapping on controls.
I use AutoSize for labels.
What causes this since the Font is the same on both Windows.
Is there a way to fix this ?
Is there some "magic" amount to make something wider while in Win XP Pro that will compensate for Windows 7 Pro?
-
Mar 29th, 2024, 12:09 PM
#2
Fanatic Member
Re: Windows vs App Fonts
First thing I would do is select a True Type Font and then compare (off hand not sure if fonts cited are TT).
Is XP and Win7 being run on the same machine. If not, check the number of pixels for each monitor.
-
Mar 29th, 2024, 12:37 PM
#3
Re: Windows vs App Fonts
The SegoeUI font was specifically designed for good screen viewing (hence the "UI" on its name), and it's TrueType so it can be scaled to any size you want. Copilot says that SegoeUI was introduced with "Windows XP Media Center Edition 2005 and Windows Vista", so it should be available to you.
If you want a fixed width font, the Consolas is also a TrueType (so scalable), and it was designed for those situations where we need fixed character spacing (like our code windows). Copilot says it was introduced with Windows Vista, so it should be available after that (but probably not Windows XP). You could probably copy it over though, and install it as a font on an XP machine.
-------------
But yeah, getting textboxes and labels to work exactly the same on different resolutions and scalings is difficult. The only solution I know of is to leave some extra space in them for ones you don't want to wrap.
Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|