+ Post New Thread
Results 1 to 8 of 8
Wireless Networks Thread, Deploying Fonts in Technical; How do you guys deploy your fonts? I have found some scripts which are suppose to del the fonts if ...
  1. #1

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,191
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56

    Deploying Fonts

    How do you guys deploy your fonts?

    I have found some scripts which are suppose to del the fonts if found and then recopy them into the systemroot / fonts folder. It then goes on to register these fonts using a .reg file.

    However after i had placed the batch file into a group policy linked to an OU it does not run the script.

    I manually ran it at the client and then confirmed that the fonts were indeed in the fonts folder.

    I opened word 2003 and found that they were not in the fonts list?

    How can i resolve this issue. It has been ongoing now for a bit and staff are starting to complain now.

    Hope you can help.

    Thanks.

  2. #2
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Deploying Fonts

    Did you restart the machine you ran the script on. As far as i remember, when you install a true type font you need to do 2 things. First is copy the font into the font folder and the second is to make the appropriate edits to reg. It would seem that you are doing that so the only thing you need to do is to reboot as it doesnt pick up the font straight away.

    If its not that then i would imagine the reg edit is wrong.

  3. #3

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,191
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56

    Re: Deploying Fonts

    can't believe i forgot to reboot.

    But if the font gets deleted and then re-copied and then re-registered, will it just turn into a continuous loop?

  4. #4

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 770 Times in 598 Posts
    Rep Power
    182

    Re: Deploying Fonts

    Quote Originally Posted by HodgeHi
    can't believe i forgot to reboot.

    But if the font gets deleted and then re-copied and then re-registered, will it just turn into a continuous loop?
    surely it would be more efficient to only add new fonts... a simple if exist statement should do the trick.

  5. #5
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Deploying Fonts

    Quote Originally Posted by HodgeHi
    can't believe i forgot to reboot.

    But if the font gets deleted and then re-copied and then re-registered, will it just turn into a continuous loop?
    Well sort of i guess but the reason you reboot is so the reg info is loaded in properly. Therefore even if you re-copy and re-register it it kinda dont matter cause the settings are there from when you did it first, and all thats done is that you've written over it but the settings were there when it rebooted. Thats how i understand it anyway, it only causes an issue if you change the reg to something different each time then the latest settings wont be taken till its rebooted. ops: ok i think i know what im saying but i think its coming out all confusing lol

  6. #6

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,157
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124

    Re: Deploying Fonts

    This is the script I use - you'd need to change the array of font file names and font name as well as server locations to match - it runs at machine startup and seems to work :-)

    Code:
    Sub InstallFonts
      on error resume next
      sFontFolder="c:\windows\fonts\"
      sFonts=array("hum521i.TTF")
      sFontNames=array("Humanist 521 Italic BT (Truetype)")
      for i=lbound(sFonts) to uBound(sFonts)
        if not ofso.fileexists(sFontFolder & sFonts(i)) then
          ofso.copyfile "\\server\share\stdfonts\" & sFonts(i),sFontFolder
          oShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts\" & sFontNames(i), sFonts(i), "REG_SZ"
        end if
      next
      on error goto 0
    End Sub

  7. #7

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,191
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56

    Re: Deploying Fonts

    Thanks for the script i will look into it Monday.

    I wasn't emailed to alert me of the new post so got it just now.

  8. #8

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,191
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56

    Fonts script

    Hello,

    So i tried the script Yesterday (which was Monday just not the one i intended on) and it seems to not be able to copy the fonts over. I edited the script array to add the fonts i needed and also the server name and share part but it still seems to not do anything.

    Here is the script as it stands now.

    Sub InstallFonts
    on error resume next
    sFontFolder="c:\windows\fonts\"
    sFonts=array("SAPI.TTF","SAPIB.TTF","SAPT.TTF","SA PTB.TTF")
    sFontNames=array("SassoonPrimaryInfant Regular (TrueType)","SassoonPrimaryInfant Bold (TrueType)","SassoonPrimaryType Regular (TrueType)","SassoonPrimaryType Bold (TrueType)")
    for i=lbound(sFonts) to uBound(sFonts)
    if not ofso.fileexists(sFontFolder & sFonts(i)) then
    ofso.copyfile "\\servername\Fonts$\" & sFonts(i),sFontFolder
    oShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts\" & sFontNames(i), sFonts(i), "REG_SZ"
    end if
    next
    on error goto 0
    End Sub
    I set it in Group policy to run as a start up script on the Computer OU. It runs without any errors and gets to the login prompt fine. I have checked to see if it registers in the reg but that also has not happened either.

    Any ideas?

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 24
    Last Post: 16th July 2013, 10:33 AM
  2. Installing/Copying Fonts from Login Script
    By mattpant in forum Windows
    Replies: 10
    Last Post: 11th August 2011, 09:24 PM
  3. Missing fonts in Publisher 2003
    By Kyle in forum Windows
    Replies: 1
    Last Post: 17th October 2007, 10:05 AM
  4. Help with Fonts
    By Mr_M_Cox in forum Windows
    Replies: 6
    Last Post: 10th September 2007, 11:17 AM
  5. Replies: 5
    Last Post: 14th November 2005, 12:24 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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