I'm trying to get an alpine linux-based installation of prince to render output in the same way as our previous ubuntu version did, but letter spacing is wrong.
salient section of docker file:
`RUN apk add --no-cache llibxml2 pixman tiff giflib libpng libcrypto1.1 lcms2 libjpeg-turbo libgomp libavif aom libcurl msttcorefonts-installer && \
update-ms-fonts fc-cache -f && \
wget -O /tmp/prince-15-alpine3.17-x86_64.tar.gz https:.../Prince/prince-15-alpine3.17-x86_64.tar.gz && \
tar -xf /tmp/prince-15-alpine3.17-x86_64.tar.gz -C /tmp && \
cd /tmp/prince-15-alpine3.17-x86_64 && \
./install.sh && \
rm -rf /tmp/prince-15-alpine3.17-x86_64 && \
rm /tmp/prince-15-alpine3.17-x86_64.tar.gz && \
wget -O /usr/local/lib/prince/license/license.dat https:.../Prince/Licences/license5.dat`
equivalent section in ubuntu based docker file:
`RUN apt install -y libtiff5 libgif7 libfontconfig1 fonts-freefont-ttf texlive-fonts-extra libgomp-plugin-nvptx1 && \
wget -O /tmp/prince-13.1-ubuntu18.04-amd64.tar.gz https:/.../Prince/prince-13.1-ubuntu18.04-amd64.tar.gz && \
tar -xf /tmp/prince-13.1-ubuntu18.04-amd64.tar.gz -C /tmp && \
cd /tmp/prince-13.1-ubuntu18.04-amd64 && \
./install.sh && \
rm -rf /tmp/prince-13.1-ubuntu18.04-amd64 && \
rm /tmp/prince-13.1-ubuntu18.04-amd64.tar.gz && \
wget -O /usr/local/lib/prince/license/license.dat https:.../Prince/Licences/license5.dat && \
rm -rf /var/lib/apt/lists/*`
i've attached two images showing the difference in character spacing/kerning. any insights would be greatly appreciated.
in the attached screenshots prince is defaulting to `/usr/share/fonts/truetype/freefont/FreeSerif.ttf` which it seems to require to be there, but the same problem is occurring with Roboto font as well (not with Merriweather though)
salient section of docker file:
`RUN apk add --no-cache llibxml2 pixman tiff giflib libpng libcrypto1.1 lcms2 libjpeg-turbo libgomp libavif aom libcurl msttcorefonts-installer && \
update-ms-fonts fc-cache -f && \
wget -O /tmp/prince-15-alpine3.17-x86_64.tar.gz https:.../Prince/prince-15-alpine3.17-x86_64.tar.gz && \
tar -xf /tmp/prince-15-alpine3.17-x86_64.tar.gz -C /tmp && \
cd /tmp/prince-15-alpine3.17-x86_64 && \
./install.sh && \
rm -rf /tmp/prince-15-alpine3.17-x86_64 && \
rm /tmp/prince-15-alpine3.17-x86_64.tar.gz && \
wget -O /usr/local/lib/prince/license/license.dat https:.../Prince/Licences/license5.dat`
equivalent section in ubuntu based docker file:
`RUN apt install -y libtiff5 libgif7 libfontconfig1 fonts-freefont-ttf texlive-fonts-extra libgomp-plugin-nvptx1 && \
wget -O /tmp/prince-13.1-ubuntu18.04-amd64.tar.gz https:/.../Prince/prince-13.1-ubuntu18.04-amd64.tar.gz && \
tar -xf /tmp/prince-13.1-ubuntu18.04-amd64.tar.gz -C /tmp && \
cd /tmp/prince-13.1-ubuntu18.04-amd64 && \
./install.sh && \
rm -rf /tmp/prince-13.1-ubuntu18.04-amd64 && \
rm /tmp/prince-13.1-ubuntu18.04-amd64.tar.gz && \
wget -O /usr/local/lib/prince/license/license.dat https:.../Prince/Licences/license5.dat && \
rm -rf /var/lib/apt/lists/*`
i've attached two images showing the difference in character spacing/kerning. any insights would be greatly appreciated.
in the attached screenshots prince is defaulting to `/usr/share/fonts/truetype/freefont/FreeSerif.ttf` which it seems to require to be there, but the same problem is occurring with Roboto font as well (not with Merriweather though)
Edited by Saybrian