Closed MDzyga closed 4 years ago
Aside from the issue with font the text is also different (char
-> charr
). Are you sure the font files are deployed correctly to the right path (case sensitive, correct slashes, etc.)?
yes, in other case I could get an exception because of it
Text is different because I have 2 environments and compere them
Can you confirm the version of libgdiplus installed in the Docker environment?
Yes, I will do it tomorrow morning. I noticed that all imported fonts have the same name 'TT Norms' without Bold, Extra Heavy etc. Maybe this is a problem?
this is my command which install libgdiplus in container
RUN apt-get update \
&& apt-get install -y --no-install-recommends libgdiplus libc6-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
locally I have installed 4.2-2 version
That's really old one. It had a bug with loading custom fonts.
could you send me proper command to install the latest?
When I execute apt-get update && apt-get install -y libgdiplus
, I get a messsage:
libgdiplus is already the newest version (4.2-2)
OS: Debian 10
The newer package is available only on Debian sid or through Mono package repositories. I suppose you would need to follow the instructions at https://www.mono-project.com/download/stable/#download-lin-debian.
thanks, it fixed my issue :)
Hi, I migrated an application with .NET Core 3.1 from App Service (OS Windows) to docker container (OS linux) in Azure. After it I noticed my application generate other image (QR Code) than earlier. I didn't change anything in my code, so I think a problem is with your library (System.Drawing.Common is not avalaible on linux).
Windows:
Linux:
I used TT Norms Heavy font family (file with extension ttf).
This is my code in c#