fix: noto symbols

This commit is contained in:
ndsboy 2024-10-02 23:57:24 +00:00
parent 29ba277592
commit 5e3df02b2a
2 changed files with 6 additions and 8 deletions

View file

@ -1,5 +1,4 @@
FROM mcr.microsoft.com/devcontainers/base:alpine
RUN apk add typst
RUN mkdir -p /home/vscode/.local/share/fonts
RUN wget -O /home/vscode/.local/share/fonts/ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf
RUN wget -O /home/vscode/.local/share/fonts/noto.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf
RUN apk add typst font-noto
RUN mkdir -p /usr/share/fonts/ubuntu
RUN wget -O /usr/share/fonts/ubuntu/ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf

View file

@ -1,9 +1,8 @@
FROM docker.io/alpine:latest AS build
WORKDIR /app
RUN apk add typst
RUN wget -O ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf
RUN wget -O noto.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf
ENV TYPST_FONT_PATHS=/app
RUN apk add typst font-noto
RUN mkdir -p /usr/share/fonts/ubuntu
RUN wget -O /usr/share/fonts/ubuntu/ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf
COPY . .
RUN typst c 3d-druck-agb.typ