Results 1 to 6 of 6

Thread: Fonts (VB)

  1. #1
    New Lounger
    Join Date
    Mar 2002
    Location
    Groningen, Groningen, Netherlands
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Fonts (VB)

    Hi out there, just a plain and simple question. Does anyone know a method to programmatically remove a font (so you can actually delete fie font-file) and to register a font (and I don't mean RemoveFontResource and AddFontResource !)
    Thanks in advance!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Fonts (VB)

    You can download Fonts.bas from Whitworth Software Solutions. This free module contains code to register and unregister a font.

    (From the home page of the site, click Developer, then Source Code. Fonts.bas is the second item in the list.)

  3. #3
    New Lounger
    Join Date
    Mar 2002
    Location
    Groningen, Groningen, Netherlands
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Fonts (VB)

    Hans,

    Very nice code indeed, but it still doesn't work for my specific problem. I need to uninstall a font in use (Times New Roman). To do this manually you right-click on the font and select delete. Up until now I've not seen any code (including this) that does specifically that... When I try to do this with the code from Whitworth I get the message that the font is in use and a reboot is needed in order to replace the font....

    Regards,

    Jos N. van der Kooij

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Fonts (VB)

    Sorry, I'm out of my depth here. I hope that somebody else can help you.

  5. #5
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Fonts (VB)

    Are you trying to uninstall a font that you're currently using? That's what the error message seems to imply. YOu might try switching to a different font *before* attempting to delete that one.
    Charlotte

  6. #6
    New Lounger
    Join Date
    Mar 2002
    Location
    Groningen, Groningen, Netherlands
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Fonts (VB)

    Indeed Charlotte, you're right, except, when I right click in the explorer on the font Times New Roman (in use...) I can delete the font without any (!) errormessage and replace it. That's what I'm looking for!
    So things are not what they seem to be, but that's the general idea on these pages I guess :-)

Posting Permissions

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