Results 1 to 8 of 8

Thread: How To Register Fons

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    175
    Hi,

    Can anyone tell me how to register Your own .fon so your program can use it after instalation?

    Thanks
    Mass

  2. #2
    Guest
    do you mean font files?
    the usual file extension is .TTF

    fonts are automatically retained in the P&DW package.

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Enter the font name and filename into this registry key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Fonts

    (take a look to see how it's set out first, though)
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    175
    No, I mean fonts with .fon extentions
    Mass

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You use that key for .fon files as well.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    But how about for when another person installs the program on his PC? He should do the same, right?

    Can it be done in code?
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Yes, it can. Simply use your program to add a registry key for the font. I think you need to use the exact font name or it will get confused...not sure though. For some registry code go here: http://www.parksie.uklinux.net/registry.zip
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  8. #8
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    there is also a registry tutorial, i believe, on this site

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