Results 1 to 6 of 6

Thread: Help with fonts

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    6

    Cool

    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

  2. #2
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    6

    Smile 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?

  4. #4
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    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.

  5. #5
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    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

  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    6

    Thanks

    THanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width