🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#8656
From: Andrue Cope [TeamB]
Date: Mon, 04 Oct 2004 13:24
19 lines
1270 bytes
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: <41614f0c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41613eaa$1@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: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Re: Changing the Charset for a font based on the system font
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41613eaa$1@newsgroups.borland.com>
User-Agent: XanaNews/1.16.4.6
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <41614f0c@newsgroups.borland.com>
Date: 4 Oct 2004 06:24:28 -0700
X-Trace: newsgroups.borland.com 1096896268 217.207.223.34 (4 Oct 2004 06:24:28 -0700)
Lines: 19
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail