Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 556643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:56:29+00:00 2026-05-13T11:56:29+00:00

This article showed me how to install fonts from a script, but now I’m

  • 0

This article showed me how to install fonts from a script, but now I’m faced with the problem of removing them. How can I do that ? Any language is ok, I’ll convert the info to what I need later.

EDIT: Okay, so I now know how to uninstall fonts ( most of the part at least ). I’m issuing calls to RemoveFontResource. After that I use SendMessage with parameters: 0xffff,0x001D,0,0 ( HWND_BROACAST,WM_FONTCHANGE … and I forgot what the other two parameters stand for ). The thing is, this deletes the font, but in the Control Panel‘s Fonts entry, the font still appears there ( even though if you try to delete it from there as well, it will say it cannot read from source file or disk.

So basically, I’m deleting a font in this order:

  • deleting physically from the C:\Windows\Fonts
  • calling RemoveFontResource
  • calling SendMessage

What’s the proper way of uninstalling?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:56:29+00:00Added an answer on May 13, 2026 at 11:56 am

    From all the documentation I’ve ever seen those three lines of code are the “proper” way to do it but as we well know it doesn’t quite work – as expected.

    RemoveFontResource(fontPath);               
    DeleteFile(fontPath);
    ::SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
    

    REBOOT

    I executed the code above and duplicated your problem (control panel still shows the font, however the font file is gone). I then rebooted. Now the font is gone from the Fonts Control Panel applet.

    Something else to note: even though control panel still showed the font as “there” applications no longer listed it in their font lists (I specifically tried Wordpad, before and after deleting webdings.ttf – without rebooting)

    Yea i know – rebooting is a poor solution – especially if you need to update the Font since you can’t reinstall it (via the control panel anyways – it claims the font is still installed) until you reboot after removing it (I tried).

    However if all you want to do is remove the font – its not the worst solution – the font is essentially gone after you uninstall it (apps don’t see it, its only visible in control panel fonts as far as i can tell) and you wouldn’t need to force a reboot.

    From the SDK help on RemoveFontResourceFont (which may indicate why the oddness is seen)

    If there are outstanding references to
    a font, the associated resource
    remains loaded until no device context
    is using it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.