|
-
Jan 9th, 2001, 12:51 PM
#1
Thread Starter
New Member
Hi,
I have a bunch of cool fonts in my program which i want to
distribute with the game, or else other computers can't
view them. I used Package and Deployment wizard to add the
fonts to my setup program, but when i setup and ran the program, the fonts still din't appear properly.
What can i do?
Thanks
-
Jan 9th, 2001, 02:59 PM
#2
Hyperactive Member
I've never tried anything like that, but do the fonts have to goto a paticular directory in order to read them? Like my default font folder is C:\winnt\fonts
Like i say, i have no idea but it's a thought
VB6.0 SP4
Windows 2000
I'm thinking of a number between
-
Jan 9th, 2001, 04:23 PM
#3
Thread Starter
New Member
The directory should be right
the font files are copied to c:\windows\fonts, which should be right. How can i register the fonts on the user's computer?
-
Jan 9th, 2001, 09:18 PM
#4
Addicted Member
This should be simple, just use the AddFontResource API...
Code:
Public Declare Function AddFontResource Lib "gdi32" Alias "AddFontResourceA" (ByVal lpFileName As String) As Long
Simply pass a font filename to lpFileName.
For example, to add Arial font, do this:
Code:
Dim lRet&
lRet& = AddFontResource("c:\windows\fonts\arial.ttf")
NOTE: I haven't tried this myself, but I don't see any reason why this should not work.
-
Jan 9th, 2001, 09:27 PM
#5
Addicted Member
Me again 
I've just found something at the MSDN Libray page(s).
Here's the link, check it out:
http://msdn.microsoft.com/library/de...ntext_9r51.htm
-
Jan 10th, 2001, 04:56 PM
#6
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|