🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3304

Re: DrawText / DrawText, word wrapping and long strings

#3304
From: Remy Lebeau (TeamB)
Date: Thu, 13 Jul 2006 05:37
16 lines
1625 bytes
"Mike Collins" <its@TheBottomOfThePost.com> wrote in message
news:44b5af24@newsgroups.borland.com...

> Just out of interest, do you know any good references on this sort
> of thing - i want to create a more advanced print out i.e. watermarks
> and possibly angled or rotated text but i can seem to find much other
> that DrawText and TextOut...

Use CreateFontIndirect() to use rotated fonts.  Set the lfOrientation member
of the LOGFONT structure to the angle of rotation.  You can then use
SelectObject() to apply the font to any Canvas prior to writing text on it.
Make sure that you are using a TrueType font, though.


Gambit
Technical Details
Message-ID: <44b5dd26$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44b5208b@newsgroups.borland.com> <44b529fa$1@newsgroups.borland.com> <44b52c62@newsgroups.borland.com> <44b590c9$1@newsgroups.borland.com> <44b5af24@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,27d018c4a89bdf5b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44b5208b@newsgroups.borland.com> <44b529fa$1@newsgroups.borland.com> <44b52c62@newsgroups.borland.com> <44b590c9$1@newsgroups.borland.com> <44b5af24@newsgroups.borland.com>
Subject: Re: DrawText / DrawText, word wrapping and long strings
Date: Wed, 12 Jul 2006 22:37:29 -0700
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <44b5dd26$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1152769318 68.69.17.41 (12 Jul 2006 22:41:58 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail