From 0683ff8926d1504c102b642cfa9d344d26f43851 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 16 Jul 2021 09:53:50 +0200 Subject: [PATCH] Build a fake Malgun Gothic font. --- build/makefile_base.mak | 10 ++++++++++ fonts/patches/Malgun-FontMenuNameDB | 5 +++++ proton | 1 + 3 files changed, 16 insertions(+) create mode 100644 fonts/patches/Malgun-FontMenuNameDB diff --git a/build/makefile_base.mak b/build/makefile_base.mak index 6528313c..3da88f73 100644 --- a/build/makefile_base.mak +++ b/build/makefile_base.mak @@ -345,6 +345,7 @@ $(DIST_FONTS): fonts cp $(FONTS_OBJ)/source-han/msyh.ttf "$@" cp $(FONTS_OBJ)/source-han/simsun.ttc "$@" cp $(FONTS_OBJ)/source-han/msgothic.ttc "$@" + cp $(FONTS_OBJ)/source-han/malgun.ttf "$@" .PHONY: dist @@ -865,6 +866,14 @@ msuigothic.ttf_UNISOURCE = $(SOURCE_HAN_SANS_SRCDIR)/UniSourceHanSansJP-UTF32-H msuigothic.ttf_MENUNAMEDB = $(FONTS)/patches/MSUIGothic-FontMenuNameDB msuigothic.ttf = $(FONTS_OBJ)/source-han/msuigothic.ttf +malgun.ttf_CIDFONTINFO = $(SOURCE_HAN_SANS_SRCDIR)/cidfontinfo.OTC.K +malgun.ttf_CIDFONT = $(SOURCE_HAN_SANS_SRCDIR)/cidfont.ps.OTC.K +malgun.ttf_FEATURES = $(SOURCE_HAN_SANS_SRCDIR)/features.OTC.K +malgun.ttf_SEQUENCES = $(SOURCE_HAN_SANS_SRCDIR)/SourceHanSans_KR_sequences.txt +malgun.ttf_UNISOURCE = $(SOURCE_HAN_SANS_SRCDIR)/UniSourceHanSansKR-UTF32-H +malgun.ttf_MENUNAMEDB = $(FONTS)/patches/Malgun-FontMenuNameDB +malgun.ttf = $(FONTS_OBJ)/source-han/malgun.ttf + simsun.ttc = $(FONTS_OBJ)/source-han/simsun.ttc msgothic.ttc = $(FONTS_OBJ)/source-han/msgothic.ttc @@ -919,6 +928,7 @@ fonts: $(FONTS_OBJ)/LiberationMono-Bold.ttf fonts: $(msyh.ttf) fonts: $(simsun.ttc) fonts: $(msgothic.ttc) +fonts: $(malgun.ttf) ## ## Targets diff --git a/fonts/patches/Malgun-FontMenuNameDB b/fonts/patches/Malgun-FontMenuNameDB new file mode 100644 index 00000000..cbb8904d --- /dev/null +++ b/fonts/patches/Malgun-FontMenuNameDB @@ -0,0 +1,5 @@ +[SourceHanSansK-Regular] + f=3,1,0x412,\B9D1\C740 \ACE0\B515 + s=3,1,0x412,Regular + f=Malgun Gothic + s=Regular diff --git a/proton b/proton index 0b4eb923..e9ffcc4b 100755 --- a/proton +++ b/proton @@ -448,6 +448,7 @@ class CompatData: ( g_proton.fonts_dir, "msyh.ttf", "msyh.ttf" ), ( g_proton.fonts_dir, "simsun.ttc", "simsun.ttc" ), ( g_proton.fonts_dir, "msgothic.ttc", "msgothic.ttc" ), + ( g_proton.fonts_dir, "malgun.ttf", "malgun.ttf" ), ( g_proton.wine_fonts_dir, "tahoma.ttf", "tahoma.ttf" ), ]