🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Checking for a Font at start up

#3183
From: Thorsten Kettner
Date: Mon, 04 Sep 2006 10:39
16 lines
1354 bytes
"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: <44fc027d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44fbfaba$2@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>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44fc027d$1@newsgroups.borland.com>
Date: 4 Sep 2006 03:39:57 -0700
X-Trace: newsgroups.borland.com 1157366397 207.105.83.66 (4 Sep 2006 03:39:57 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail