Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Interface and Graphics > Another Font Aliasing Thread...


Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2004, 09:14 PM
clafarge's Avatar
clafarge clafarge is offline
Centurion
 
Join Date: Dec 2003
Location: Missouri
Posts: 143
Default Another Font Aliasing Thread...


On my splash screen, I have six labels in 14pt MS Sans Serif. They're all very jaggy. I need this to look smooth and nice.

In the last version, I ended up having to use images for each of these because it just looked too bad. I'd like to be able to use Labels though, and some of this text may need to be dynamicly generated.

Any ideas?

Chad
__________________
Chad
Reply With Quote
  #2  
Old 01-15-2004, 10:45 AM
GavinO's Avatar
GavinO GavinO is offline
Coder of Fortune

Retired Leader
* Expert *
 
Join Date: Dec 2002
Location: Troy, NY USA
Posts: 3,120
Default

The hard way would be to generate the text double size and interpolate it down. I think that in newer version of Windows, there may also be smooth-text drawing routines, but I'm not sure what lib they're in or what they're called.
__________________
-- The Gavster
Like to IRC? Try irc.randomirc.com
GavServer
Reply With Quote
  #3  
Old 01-15-2004, 11:39 AM
tox_yray tox_yray is offline
Freshman
 
Join Date: Jan 2004
Location: Here
Posts: 33
Default

Quote:
Originally Posted by GavinO
The hard way would be to generate the text double size and interpolate it down. I think that in newer version of Windows, there may also be smooth-text drawing routines, but I'm not sure what lib they're in or what they're called.



I'm not good at calling windows DLLs and I'm not sure if this can help, but here goes nothing: When you open the Fonts folder and open a font with the font previewer (by double-clicking on the font), the text goes as big as 72 pts... Maybe someone could find the linked DLL for that action...
Reply With Quote
  #4  
Old 01-15-2004, 12:24 PM
clafarge's Avatar
clafarge clafarge is offline
Centurion
 
Join Date: Dec 2003
Location: Missouri
Posts: 143
Default Same effect in smaller font...

I see the same jaggies in all smaller font sizes (12, 10).

Anyone getting anywhere on this? It's getting quite close to a deadline, and my big show-stopper is "look and feel"... because of this look.

Tomorrow I may have to use images of these words instead of labels, and make it a bigger file, have more resources to track, and have to create new versions of every image for each version change/toolname change.

Please save me.
__________________
Chad
Reply With Quote
  #5  
Old 01-15-2004, 02:07 PM
GavinO's Avatar
GavinO GavinO is offline
Coder of Fortune

Retired Leader
* Expert *
 
Join Date: Dec 2002
Location: Troy, NY USA
Posts: 3,120
Default

You can enable system wide font smoothing with this API: http://msdn.microsoft.com/library/de...metersinfo.asp

Kinda mean to make a system-wide, performance-crippling change, though. The 'jagged' appearance of 14pt ms sans serif really isn't that bad, seeings as the rest of the Windows UI uses that font (albeit a bit smaller), so it will blend in.
__________________
-- The Gavster
Like to IRC? Try irc.randomirc.com
GavServer
Reply With Quote
  #6  
Old 01-15-2004, 05:07 PM
clafarge's Avatar
clafarge clafarge is offline
Centurion
 
Join Date: Dec 2003
Location: Missouri
Posts: 143
Default Agreed...

You're right... I can't do that to my users' PCs.

I'm doing Pics, instead.
__________________
Chad
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal Font Rendering Bilge Interface and Graphics 10 08-06-2003 04:43 AM
vc++6: any1 know how to use threads eg _beginthread(), _endthread() funcs clockworkorange Miscellaneous Languages 2 06-09-2003 10:20 PM
Printer Font - Customizing Oddlogic General 6 01-03-2003 06:51 AM
Detecting the current font and font size on various lines in a rich text box. keibetsu General 5 11-22-2002 05:09 PM
ListBox Font (createFont) usetheforce2 API 4 02-07-2002 11:04 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->