Re: Printing formatted text
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 11:13:23 +0200
"GD1" <euthymos@xxxxxxxxx> wrote in message
news:1157014881.548340.65340@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
You're drawing on a canvas; it has a font.
Yes, I know how to print a bold or an italic text string. But if you
had read the question more carefully, you would have understood that my
problem is quite different.
If you had explained it better, I might have, too. (Go back and read
your question as if you _don't_ know what you mean. '[how can I format]
text within the string' suggested the text on the canvas to me.)
Am I to understand that you want a markup format for your strings to
indicate which parts are to be bold or italic? Well then, a subset of
HTML looks fine to me.
Or some simple markers, for example '\B' for bold-on and '\b' for
bold-off. And '\\' for a literal backslash, don't forget.
Or Chr(2) or '*' or whatever for 'the next character is bold'. Or the
next word.
Or an extra string of the same length, with an attribute byte for every
character, where bit 0 means bold, bit 1 means italic, etcetera.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- Re: Printing formatted text
- From: GD1
- Re: Printing formatted text
- References:
- Printing formatted text
- From: GD1
- Re: Printing formatted text
- From: Maarten Wiltink
- Re: Printing formatted text
- From: GD1
- Printing formatted text
- Prev by Date: Re: Printing formatted text
- Next by Date: Re: Printing formatted text
- Previous by thread: Re: Printing formatted text
- Next by thread: Re: Printing formatted text
- Index(es):
Relevant Pages
|