🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #762

Re: UNICODE: Can't get it to the screen

#762
From: FL
Date: Thu, 21 Mar 2002 08:15
27 lines
1702 bytes
Christian Sommerhuber wrote:
> 
> I've read the thread "Unicode? Help!" and followed the instructions. However
> when trying to output a widechar with
> 
> #define UNICODE
> 
> ....
> 
>     wc[0]=21016;
>     wc[1]=0;
>     Form1->Canvas->TextOutW(30, 130, wc);
I don't think you can use TextOutW with VCL...

> 
> I always just get a question mark plotted. The next I tried was
> 
>     HDC hdc = GetDC(0);
>     TextOutW(hdc, 30, 230, wc, 1);
>     RECT r={ 30, 300, 600, 400 };
>     ExtTextOutW (hdc, 30, 330, ETO_OPAQUE | ETO_GLYPH_INDEX , &r, wc, 1, 0);
> 
> Both resulted in a bold "|".
You're using the wrong font. Select the right font and you'll get the
results you want.

Francisco
Technical Details
Message-ID: <3C999693.B068D05@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!newsfeeds-atl2!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3c886b3f_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,eee03ec3de08ad0a
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2002-03-21 00:19:35 PST
Message-ID: <3C999693.B068D05@hotmail.com>
Date: Thu, 21 Mar 2002 16:15:15 +0800
From: FL <frleong@hotmail.com>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internationalization
Subject: Re: UNICODE: Can't get it to the screen
References: <3c886b3f_1@dnews>
Content-Type: text/plain; charset=big5
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 202.175.98.157
X-Trace: dnews 1016698526 202.175.98.157 (21 Mar 2002 00:15:26 -0800)
Lines: 27
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!newsfeeds-atl2!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews