Link to home
Start Free TrialLog in
Avatar of thready
thready

asked on

CFont CreateFont for an outline look (hollow on the inside)

Hi Experts,

I'm using Visual C++ 6.0 and I'm trying to call CFont::CreateFont so that my text appears to be hollow... i.e., I want just the outline (outside borders) to show up... How is this done?  In Microsoft Word, you select text, Format Font and choose 'outline'....  Hoping there's a way to do this programmatically with CreateFont...

Thanks!
Mike
Avatar of Qlemo
Qlemo
Flag of Germany image

AFAIK there is no direct way to write with outlined fonts. One way is to use a outlined font itself, another (tricky) is to draw the outline yourself, by writing it +-1 pixel in height or width (= 8 combinations), and again with XOR on original position.
ASKER CERTIFIED SOLUTION
Avatar of mahesh1402
mahesh1402
Flag of India 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
Avatar of thready
thready

ASKER

Damn Mahesh - you are good!

That is one sexy piece of code!

Many thanks - points well deserved!