Can someone please enlighten me, I've seached the help for hours now!!
/Mikael Grev, Uppsala Sweden, gr...@telia.com
"Telia" <gr...@telia.com> wrote in message
news:mT5b5.659$652....@newsc.telia.net...
But, why using DrawText, especially for printing. DrawText/DrawTextEx
are simple-minded text formating function designed for simple UI text
displaying. Implement your own solution, which should be device
resolution independent in text formating, or read my coming book.
Feng Yuan
I'm not sure I understand your question. DrawText() takes a LPRECT
argument (aka CRect*). For each line you can move the rectangle down:
rect+=CPoint(0, nSpacing);
By changing the value of nSpacing, you change the spacing. Of course
nSpacing is not the spacing, it is the distance between the tops of
successive lines. but you get the idea.
HTH,
David Wilkinson
===============
On Wed, 12 Jul 2000 21:59:46 GMT, "Telia" <gr...@telia.com> wrote:
>I want to change the inter-line spacing when doing some explicit printing on
>a prepressed paper.
>How can I inc/dec the spacing, CDC has no support, neither has CFont.
>
>Can someone please enlighten me, I've seached the help for hours now!!
>
>/Mikael Grev, Uppsala Sweden, gr...@telia.com
>
Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm
Feng Yuan
I think wasn't that clear of what I exactly meant.
I'm using just one call to:
CDC::DrawText(text, CRect(the whole page), DT_WORDBREAK)
to make MFC write over several lines. Some lines are to be wrapped and some
just ends with /r/n, hence a new line. The text can be a whole letter (or
A4).
I thought maybe there was a way to specify the "inter_line spacing" since it
whould've been so simple for Msoft to implement in the DrawText method. But
I seem to be out of luck, I guess writing my own linebreaker is the way to
go!?
/Mikael Grev, Sweden
"Telia" <gr...@telia.com> wrote in message
news:mT5b5.659$652....@newsc.telia.net...
Dan
Telia <gr...@telia.com> wrote in message
news:nTib5.714$652....@newsc.telia.net...
However this only changed the Fonts size, not the spacing between the lines.
/Mikael Grev, Sweden
"Dan Cernat" <dce...@pqria.com> wrote in message
news:Ycjb5.27974$qS3....@tor-nn1.netcom.ca...
On Thu, 13 Jul 2000 12:47:15 GMT, "Telia" <gr...@telia.com> wrote:
>Thanks for all the answers!
>
>I think wasn't that clear of what I exactly meant.
>
>I'm using just one call to:
>
>CDC::DrawText(text, CRect(the whole page), DT_WORDBREAK)
>
>to make MFC write over several lines. Some lines are to be wrapped and some
>just ends with /r/n, hence a new line. The text can be a whole letter (or
>A4).
>I thought maybe there was a way to specify the "inter_line spacing" since it
>whould've been so simple for Msoft to implement in the DrawText method. But
>I seem to be out of luck, I guess writing my own linebreaker is the way to
>go!?
>
>/Mikael Grev, Sweden
>
>
>"Telia" <gr...@telia.com> wrote in message
>news:mT5b5.659$652....@newsc.telia.net...
>> I want to change the inter-line spacing when doing some explicit printing
>on
>> a prepressed paper.
>> How can I inc/dec the spacing, CDC has no support, neither has CFont.
>>
>> Can someone please enlighten me, I've seached the help for hours now!!
>>
>> /Mikael Grev, Uppsala Sweden, gr...@telia.com
>>
>>
>
Joseph M. Newcomer [MVP]
rlc
Telia <gr...@telia.com> wrote in message
news:LZjb5.720$652....@newsc.telia.net...
> Thanks for your suggestion!
>
> However this only changed the Fonts size, not the spacing between the
lines.
>
> /Mikael Grev, Sweden
>
> "Dan Cernat" <dce...@pqria.com> wrote in message
> news:Ycjb5.27974$qS3....@tor-nn1.netcom.ca...
> > Have a look at LOGFONT structure and CFont::CreateFontIndirect. I didn't
> try
> > it but I think you ca use this. Modify the lfHeight member of LOGFONT
> > without modifying the lfWidth member. You man need to use negative
values
> > for lfHeight. Once again, take a look at LOGFONT and lfHeight.
> > CFont::CreateFontIndirect creates a CFont from a LOGFONT structure.
> >
> > Dan
> >
> > Telia <gr...@telia.com> wrote in message
> > news:nTib5.714$652....@newsc.telia.net...