Fonts not showing up in control panel or applications


  1. Posts : 202
    Windows 10 x64 1809
       #1

    Fonts not showing up in control panel or applications


    Following this post (I know it's old), doesn't work for me on Windows 10...
    Installing fonts via command line/script - Page 2 - Windows 7 Help Forums

    The fonts exist in the \windows\fonts folder
    Registry entries are added thus...

    REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "ghostdintrek.ttf (TrueType)" /t REG_SZ /d ghostdintrek.ttf /f

    But I can't see them in control panel and word and photoshop don't see them either.

    If I look from a command prompt, the files exist in Windows\fonts. But looking from explorer or control panel they don't show up. If I try to copy a ttf file to the folder from a command prompt it asks if I want to overwrite the file, so it must exist in the fonts folder.

    What am I doing wrong?
      My Computer

  2. dalchina's Avatar
    Posts : 30,551
    Win 10 Pro (1903)
       #2

    Hi, you could compare what you're doing with
    Install Fonts in Windows 10
    - 4 options/methods.
      My Computers


  3. Posts : 202
    Windows 10 x64 1809
    Thread Starter
       #3

    dalchina said:
    Hi, you could compare what you're doing with
    Install Fonts in Windows 10
    - 4 options/methods.
    I'm not doing any of them. They are all manual and require me to touch every single machine for which I want to install fonts.

    Hence the reference to REG ADD. The files are copied by the script to the fonts folder. Then the fonts are added to the registry.

    It's all run from an automation script.
      My Computer

  4. dalchina's Avatar
    Posts : 30,551
    Win 10 Pro (1903)
       #4

    Thank you for your reply. You failed to explain that clearly in your first post.

    Perhaps consider
    Install fonts with a PowerShell script – 4sysops
      My Computers


  5. Posts : 202
    Windows 10 x64 1809
    Thread Starter
       #5

    dalchina said:
    Thank you for your reply. You failed to explain that clearly in your first post.
    Install fonts with a PowerShell script – 4sysops
    My bad, I thought "Installing fonts via command line/script" and "REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "ghostdintrek.ttf (TrueType)" /t REG_SZ /d ghostdintrek.ttf /f" might have inferred I was doing this from a script.I shall try to be more clear from now on.

    Ok, after typing my previous reply, I did some more searching and as you suggest a powershell script seems to be the only way to do it... Ended up with...

    Code:
    $Shell = New-Object -COMObject Shell.Application
    $FONTS = "C:\Windows\Fonts"
    ForEach($File in $(Get-ChildItem -Path ".\fonts")){
        If (Test-Path "C:\Windows\Fonts\$($File.name)")
        { }
        Else
        {
    $Path = $File.FullName
    $Folder = Split-Path $Path
    $File = Split-Path $Path -Leaf
    $ShellFolder = $Shell.Namespace($Folder)
    $ShellFile = $ShellFolder.ParseName($File)
    $ExtAtt2 = $ShellFolder.GetDetailsOf($ShellFile, 2)
    
    #Set the $FontType Variable
      {$FontType = '(TrueType)'}
    
    $ExtAtt21 = $ShellFolder.GetDetailsOf($ShellFile, 21) + ' ' + $FontType
    New-ItemProperty -Name $ExtAtt21 -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Fonts" -PropertyType string -Value $File -Force
    Copy-item $Path -Destination $FONTS
        }
    }
    Interestingly, the fonts were showing up in settings > personalization > fonts, but not in control panel.

    The above script does nothing if the file already exists, and even using takeown and icacls I couldn't delete the file. Had to delete them from settings, and then run the script.

    They still do not show up on control panel or Word until after a reboot, but the script above seems to do the trick for Word. However, I still cannot see the fonts in Photoshop. Maybe CS6 is too old. I'd upgrade, but Adobe products are so damned expensive. Maybe it's time I looked at an open source graphics program like gimp or something similar.

    thanks for your assistance.
      My Computer

  6. dalchina's Avatar
    Posts : 30,551
    Win 10 Pro (1903)
       #6

    Good, some progress, and not the easiest thing to do. I guess looking around a bit you might find other examples that might give a clue. Sorry I can't help further.
      My Computers


  7. Posts : 202
    Windows 10 x64 1809
    Thread Starter
       #7

    aha! Photoshop will only picks up the fonts when added to HKCU. Word picks them up from either HKCU or HKLM. Putting them in both locations duplicates them in word.

    Adding them to HKCU makes them show up in control panel, and when navigating to %windir%\Fonts. In HKLM they don't show up in either of those.

    Settings > Pesonalization > Fonts picks them up from each location.

    I'll change my script to add them to HKCU... The PCs have only one user account.

    In HKLM there are hundreds of entries. In Control Panel > Fonts it only shows 122.
    HKCU was empty before I manually added a couple of fonts.
    Now that makes no sense to me, but then, nothing about Windows 10 ever makes much sense anyway.
    I guess since Control panel is slowly being retired, and since they show up in Settings, it doesn't matter. Settings is really badly formatted; you can't change the view to list, so it's a pain to navigate... Oh well.
      My Computer

  8. dalchina's Avatar
    Posts : 30,551
    Win 10 Pro (1903)
       #8

    Sounds good- yes, MS is steadily moving the function of applets from the CP to Settings, and as you say quite often with reduced functionality. I find the data is sometimes presented in a much expanded manner (more screen space per item), and read and displayed more slowly in Settings.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:22.
Find Us




Windows 10 Forums