PDF font issue in Linux - Accepting truefont EULA?

Hi. I am printing some PDFs inside docker.
Things worked well till 2 months ago. Application code and Gembox version not changed since then. Suddenly we have font issue.

I am suspecting this line cause an issue in the docker file

RUN apt-get update && apt-get install -y libfreetype6 libfontconfig1 libc6-dev ttf-mscorefonts-installer fontconfig

ttf-mscorefonts-installer seems to complain about EULA must be accepted. On my local everything is building fine and no EULA confirmation menu pops up but on the build server it seems confirmation is needed

Do anyone face the same issue?

Can you send us a small Visual Studio project that reproduces your issue?
Or perhaps just a Dockerfile will be enough?
I’ll try to reproduce the issue and investigate it.

In the Dockerfile there is only that notable line

RUN apt-get update && apt-get install -y libfreetype6 libfontconfig1 libc6-dev ttf-mscorefonts-installer fontconfig

I have a part of the build log

16.01 Selecting previously unselected package ttf-mscorefonts-installer.

16.01 Preparing to unpack …/37-ttf-mscorefonts-installer_3.8ubuntu2_all.deb …

16.07 debconf: unable to initialize frontend: Dialog

16.07 debconf: (TERM is not set, so the dialog frontend is not usable.)

16.07 debconf: falling back to frontend: Readline

16.07 debconf: unable to initialize frontend: Readline

16.07 debconf: (Can’t locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)

16.07 debconf: falling back to frontend: Teletype

16.10 Configuring ttf-mscorefonts-installer

16.10 -------------------------------------

16.10

16.10

16.10 Should you have any questions concerning this EULA, or if you desire to contact

16.10 Microsoft for any reason, please contact the Microsoft subsidiary serving your

16.10 country, or write: Microsoft Sales Information Center/One Microsoft

16.10 Way/Redmond, WA 98052-6399.

16.10

16.10 Reference: Microsoft Typography documentation - Typography | Microsoft Learn

16.10

16.10 In order to install this package, you must accept the license terms, the

16.10 "TrueType core fonts for the Web EULA ". Not accepting will cancel the

16.10 installation.

16.10

16.10 Do you accept the EULA license terms? [yes/no]

16.10 Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 111.

16.10 Declined "TrueType core fonts for the Web EULA "

16.10

16.10 If you do not agree to the "TrueType core fonts for the Web EULA " license

16.10 terms you cannot install this software.

16.10

16.10 The installation of this package will be canceled.

16.10

16.10 user did not accept the mscorefonts-eula license

16.10 Use of uninitialized value $val in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83, line 12.

16.10 Use of uninitialized value $val in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84, line 12.

16.11 Unpacking ttf-mscorefonts-installer (3.8ubuntu2) …

Do you reproduce the same issue with our Docker example project?

I’m afraid I was unable to reproduce your problem.
Nevertheless, try using this:

RUN apt-get update \
    && apt-get install -y --allow-unauthenticated \
    libfreetype6 libfontconfig1 libc6-dev \
    fontconfig \
    ttf-mscorefonts-installer

I hope it helps.

Regards,
Mario