ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.06k stars 239 forks source link

No Fonts installed on the device!! Linux container #406

Open krish449 opened 10 months ago

krish449 commented 10 months ago

Hi Team,

we are using PDF sharp Core package (1.3.62) . Currently while using it in Linux container, we are getting an issue "No fonts installed on the device"

Tried , different ways(commands) installing fonts through docker. but it was not installed and still facing the error.

Commands used:

RUN echo "deb http://deb.debian.org/debian stable main contrib non-free" > /etc/apt/sources.list \ && echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections \ && apt-get update \ && apt-get install -y \ ttf-mscorefonts-installer \ && apt-get clean \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/*

RUN apk --no-cache add msttcorefonts-installer fontconfig && \ update-ms-fonts && \ fc-cache -f

tossnet commented 9 months ago

Maybe you can found in my source a solution : https://github.com/tossnet/Blazor-PdfSharpCore the demo in the readme run in a Linux