Solved

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

Posted on 2011-02-23
5
629 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 34973357
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
ID: 34973428
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:
Ted Bouskill earned 63 total points
ID: 34973597
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
ID: 34976423
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
ID: 34984790
Thanks guys. I really appreciate your input.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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