Undo TestInstall?



  • 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


  • admin

    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!



  • Ah, nice! Thank you Frederik.