Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Mascellani <gmascellani@codeweavers.com>2021-07-16 10:24:34 +0300
committerAndrew Eikum <aeikum@codeweavers.com>2021-08-12 18:54:19 +0300
commitcf9d10ef68973ed5212de51437ba781468abcb72 (patch)
treee3534389e8e6a3236ec87e1f29dad5cfd611bd9a
parent8ad18f38d57be7654ca1f61e3dbaeec666f12c30 (diff)
Build a fake MS Gothic font.
-rw-r--r--build/makefile_base.mak30
-rw-r--r--fonts/patches/MSGothic-FontMenuNameDB5
-rw-r--r--fonts/patches/MSPGothic-FontMenuNameDB5
-rw-r--r--fonts/patches/MSUIGothic-FontMenuNameDB5
-rwxr-xr-xproton1
5 files changed, 46 insertions, 0 deletions
diff --git a/build/makefile_base.mak b/build/makefile_base.mak
index 801ce9bf..6528313c 100644
--- a/build/makefile_base.mak
+++ b/build/makefile_base.mak
@@ -344,6 +344,7 @@ $(DIST_FONTS): fonts
cp $(FONTS_OBJ)/*.ttf "$@"
cp $(FONTS_OBJ)/source-han/msyh.ttf "$@"
cp $(FONTS_OBJ)/source-han/simsun.ttc "$@"
+ cp $(FONTS_OBJ)/source-han/msgothic.ttc "$@"
.PHONY: dist
@@ -840,7 +841,32 @@ nsimsun.ttf_UNISOURCE = $(SOURCE_HAN_SANS_SRCDIR)/UniSourceHanSansCN-UTF32-H
nsimsun.ttf_MENUNAMEDB = $(FONTS)/patches/NSimSun-FontMenuNameDB
nsimsun.ttf = $(FONTS_OBJ)/source-han/nsimsun.ttf
+msgothic.ttf_CIDFONTINFO = $(SOURCE_HAN_SANS_SRCDIR)/cidfontinfo.OTC.J
+msgothic.ttf_CIDFONT = $(SOURCE_HAN_SANS_SRCDIR)/cidfont.ps.OTC.J
+msgothic.ttf_FEATURES = $(SOURCE_HAN_SANS_SRCDIR)/features.OTC.J
+msgothic.ttf_SEQUENCES = $(SOURCE_HAN_SANS_SRCDIR)/SourceHanSans_JP_sequences.txt
+msgothic.ttf_UNISOURCE = $(SOURCE_HAN_SANS_SRCDIR)/UniSourceHanSansJP-UTF32-H
+msgothic.ttf_MENUNAMEDB = $(FONTS)/patches/MSGothic-FontMenuNameDB
+msgothic.ttf = $(FONTS_OBJ)/source-han/msgothic.ttf
+
+mspgothic.ttf_CIDFONTINFO = $(SOURCE_HAN_SANS_SRCDIR)/cidfontinfo.OTC.J
+mspgothic.ttf_CIDFONT = $(SOURCE_HAN_SANS_SRCDIR)/cidfont.ps.OTC.J
+mspgothic.ttf_FEATURES = $(SOURCE_HAN_SANS_SRCDIR)/features.OTC.J
+mspgothic.ttf_SEQUENCES = $(SOURCE_HAN_SANS_SRCDIR)/SourceHanSans_JP_sequences.txt
+mspgothic.ttf_UNISOURCE = $(SOURCE_HAN_SANS_SRCDIR)/UniSourceHanSansJP-UTF32-H
+mspgothic.ttf_MENUNAMEDB = $(FONTS)/patches/MSPGothic-FontMenuNameDB
+mspgothic.ttf = $(FONTS_OBJ)/source-han/mspgothic.ttf
+
+msuigothic.ttf_CIDFONTINFO = $(SOURCE_HAN_SANS_SRCDIR)/cidfontinfo.OTC.J
+msuigothic.ttf_CIDFONT = $(SOURCE_HAN_SANS_SRCDIR)/cidfont.ps.OTC.J
+msuigothic.ttf_FEATURES = $(SOURCE_HAN_SANS_SRCDIR)/features.OTC.J
+msuigothic.ttf_SEQUENCES = $(SOURCE_HAN_SANS_SRCDIR)/SourceHanSans_JP_sequences.txt
+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
+
simsun.ttc = $(FONTS_OBJ)/source-han/simsun.ttc
+msgothic.ttc = $(FONTS_OBJ)/source-han/msgothic.ttc
#The use of "Arial" here is for compatibility with programs that require that exact string. This font is not Arial.
LiberationSans-Regular_NAMES := "Arial" "Arial" "Arial"
@@ -882,6 +908,9 @@ $(FONTS_OBJ)/source-han/%.ttf: $$(%.ttf_CIDFONTINFO) $$(%.ttf_CIDFONTINFO) $$(%.
$(simsun.ttc): $(simsun.ttf) $(nsimsun.ttf)
$(AFDKO_VERB) otf2otc -o $@ $^
+$(msgothic.ttc): $(msgothic.ttf) $(mspgothic.ttf) $(msuigothic.ttf)
+ $(AFDKO_VERB) otf2otc -o $@ $^
+
fonts: $(FONTS_OBJ)/LiberationSans-Regular.ttf
fonts: $(FONTS_OBJ)/LiberationSans-Bold.ttf
fonts: $(FONTS_OBJ)/LiberationSerif-Regular.ttf
@@ -889,6 +918,7 @@ fonts: $(FONTS_OBJ)/LiberationMono-Regular.ttf
fonts: $(FONTS_OBJ)/LiberationMono-Bold.ttf
fonts: $(msyh.ttf)
fonts: $(simsun.ttc)
+fonts: $(msgothic.ttc)
##
## Targets
diff --git a/fonts/patches/MSGothic-FontMenuNameDB b/fonts/patches/MSGothic-FontMenuNameDB
new file mode 100644
index 00000000..1928ce61
--- /dev/null
+++ b/fonts/patches/MSGothic-FontMenuNameDB
@@ -0,0 +1,5 @@
+[SourceHanSans-Regular]
+ f=3,1,0x411,\FF2D\FF33 \30B4\30B7\30C3\30AF
+ s=3,1,0x411,\6A19\6E96
+ f=MS Gothic
+ s=Regular
diff --git a/fonts/patches/MSPGothic-FontMenuNameDB b/fonts/patches/MSPGothic-FontMenuNameDB
new file mode 100644
index 00000000..359d3d59
--- /dev/null
+++ b/fonts/patches/MSPGothic-FontMenuNameDB
@@ -0,0 +1,5 @@
+[SourceHanSans-Regular]
+ f=3,1,0x411,\FF2D\FF33 \FF30\30B4\30B7\30C3\30AF
+ s=3,1,0x411,\6A19\6E96
+ f=MS PGothic
+ s=Regular
diff --git a/fonts/patches/MSUIGothic-FontMenuNameDB b/fonts/patches/MSUIGothic-FontMenuNameDB
new file mode 100644
index 00000000..0ac9bb29
--- /dev/null
+++ b/fonts/patches/MSUIGothic-FontMenuNameDB
@@ -0,0 +1,5 @@
+[SourceHanSans-Regular]
+ f=3,1,0x411,MS UI Gothic
+ s=3,1,0x411,\6A19\6E96
+ f=MS UI Gothic
+ s=Regular
diff --git a/proton b/proton
index cd0f8079..0b4eb923 100755
--- a/proton
+++ b/proton
@@ -447,6 +447,7 @@ class CompatData:
( g_proton.fonts_dir, "LiberationMono-Bold.ttf", "courbd.ttf" ),
( 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.wine_fonts_dir, "tahoma.ttf", "tahoma.ttf" ),
]