我想创建一个Docker映像使用Alpine和LibreOffice来呈现PDF文档。LibreOffice源文件使用Microsofts新罗马字体。
如何在阿尔卑斯Linux上使用apk安装微软字体?是否有相当于Ubuntus apt install ttf-mscorefonts-installer的数据包?
与此同时,我发现了一个名为[msttcorefonts-installer][1]的包,它似乎提供了我想要的东西。当我试图使用apk add msttcorefonts-installer-3.6-r2在AlpinLinux3.7上安装它时,我会得到以下错误:
ERROR: unsatisfiable constraints:
msttcorefonts-installer-3.6-r2 (missing):
required by: world[msttcorefonts-installer-3.6-r2]发布于 2018-04-17 08:00:43
正如您发现的那样,这个包在阿尔卑斯山被称为msstcorefonts安装程序。
安装后,您将收到一个警告:
下面是一个有效的Dockerfile示例:
FROM alpine:latest
RUN apk --no-cache add msttcorefonts-installer fontconfig && \
update-ms-fonts && \
fc-cache -f要安装fc-cache,必须使用fontconfig包。我不确定这是不是绝对必要的。
https://unix.stackexchange.com/questions/438257
复制相似问题