question

AbielFattore-6263 avatar image
0 Votes"
AbielFattore-6263 asked CandyLuo-MSFT answered

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

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-server-core
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CandyLuo-MSFT avatar image
0 Votes"
CandyLuo-MSFT answered AbielFattore-6263 commented

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I see this stack overflow post the most. I have tried multiple solutions mentioned in there and still no luck.

0 Votes 0 ·
CandyLuo-MSFT avatar image
0 Votes"
CandyLuo-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.