Article View: borland.public.cppbuilder.internationalization
Article #287Re: Azeri Fonts Trouble
From: Andrue Cope [TeamB]
Date: Mon, 22 Nov 2004 09:15
Date: Mon, 22 Nov 2004 09:15
40 lines
2928 bytes
2928 bytes
Gurhan Cogumlu wrote: > Hello M.Cope, > I want to use a character like invers e (?) from Azeri Latin Fonts. I > have changed my computer's keyboard settings to Azeri (Latin) and > this character seems like question mark (?). Okay I thought as much and my original reply probably holds true. You need to configure your machine's locale to Azerbaijan. The problem is that the VCL (in common with a lot of Windows programs) uses 8-bit characters and that means 256 possible characters. That is nowhere near enough for all the languages of the world so they have been divided into codepages. Each codepage contains a subset of characters that should be adequate in most cases for a particular part of the world. Changing your keyboard settings was a good first step but you also need to change the locale. That tells Windows which codepage to use. To do this go to Control Panel\Regional Options and select the country or region. Unfortunately Azerbaijan isn't on my list so I don't know what you'd choose. It's worth pointing out that this is an exclusive option. If you make this change it may interfere with your computers ability to display the Roman alphabet. If you are adding support for this font so that users of that language can feel more comfortable that's fine but if you are adding support so anyone else can use it (ie;an American or Briton) then this solution won't work because it might interfere with their normal use of the computer. The only way to avoid having to change the locale is use Unicode and that means rendering strings yourself using TextOutW(). There is a component package that can provide Unicode support for the VCL called 'ElPack'. If you Google for it you should find some references. -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<41a1ae40$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<419c8912@newsgroups.borland.com> <419c8cdf$2@newsgroups.borland.com> <41a19b32@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,46e2b5c45df5a730 X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> Subject: Re: Azeri Fonts Trouble Newsgroups: borland.public.cppbuilder.internationalization References: <419c8912@newsgroups.borland.com> <419c8cdf$2@newsgroups.borland.com> <41a19b32@newsgroups.borland.com> Date: Mon, 22 Nov 2004 09:15:40 +0000 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: <41a1ae40$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101114944 217.207.223.34 (22 Nov 2004 01:15:44 -0700) Lines: 40 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail