Download and install fonts

Hello, Support Team!

We need a script to install a complete font family in the target computers.

The font family we want to install is Montserrat; it’s a font freely distributable under the terms of the Open Font License (OFL) which can be downloaded from various sites across the Internet like, for example, the Google Fonts repository:
https://fonts.google.com/download?family=Montserrat

The script has to do the following:

  • Download the single .zip file containing all the required font files from the provided URL
  • Unzip the OTF/TTF font files to a temporary folder.
  • Install all the OTF/TTF fonts in the package.
We have looked into the ITarian script repository and we have found some similar scripts, but they don't cover our needs: So, could you please create the requested script?

Thanks a lot in advance for your kind help!

Regards,
– Javier Llorente
Endpoint Security - Devoteam

Hi @DevoteamEndpointSecu,

Thanks for your script request. We have asked our script developers to analyze and provide update.
Will share you the feedback once available.

Kind Regards,
PremJK

Hi @DevoteamEndpointSecu,

Please run this script prepared by our script developers and provide your feedback whether your request are fulfilled.
20210119-Download_Fonts_zipfile_and_Install_in_the_device.json

Note : Run as Logged in User

Kind Regards,
PremJK

20210119-Download_Fonts_zipfile_and_Install_in_the_device.json (5.39 KB)

Hi @PremJkumar

Thanks a lot for the provided script. I’ve been trying it and it works pretty fine. The only issue I’ve found so far is that, when the fonts are already installed on the computer, the user gets an error popup asking to overwrite or not the installed font face.

Could you please either add a pre-check to skip the installation it the font is already installed or force the installation of the font without asking the user?

Thanks a lot in advance!

Best regards,
– Javier Llorente
Endpoint Security - Devoteam

Hi @DevoteamEndpointSecu,

Thanks for trying the script and taking time to provide feedback. We will share you the updated script.

Kind Regards,
PremJK

Hi @DevoteamEndpointSecu,

Please run this updated script prepared by our script developers and update us whether your needs are sufficed.

Note : Run as Logged in User

Kind Regads,
PremJK

20210128-Download_Fonts_zipfile_and_Install_in_the_device.json (5.56 KB)

Hi @PremJkumar

Thanks a lot for the updated script. I’ve been testing it and it works fine: now when the fonts are already installed on the computer the script logs it and skips the installed font face.

I still have two concerns:

  1. The user gets a pop-up progress window for each font face being installed, and the “Cancel” button is enabled, so the user could inadvertently press it and cancel the operation. The installation process should be silent, without any progress bar or other indicator.

  2. The procedure must be run as the logged-in user, so we cannot run it on those devices where no user is logged. We would like to run it on some computers that are online but with no logged-in user, so we need the procedure to be able to be run as the local System user.

Could you please ask the Script Development Team if they can modify those two points?

Thanks a lot in advance!

Best regards,
– Javier Llorente
Endpoint Security - Devoteam

Hi @DevoteamEndpointSecu,

Thanks for checking and providing feedback. We have shared your inputs to our scripts development team and will update you the modified script once available.

Kind Regards,
PremJK

Hi @DevoteamEndpointSecu,

Our script developers analyzed your request but unfortunately its not possible to install in Local System User.
This can be achieved only in Logged in User.

Kind Regards,
PremJK

Hi @PremJkumar

OK, then we will need to warn the users in advance so they are aware of the font deployment and don’t interrupt the process.

Thanks a lot for your kind help!

Regards,
– Javier Llorente
Endpoint Security - Devoteam