Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label text overlaping issue after moved on AKS #243

Open
PradeepTiwari98 opened this issue May 24, 2024 · 6 comments
Open

Label text overlaping issue after moved on AKS #243

PradeepTiwari98 opened this issue May 24, 2024 · 6 comments

Comments

@PradeepTiwari98
Copy link

PradeepTiwari98 commented May 24, 2024

When try to download zpl label in pdf on my local machine then label looking good, but after moving on AKS getting text overlaping issue in label. please see below screenshot.
Please suggest if any reference missing.

Local machine label
image

After moved on AKS

image

@PradeepTiwari98 PradeepTiwari98 changed the title Label text overlap when move on AKS Label text overlaping issue after moved on AKS May 24, 2024
@primo-ppcg
Copy link
Collaborator

The issue is that a font with appropriate metrics is not installed on the server.

@YipingRuan do you think it would be a good idea to package an open source font with the Web Viewer? This is a commonly mentioned issue.

@YipingRuan
Copy link
Contributor

The issue is that a font with appropriate metrics is not installed on the server.

@YipingRuan do you think it would be a good idea to package an open source font with the Web Viewer? This is a commonly mentioned issue.

Do you mean adding a package to the C# project or in the docker image?
Either way is cool.

@primo-ppcg
Copy link
Collaborator

Do you mean adding a package to the C# project or in the docker image?

Preferably to the docker image. I'd rather not distribute it.

@YipingRuan
Copy link
Contributor

@primo-ppcg Will you be okay to test the below?

RUN apt-get update; apt-get install -y fontconfig
RUN mkdir -p /usr/share/fonts/custom
COPY "What are the fonts we need to add?" /usr/share/fonts/custom
RUN fc-cache -f -v

@PradeepTiwari98
Copy link
Author

We have already install libfontconfig1 on server (Please see below)

RUN apt-get update &&
apt-get install -y libfreetype6 libfontconfig1
RUN apt-get update && apt-get install -y libgdiplus
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build

Refering to follwing commond

COPY "What are the fonts we need to add?" /usr/share/fonts/custom

Could you please confirm what are the fonts need to install on server??

@primo-ppcg
Copy link
Collaborator

COPY "What are the fonts we need to add?" /usr/share/fonts/custom

Nimbus Sans Narrow Bold seems to be a good substitute for Helvetica Sans Narrow Bold.
/usr/share/fonts/opentype/urw-base35/NimbusSansNarrow-Bold.otf

I'm unsure if it's available on the target server, though. And also:
/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants