[ADD] Times New Roman: установка шрифтов в Docker + fontconfig

This commit is contained in:
Arseny
2026-07-15 21:47:54 +03:00
parent 0c3c3496a8
commit 3a1acafc24
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -7,8 +7,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
texlive-lang-cyrillic \
texlive-latex-extra \
fonts-liberation \
cabextract \
wget \
fontconfig \
&& rm -rf /var/lib/apt/lists/*
RUN cd /tmp && \
wget -q https://downloads.sourceforge.net/corefonts/times32.exe && \
cabextract times32.exe && \
mkdir -p /usr/share/fonts/truetype/msttcorefonts && \
cp -f *.TTF /usr/share/fonts/truetype/msttcorefonts/ && \
fc-cache -f && \
rm -f /tmp/*.TTF /tmp/times32.exe
WORKDIR /app
COPY . .
RUN uv sync --frozen --no-dev
+1 -1
View File
@@ -2,7 +2,7 @@ PREAMBLE = r"""\documentclass[a4paper, 14pt]{extarticle}
\usepackage{geometry}
\geometry{a4paper,tmargin=2cm,bmargin=2cm,lmargin=3cm,rmargin=1.5cm}
\usepackage{fontspec}
\setmainfont{Liberation Serif}
\setmainfont{Times New Roman}
\setsansfont{Liberation Sans}
\setmonofont{Liberation Mono}
\usepackage[english, main=russian]{babel}