Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsFontTrueType()
Message
 
 
À
10/10/2008 13:03:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01354150
Message ID:
01354169
Vues:
16
You can look it up in the registry
* Uses West-Wind Registry class http://berezniker.com/files/registry.zip
* Win2K and later
#DEFINE HKEY_LOCAL_MACHINE          -2147483646  && BITSET(0,31)+2
lcFont = "Arial"
lcFontFile = loReg.ReadRegistryString(HKEY_LOCAL_MACHINE, ;
		"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts",  ;
		lcFont + " (TrueType)")
IF NOT ISNULL(lcFontFile)
	? lcFont + " - TrueType"
ENDIF	
>Is there way to determine if TrueType or not ?
>
>I want to build function like;
>
>=IsFontTrueType('Arial') should return .t.
>=IsFontTrueType('MS Sans Serif') should return .f.
>
>Need ingredients, or recipee or whole dish if somene have it already :)
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform