Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jagged fonts

Status
Not open for further replies.

magicme

Technical User
Jun 11, 2003
22
US
hello
i am writing a simple tcl script to keep my notes in, but
all fonts in my multiline text widget are jagged .... fonts look okay in other applications so its not my monitor.

i have tried lots of fonts and they are on my system.

here is the code i use.....

# window configure
. configure -background #facd8a
font create davesfont -family lucida -size 12 -weight normal
#
# text frame widgets
#
text .textframe.maintextbox \
-state normal \
-height 40 \
-width 80 \
-wrap none \
-font davesfont \
-background $entrycolor \
-foreground #0000FF \
-xscrollcommand ".textframe.h_scroll set" \
-yscrollcommand ".textframe.v_scroll set"
#

my question is .... am i missing a command or text widget property that enhances or smoothes fonts.... as i said, fonts look great in other applications.

or do i need to somehow embed fonts somewhere for use in tcl scripts?

i am on gnu/linux(debian)

thanks for any comments.

daveleo
 
What does it look like if you just default the font?

_________________
Bob Rashkin
 
defaulting the font looks just as bad.

strangely, when i write the textbox to a file and open the file in a text editor (gedit) the font looks great.

again, i have used different font families in the text widget and they all look similarly bad (there are differences, but they are bad).

i have 2 books that go on and on and on about fonts and i've tried a bunch of things ....

daveleo
 
If using the default font (that is, letting Tcl decide what the font characteristics are) gives you the same problems as when you specify the font, I don't think the issue is with your specification. Rather, I think your Tk is rendering the text poorly. I don't know what to do about that other than to reinstall, maybe with a later version.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top