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
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Damn Mahesh - you are good!
That is one sexy piece of code!
Many thanks - points well deserved!
That is one sexy piece of code!
Many thanks - points well deserved!