Replacing text with lines

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi,

In an app i'm working on we sometimes need to draw lots of text on the
screen at very small sizes. In order to increase the performance of the
app once the text is too small to be legible we just replace it with a
box drawn over the top of where it would have been (by calcing the
texts width/height).

This works ok but could be better... One problem is if you have text
like

some
words spread
out
in
a
shape

You just end up with a rectangle like:

-------------
| |
| |
| |
| |
| |
-------------

Instead of somethign more inidicative of its approximate shape.


Does anyone have any other suggestions?

As we currently add the strings to a path, then draw the path, I
figured one option would be to just draw an outline of the path.
Unfortunately this just outlines each of the letters instead of just
one large outline around the entire path (which would be ideal). Is it
possible to outline a path in this way?

Worst case scenario I can calculate the width/height/position of each
individual line in the text, but I imagine doing those calculations
would end up more expensive than just rendering the text in the first
place.

Any suggestions appreciated.

.



Relevant Pages

  • Re: Possible to "draw" on screen using mouse?
    ... It is an app we will be working on. ... "christophe" wrote: ... ..mousedown (used for start drawing) ... I let the user draw a circle on a form and store only the coordinates ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Replacing text with lines
    ... > In an app i'm working on we sometimes need to draw lots of text on the ... > Instead of somethign more inidicative of its approximate shape. ... > As we currently add the strings to a path, then draw the path, I ... > individual line in the text, but I imagine doing those calculations ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Any Open-GL experts, out there?
    ... app, it doesn't work like I think it should. ... my most recent "advance" is that I got my sample-app to ... Draw ANOTHER skybox that contains "the sky", ... Again, I've seen all the tutorials, I've read the books, I've even ...
    (alt.smokers.cigars)
  • [OT] Any Open-GL experts, out there?
    ... app, it doesn't work like I think it should. ... my most recent "advance" is that I got my sample-app to ... Draw ANOTHER skybox that contains "the sky", ... Again, I've seen all the tutorials, I've read the books, I've even ...
    (alt.smokers.cigars)
  • Re: Drawing from a thread
    ... If I do this from the UI thread the app becomes HORRIBLY ... applies to UI elements composed of windows (buttons, check boxes, list boxes ... However, in one common alternative scenario, the thread does not draw ... that the GUI thread should bitblt from the memory dc. ...
    (microsoft.public.vc.mfc)