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