Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - Missing underline also in txt:Bold=1in some fonts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Missing underline also in txt:Bold=1in some fonts

 Post Reply Post Reply
Author
Message
peerschindel View Drop Down
Groupie
Groupie


Joined: 12 July 2008
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote peerschindel Quote  Post ReplyReply Direct Link To This Post Topic: Missing underline also in txt:Bold=1in some fonts
    Posted: 28 July 2008 at 12:08pm
Hi,
 
I have nearly the same problem as described in topic
"Why is underscore "_" not drawn in txt:Italic= 1?".

I have in my languages keywords which contain an underscore
for reserved names e.g. _MyReservedName.
Because for "Italic", it didn't work at all (see other topic),
I tried to use "Bold" and first I thought, it was o.k.
But now I tried several font sizes and for some, it works,
for others not (e.g. size=12 doesn't work).
The underscores of the keywords are simply
not drawn (while the rest of the keyword is in bold), so I only
see
    MyReservedName
instead of
    _MyReservedName
 
(This behavior can be seen in MDITextEditor)
 
Because I need to distinguish 2 kinds of keywords for the same
color and because italic and underline don't work, I'm stuck with
bold.
I saw no other chance then modifying the library source code
and changing FW_BOLD to FW_SEMIBOLD on the one place
where it is decided from the lex schema which text attributes to
use (GetTextAttrbutes).
This seems to have no problems, but I don't like to change the
library code because it makes problems with future updates.
 
So could this be fixed or at least added an official possibility
to use FW_SEMIBOLD instead of FW_BOLD?
 
Regards
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.