Print Page | Close Window

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

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=11620
Printed Date: 29 April 2024 at 12:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Missing underline also in txt:Bold=1in some fonts
Posted By: peerschindel
Subject: Missing underline also in txt:Bold=1in some fonts
Date 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
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net