Re: oblique text
On Thu, 17 Apr 2008 09:03:25 -0700 (PDT), patrick
<patrick.beltranne@caramail.com> wrote:
On 17 avr, 15:53, "Tom Serface" <tserf...@msn.com> wrote:
I don't think there is... you could use CFE_ITALIC to make it italics, but
if you want to do anything fancier you'll likely have to do it graphically
or do your own font. ?That's just what I know though. Someone else may have
a better idea.
I did find this article that may be of interest to you:
Of course you can with SetWorldTransform()
( Codeguru or Codeproject "articles" are for ~90% beginners and noobs
articles...)
Uh, the article Tom linked to, which you clipped, is all about using
SetWorldTransform.
Anyway, the OP was talking about CHARFORMAT, which implies RichEdit, which
I don't believe will appreciate the use of SetWorldTransform, assuming you
could figure out a way to apply it. Also, skewing a normal font is not a
great substitute for using a true italic font, because shapes of letters
such as lower-case "a" may change radically between upright and italic
versions of the same font. The CFE_ITALIC suggestion does apply to
CHARFORMAT, but offhand, I don't know if it selects an italic version of
the font if available or simply skews the current font. If it merely does
the latter, I wouldn't use it.
Yesterday, the OP was asking how to use CHARFORMAT to make a "narrow" font.
I suggested he use a real narrow font, such as "Arial Narrow". If no
"narrow" font is available, or no "italic" font, or whatever, and he still
wants to transform the font he has, he's going to have to give up RichEdit,
draw everything himself, and accept the less than satisfactory results he's
likely to get.
--
Doug Harrison
Visual C++ MVP