Solved

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

Posted on 2011-02-23
5
591 Views
Last Modified: 2012-05-11
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:

http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_20713092.html?sfQueryTermInfo=1+10+30+around+font+outlin

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

0
Comment
Question by:gbmcneil
  • 2
  • 2
5 Comments
 
LVL 51

Expert Comment

by:tedbilly
Comment Utility
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.
0
 

Author Comment

by:gbmcneil
Comment Utility
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..
0
 
LVL 51

Accepted Solution

by:
tedbilly earned 63 total points
Comment Utility
Yes, the code I wrote to extract the glyphs was quite complex.  Generally if the font doesn't have outlines built in, it won't work unless you write/buy a solution.  Sorry.
0
 
LVL 38

Assisted Solution

by:lherrou
lherrou earned 62 total points
Comment Utility
I just want to concur with tedbilly. Electronic fonts are pretty unique in terms of underlying technology - they aren't handled like drawing or images, even if they contain image information (which some do).

Cheers,
LHerrou
0
 

Author Comment

by:gbmcneil
Comment Utility
Thanks guys. I really appreciate your input.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now