🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing the Charset for a font based on the system font

#8657
From: Vladimir Stefanovic
Date: Mon, 04 Oct 2004 13:44
35 lines
1902 bytes
I'll bookmark this, but here are some annotations:
I come from a country which uses EASTEUROPE_CHARSET,
and many successful software comanies here abandoned
at all to include special diacrytical marks to the windows
caption. Some solutions CAN work fine at this or that PC but
they noticed that they cannot cover all the situations that Win OS
can provide.

--


Best regards,
Vladimir Stefanovic

Andrue Cope [TeamB] <no.spam@not.a.valid.address> wrote in message
news:41614f0c@newsgroups.borland.com...
> Solution found.
>
>     HFONT hfnt,
>           hOldFont;
>     hfnt = GetStockObject(SYSTEM_FONT);
>     LOGFONT lf;
>     GetObject( hfnt, sizeof( lf ), &lf );
>
>     // ZZZ Need to create our font here.
>
>     lf.lfCharSet=MyFontCharset;
>     hfnt=CreateFontIndirect( &lf );
>
>     hOldFont = SelectObject(hDC, hfnt);
>
> --
> Andrue Cope [TeamB]
> [Bicester, Uk]
> http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <4161536b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41613eaa$1@newsgroups.borland.com> <41614f0c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b3109d9c045778c0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <spam@not.needed>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41613eaa$1@newsgroups.borland.com> <41614f0c@newsgroups.borland.com>
Subject: Re: Changing the Charset for a font based on the system font
Date: Mon, 4 Oct 2004 15:44:14 +0200
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.139
Message-ID: <4161536b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096897387 213.137.116.139 (4 Oct 2004 06:43:07 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail