🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to get current LOGFONT

#2088
From: Renald Yazmir
Date: Tue, 01 May 2007 17:30
36 lines
1447 bytes
Hi,



1) How can I get current LOGFONT?

I want to inquire the current font without displaying any dialog and without 
asking to select the font.





2) If I want to rotate the text can I set only sub set of LOGFONT 
parameters. For example:

...

 log_font.lfHeight = font_height;
 log_font.lfWeight = FW_SEMIBOLD;
 log_font.lfEscapement = (LONG_T)(angle*10);
...

 hfnt = CreateFontIndirect(&log_font);


Do I need to worry about the rest of parameters or I can just call:

 memset(&log_font, 0, sizeof(LOGFONT));




Thank you.

Rony.
Technical Details
Message-ID: <46376b43$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,812e79cdc65370e5,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Renald Yazmir" <renald@partmaker.com>
From: "Renald Yazmir" <renald@partmaker.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to get current LOGFONT
Date: Tue, 1 May 2007 12:30:50 -0500
Lines: 38
Organization: IMCS Inc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: 66.106.28.123
Message-ID: <46376b43$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1178037059 66.106.28.123 (1 May 2007 09:30:59 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail