Undo TestInstall?

RoboFont Forums Help / General Undo TestInstall?

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  nina 1 year ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6238

    nina
    Participant

    Hi there,

    This is perhaps a weird question but I was wondering if there is a way to programmatically de-testInstall a font, so to remove it again from wherever the file is put?

    I have a script that test installs an instance of a font for a specific purpose but this should be destroyed after the script is terminated, so the fonts don’t keep hanging around the system.

    If I knew where the file was put, I could just go and delete it, right? Is that all there is to it?

    Thanks,
    Nina

    #6239

    frederik
    Keymaster

    use

    from mojo.UI import testDeinstallFont
    
    testDeinstallFont(font)
    

    dont delete the file itself, testDeinstallFont() send notification to the general font manager that something changed…

    good luck!

    #6240

    nina
    Participant

    Ah, nice! Thank you Frederik.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.