Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsFontTrueType()
Message
 
 
To
10/10/2008 13:03:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01354150
Message ID:
01354169
Views:
17
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform