Re: Printing formatted text
- From: "GD1" <euthymos@xxxxxxxxx>
- Date: 31 Aug 2006 02:31:44 -0700
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.)
OK, I explain it better.
Have you ever used the TextOut function on a canvas? It works like
this:
Printer.Canvas.TextOut(x,y,'some text');
Right. Now, if I want to print some bold text I've to use:
Printer.Canvas.Font.Style := [fsBold]; // Next TextOut will print bold
text
Printer.Canvas.Text.Out(x,y,'some bold text');
Printer.Canvas.Font.Style := []; // Next TextOut will print normal text
OK. Now, if I have to print a long text string with SOME words in bold,
and SOME words in italic, how can I make it without using several
TextOut instructions (along with several Printer.Canvas.Font.Style
switches and related positioning matters)?
Thank you.
.
- Follow-Ups:
- Re: Printing formatted text
- From: alanglloyd@xxxxxxx
- Re: Printing formatted text
- References:
- Printing formatted text
- From: GD1
- Re: Printing formatted text
- From: Maarten Wiltink
- Re: Printing formatted text
- From: GD1
- Re: Printing formatted text
- From: Maarten Wiltink
- 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
|