Re: Antialiasing/fading label

From: Jens Gruschel (nospam_at_thisurldoesnotexist.com)
Date: 03/18/05


Date: Fri, 18 Mar 2005 14:49:50 +0100


> I'm looking for a label which supports antialiazing or another method so the
> borders of text on the label gets blended with the background.

Such a label can easily be made using Grpahics32 (http://www.g32.org),
there is a method RenderText (IIRC).

The basic idea is to draw the text larger than needed (twice or four
times as large) to a temporary bitmap and downscale it then (using
resampling).

If you don't want to use Graphics32, I have something for you. Take a
look at the attachment newsgroup (but I need some time, right now I
don't have access to the sources, I try to remember to put it there in a
few hours).

But Windows should do this automatically (the LOGFONT type has a
lfQuality member), but Windows sometimes decides not to use antialiasing
(depending on the font and font size, and also on the device the text is
rendered to).

Jens



Relevant Pages

  • Windows changing labels font??!?
    ... I have a pretty basic windows application created in Visual Studio ... button they automatically have a font of Arial and 8.25pt. ... On this one machine, the font of the button and label is different, it ... Does anyone have any ideas as to what is changing the font appearance ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to Get and Set Default Font on Forms and Controls?
    ... it looks to me like MsgBox does use the UI font, whereas a label on a VB6 ... Well I tested it on Windows 7, not Vista, but same thing Only error I got was couldn't run your exe because it requires the VB5 runtimes and they aren't on Windows 7. ...
    (microsoft.public.vb.general.discussion)
  • RE: Windows changing labels font??!?
    ... will substitute a font if the requested one is not available. ... I have a pretty basic windows application created in Visual Studio ... I created an installer using InstallShield (I doubt this has anything ... On this one machine, the font of the button and label is different, it ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Label on form question
    ... The first thing I would suspect is that those 2 users don't have that ... exact font installed. ... It's been my experience that when Access (really Windows) can't ... The label in question, on 2 particular users, seems to ...
    (microsoft.public.access.forms)
  • Re: Printing to a non-default printer
    ... a label with every scale hit. ... The PC that the app runs ... Do I want to keep the report printer as the Windows ... (the various apps that create reports to a different printer) ...
    (comp.lang.basic.visual.misc)