Can I install and use my own fonts (noto) in a windows server core container?

Abiel Fattore 1 Reputation point
2021-06-09T21:01:30.397+00:00

I am using Windows Server Core and I have the font that I want to use (NotoSansDisplay-Light.ttf) installed and in the C:\Windows\Fonts directory of the container but rendering text shows as boxes or tofu when trying to render Japanese characters. English characters work fine. I have seen a lot of 'solutions' but non of them are working and I read in maybe an outdated document (https://blogs.windows.com/windows-insider/2018/05/29/announcing-windows-server-2019-insider-preview-build-17677/) that people can't install fonts on windows server core and that it just uses Arial. I don't think this is true anymore since I was able to see my font installed and that there is no Arial font, just lucon.ttf.

Any idea why my font isn't being used for the Japanese characters?

This is my Dockerfile:

FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
ARG source
COPY NotoSansDisplay-Light.ttf c:/windows/fonts/NotoSansDisplay-Light.TTF
RUN powershell.exe -NoProfile -Command New-ItemProperty -Path 'HKLM:/SOFTWARE/Microsoft/Windows` NT/CurrentVersion/Fonts' -Name 'NotoSansDisplay' -PropertyType String -Value NotoSansDisplay-Light.ttf
COPY . /inetpub/wwwroot
WORKDIR /inetpub/wwwroot
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2021-06-10T07:24:39.05+00:00

    Hi,

    Please check if the following link can help with you:

    Adding fonts in server core 2019ltsc container image

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Anonymous
    2021-06-11T01:24:58.96+00:00

    Hi,

    Since you have tried multiple solutions and still no luck, I would suggest you contact Microsoft Customer Support and Services where more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this issue.

    You may find phone number for your region accordingly from the link below:

    https://support.microsoft.com/en-us/gp/customer-service-phone-numbers

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.