INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Fonts at Big Sizes

Fonts at Big Sizes

(OP)
One of the things I'm working on at the moment involves drawing fonts at big sizes onto the screen (think Teleprompter and you're close). Right now, I'm using a TBitmap, drawing my text, and then sizing it onto the screen. I'm doing this okay, but the problem I'm running into is the usual text guttering (or whatever the proper name for it is, it's the space in pixels between lines of text). I drop my drawn text to file and find about 300 pixels of white space between each line, which (obviously) is a gulf of space.

The main question is if there's some setting on TFont or the Canvas that I'm missing to reduce this, or if I need to crop the text after I draw it initially before I put it out to screen?

RE: Fonts at Big Sizes

I don't have expert knowledge, but my understanding is that the line spacing is defined as part of the font, as each character will include space at the top and bottom eg. consider the letters 'Ey' which shows that uppercase letters still have empty space below them to handle lowercase letters in the font. And there is sure to be extra space as well which is magnified by the font size.

The way around this as I see it is to render your bitmaps as single lines with transparent backgrounds and overlay as appropriate for the font you're using.

RE: Fonts at Big Sizes

(OP)
That's what it's looking like I'll have to do. I'll probably play a bit more once I get the other problem(s) taken care of - mainly how to resize the form without leaving momentary "ghosts" on the form in other sizes, some outside the proper drawing area.

Thanks for your thoughts.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close