Can we copy fonts from host machine inside the container running on same machine ?

Aarushi Agarwal 1 Reputation point
2022-03-30T08:12:41.133+00:00

The official docker image provided Microsoft - ltsc2019 only has a single font - lucon.ttf. We aim to have all the fonts in the base image which are present in a Windows Server 2019 machine. Is it legal to copy the fonts from the Server host machine inside the docker image?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,754 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,641 Reputation points
    2022-04-06T08:09:02.887+00:00

    Hi @Aarushi Agarwal

    You can proceed with the strategy outlined below, as suggested by other responses. Most crucial, properly register the font and font Link.

    Copy required fonts either from your local machine(C:\Windows\Fonts) or from mcr.microsoft.com/windows container image(you can use volume binding while running the container to copy fonts)
    Register the copied fonts.
    Register the FontLink for the copied fonts.
    lucon.ttf which is present by default does not support asian languages

    Hope this answers your question :)
    Thank you.

    --
    --If the reply is helpful, please Upvote and Accept as answer--

    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.