Replacing text with lines
- From: vesty_@xxxxxxxxxxx
- Date: 22 Aug 2005 09:26:02 -0700
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.
.
- Follow-Ups:
- Re: Replacing text with lines
- From: Mike D Sutton
- Re: Replacing text with lines
- From: Joe Butler
- Re: Replacing text with lines
- Prev by Date: WM_NCPAINT and custom caption drawing
- Next by Date: Re: Replacing text with lines
- Previous by thread: WM_NCPAINT and custom caption drawing
- Next by thread: Re: Replacing text with lines
- Index(es):
Relevant Pages
|