To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1158
1157  |  1159
Subject: 
Re: RcxCC Font problem
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Tue, 22 May 2001 14:40:24 GMT
Viewed: 
2305 times
  
In lugnet.robotics.rcx.nqc, Marc Klein writes:
First, thanks a lot to continue the developpment of RcxCC.
Your program is great !

Thanks!  It's been a lot of fun working on it in my spare time lately.  I'm
glad that a few people have found it worthwhile.

I have a little problem with your program.
I made a font for my own purpose (small, readable, all characters different).
This font is not display correctly in your program. I found the option to
change the line spacing, but not the character
spacing. Is this option available ?

I've dug around in the code to try and figure out what is going on here and
I think I understand the problem now.  I'm no expert on fonts, however.

The editor component I am using is trying very hard to maintain a perfect
grid of character cells where the Nth character on line X+1 is directly
below the Nth character on line X.  In order to do this it checks the
character width of the font in normal, italic, and bold styles.  If the
syntax highlighter indicates to the editor that it might bold some of the
characters in the edit window then the editor will draw all characters at
the bold-style character advance value.  The code uses GetCharABCWidths to
determine the character width to use for TrueType fonts.  For raster fonts
it uses tmAveCharWidth.

The bottom line seems to be that if you use raster fonts with my revised
RcxCC the text will be drawn in bold-style character widths (with the
default syntax highlighting settings).  If you want to use your font and
have it draw the characters in normal-style character widths you'll have to
not use the bold style in any of the Color settings in the Preferences
dialog.  The default is to bold the Keywords.  You might consider removing
the bold attribute and choosing an alternate color for Keywords.  I've also
noticed some less-than-desireable behavior with italicized text while using
your font.  It seems that drawing italicized text when using non-TrueType
fonts will clip the last character on a line.  Modifying this behavior is
definitely not a high priority.

Thanks,

John Hansen



Message has 1 Reply:
  Re: RcxCC Font problem
 
(...) That worked. Thanks a lot. (...) No problem for me. I only use my font in regular style. Marc Klein Marc Klein A Mindstorms fan. (24 years ago, 22-May-01, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  RcxCC Font problem
 
First, thanks a lot to continue the developpment of RcxCC. Your program is great ! I have a little problem with your program. I made a font for my own purpose (small, readable, all characters different). This font is not display correctly in your (...) (24 years ago, 20-May-01, to lugnet.robotics.rcx.nqc)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR