Link to home
Start Free TrialLog in
Avatar of gbmcneil
gbmcneil

asked on

Any simple way to put a black outline around the edges of a font

Just out of curiosity, is there any way to put an black pixel outline around the fonts making up the text in a Textbox control?

Seven years ago there was a discussion of such a method that was rather complex.

See:

https://www.experts-exchange.com/questions/20713092/Outline-Text.html?sfQueryTermInfo=1+10+30+around+font+outlin

Would it be any easier today with VB.NET 2008?

Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

No.  Font management is still the same under the hood.  The font rendering engines haven't changed and the definitions for the glyph outlines is embedded in the fonts themselves.  3rd party binaries (like Word Art or PhotoShop) can read non-Outline fonts and render outlines but it has to be done with special code.  There isn't a magic parameter.

You have to find a 3rd party library or do like I did many years ago when I wrote a 2D to 3D text rendering plug-in for Photoshop which required extracting the glyph polylines and writing code to render the font.
Avatar of gbmcneil
gbmcneil

ASKER

Thanks for the info.

It seems that Microsoft is outlining the Segoe font, which is the font used to identify each icon on my desktop (in the implementation of Windows 7 on my Sony Z-Series Laptop computer).

I wanted to replicate it. But, I think that is far too complex an undertaking..
ASKER CERTIFIED SOLUTION
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks guys. I really appreciate your input.