I'm creating a specialized rtf word processor and looking for a way to create an "overscore" on a character (the opposite of an underscore in a word processor). I'm presuming I'll need to use the Win32 API and draw the character and overscore, but I don't know if that's true, or how to do it, or if there's a more efficient way (I can't imagine why Microsoft wouldn't put such a generic call into the Win32 API). Anyway, can you give me some guidance?
Thanks
Tom Renckly
renckly@caec.com
04-10-2002 at 01:49 PM
|
mayd Level: Guest
Re: How can I overscore a character?
Tom -
Did you ever solve this problem?
We had to create our own font to do it but would like to find a more "conventional" way.
David May
mayd@amsec.nns.com
20-02-2003 at 03:33 PM
|
vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Re: How can I "overscore" a character?
sorry if no one's posting on this one...
i don't have any idea either...
the one in my head is far from this...
all i can do on overscoring is in html writing.
again, sorry.
____________________________
Been busy trying to take a second degree <--it's not working out...
20-02-2003 at 04:00 PM
|
mayd Level: Guest
Re: How can I
Hey this is good -
Because I'm trying to implement an overscore in HTML!
Any information would be greatly appreciated!
David
20-02-2003 at 09:21 PM
|
renckly Level: Guest
Re: How can I
I just sent this message to Dave and thought I'd post it for anyone else who wanders in to this thread:
I had to resort to a pre-made font to get the overscore capability I was looking for. The font is called Marvosym and has lots of symbols you can't find anywhere else, and they're very well made. The lower case g gives a "low overscore" for lowercase characters and the upper case G gives a high overscore for uppercase letters and numbers.
Apparently, the overscore character works by backing up to the previous character to the left of the cursor and puts the overscore on it. The font is free and can be obtained by going to this web site:   http://www.marvosym.de/marvosym.e.html
I'd still like to find a way to do this using the Windows API through some draw technique...that way I wouldn't have to load an entire font file just for the overscore capability.