From 77feb05bada93eca3e282e0d6ff78a35c60739b1 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 16 Feb 2024 11:34:30 +0200 Subject: [PATCH] change font --- Dockerfile | 4 ++-- lib/submissions/generate_audit_trail.rb | 4 ++-- lib/submissions/generate_result_attachments.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 67bd9f1e..211cc491 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM ruby:3.2.2-alpine3.18 as fonts WORKDIR /fonts -RUN apk --no-cache add wget && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoCurrent-Regular.ttf && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoCurrent-Bold.ttf && wget https://github.com/impallari/DancingScript/raw/master/fonts/DancingScript-Regular.otf && wget https://github.com/impallari/DancingScript/raw/master/OFL.txt +RUN apk --no-cache add wget && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Regular.ttf && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Bold.ttf && wget https://github.com/impallari/DancingScript/raw/master/fonts/DancingScript-Regular.otf && wget https://github.com/impallari/DancingScript/raw/master/OFL.txt FROM ruby:3.2.2-alpine3.18 as webpack @@ -53,7 +53,7 @@ COPY ./public ./public COPY ./tmp ./tmp COPY LICENSE README.md Rakefile config.ru .version ./ -COPY --from=fonts /fonts/GoNotoCurrent-Regular.ttf /fonts/GoNotoCurrent-Bold.ttf /fonts/DancingScript-Regular.otf /fonts/OFL.txt /fonts +COPY --from=fonts /fonts/GoNotoKurrent-Regular.ttf /fonts/GoNotoKurrent-Bold.ttf /fonts/DancingScript-Regular.otf /fonts/OFL.txt /fonts COPY --from=webpack /app/public/packs ./public/packs RUN ln -s /fonts /app/public/fonts diff --git a/lib/submissions/generate_audit_trail.rb b/lib/submissions/generate_audit_trail.rb index 520834f2..72d9f295 100644 --- a/lib/submissions/generate_audit_trail.rb +++ b/lib/submissions/generate_audit_trail.rb @@ -4,8 +4,8 @@ module Submissions module GenerateAuditTrail FONT_SIZE = 9 TEXT_COLOR = '525252' - FONT_PATH = '/fonts/GoNotoCurrent-Regular.ttf' - FONT_BOLD_PATH = '/fonts/GoNotoCurrent-Bold.ttf' + FONT_PATH = '/fonts/GoNotoKurrent-Regular.ttf' + FONT_BOLD_PATH = '/fonts/GoNotoKurrent-Bold.ttf' FONT_NAME = if File.exist?(FONT_PATH) FONT_PATH else diff --git a/lib/submissions/generate_result_attachments.rb b/lib/submissions/generate_result_attachments.rb index 03168bbb..d8308c83 100644 --- a/lib/submissions/generate_result_attachments.rb +++ b/lib/submissions/generate_result_attachments.rb @@ -3,7 +3,7 @@ module Submissions module GenerateResultAttachments FONT_SIZE = 11 - FONT_PATH = '/fonts/GoNotoCurrent-Regular.ttf' + FONT_PATH = '/fonts/GoNotoKurrent-Regular.ttf' FONT_NAME = if File.exist?(FONT_PATH) FONT_PATH else