Article View: borland.public.cppbuilder.nativeapi
Article #3184Re: Checking for a Font at start up
From: Thorsten Kettner
Date: Mon, 04 Sep 2006 10:41
Date: Mon, 04 Sep 2006 10:41
21 lines
1581 bytes
1581 bytes
Oops typo! Should read IndexOf("Tahoma") of course.
"Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> wrote:
>
>"Daryl" <devaccount@hotmail.com> wrote:
>>I would like to see if a font (Tahoma) is available as the
>>form is being constructed (or perhaps there is a better time)
>>and if it is not available then make a substitution to say MS
>>Sans Serif which is basically guaranteed to be available.
>
>__fastcall TForm1::TForm1(TComponent* Owner)
> : TForm(Owner)
>{
> if(Screen->Fonts->IndexOf("Tahoxma") != -1)
> Font->Name = "Tahoma";
> else
> Font->Name = "MS Sans Serif";
> ...
>}
Technical Details
Message-ID:
<44fc02d4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44fbfaba$2@newsgroups.borland.com> <44fc027d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ad566b54c79d6ba X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> Sender: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> Reply-To: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> Subject: Re: Checking for a Font at start up Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 80.85.196.94 References: <44fbfaba$2@newsgroups.borland.com> <44fc027d$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <44fc02d4$1@newsgroups.borland.com> Date: 4 Sep 2006 03:41:24 -0700 X-Trace: newsgroups.borland.com 1157366484 207.105.83.66 (4 Sep 2006 03:41:24 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail