Add replacement font for Courier Bold.
CW-Bug-Id: 18862
This commit is contained in:
parent
575d9bc1f9
commit
e1885f8496
2 changed files with 12 additions and 3 deletions
|
@ -781,6 +781,7 @@ LIBERATION_SANS_REGULAR_SFD = LiberationSans-Regular.sfd
|
|||
LIBERATION_SANS_BOLD_SFD = LiberationSans-Bold.sfd
|
||||
LIBERATION_SERIF_REGULAR_SFD = LiberationSerif-Regular.sfd
|
||||
LIBERATION_MONO_REGULAR_SFD = LiberationMono-Regular.sfd
|
||||
LIBERATION_MONO_BOLD_SFD = LiberationMono-Bold.sfd
|
||||
|
||||
SOURCE_HAN_SANS_REGULAR_CIDFONTINFO = $(SOURCE_HAN_SANS_SRCDIR)/cidfontinfo.OTC.SC
|
||||
SOURCE_HAN_SANS_REGULAR_CIDFONT = $(SOURCE_HAN_SANS_SRCDIR)/cidfont.ps.OTC.SC
|
||||
|
@ -793,11 +794,14 @@ LIBERATION_SANS_REGULAR_TTF = $(addprefix $(FONTS_OBJ)/, $(LIBERATION_SANS_REGUL
|
|||
LIBERATION_SANS_BOLD_TTF = $(addprefix $(FONTS_OBJ)/, $(LIBERATION_SANS_BOLD_SFD:.sfd=.ttf))
|
||||
LIBERATION_SERIF_REGULAR_TTF = $(addprefix $(FONTS_OBJ)/, $(LIBERATION_SERIF_REGULAR_SFD:.sfd=.ttf))
|
||||
LIBERATION_MONO_REGULAR_TTF = $(addprefix $(FONTS_OBJ)/, $(LIBERATION_MONO_REGULAR_SFD:.sfd=.ttf))
|
||||
LIBERATION_MONO_BOLD_TTF = $(addprefix $(FONTS_OBJ)/, $(LIBERATION_MONO_BOLD_SFD:.sfd=.ttf))
|
||||
SOURCE_HAN_SANS_REGULAR_OTF = $(FONTS_OBJ)/SourceHanSansSCRegular.otf
|
||||
|
||||
LIBERATION_SFDS = $(LIBERATION_SANS_REGULAR_SFD) $(LIBERATION_SANS_BOLD_SFD) $(LIBERATION_SERIF_REGULAR_SFD) $(LIBERATION_MONO_REGULAR_SFD)
|
||||
LIBERATION_SFDS = $(LIBERATION_SANS_REGULAR_SFD) $(LIBERATION_SANS_BOLD_SFD) $(LIBERATION_SERIF_REGULAR_SFD) $(LIBERATION_MONO_REGULAR_SFD) \
|
||||
$(LIBERATION_MONO_BOLD_SFD)
|
||||
FONT_TTFS = $(LIBERATION_SANS_REGULAR_TTF) $(LIBERATION_SANS_BOLD_TTF) \
|
||||
$(LIBERATION_SERIF_REGULAR_TTF) $(LIBERATION_MONO_REGULAR_TTF)
|
||||
$(LIBERATION_SERIF_REGULAR_TTF) $(LIBERATION_MONO_REGULAR_TTF) \
|
||||
$(LIBERATION_MONO_BOLD_TTF)
|
||||
FONTS_SRC = $(FONT_TTFS:.ttf=.sfd)
|
||||
|
||||
#The use of "Arial" here is for compatibility with programs that require that exact string. This font is not Arial.
|
||||
|
@ -817,6 +821,10 @@ $(LIBERATION_MONO_REGULAR_TTF): $(FONTS_SRC) $(FONTSCRIPT)
|
|||
patch $(@:.ttf=.sfd) $(FONTS)/patches/$(LIBERATION_MONO_REGULAR_SFD:.sfd=.patch)
|
||||
$(FONTFORGE) -script $(FONTSCRIPT) $(@:.ttf=.sfd) "CourierNew" "Courier New" "Courier New"
|
||||
|
||||
#The use of "Courier New" here is for compatibility with programs that require that exact string. This font is not Courier New.
|
||||
$(LIBERATION_MONO_BOLD_TTF): $(FONTS_SRC) $(FONTSCRIPT)
|
||||
$(FONTFORGE) -script $(FONTSCRIPT) $(@:.ttf=.sfd) "CourierNewPS-BoldMT" "Courier New" "Courier New Bold"
|
||||
|
||||
#The use of "YaHei" for compatibility with programs that require that exact string. This font is not Microsoft YaHei.
|
||||
$(SOURCE_HAN_SANS_REGULAR_OTF): $(SOURCE_HAN_SANS_REGULAR_CIDFONTINFO) $(SOURCE_HAN_SANS_REGULAR_CIDFONT) \
|
||||
$(SOURCE_HAN_SANS_REGULAR_FEATURES) $(SOURCE_HAN_SANS_REGULAR_SEQUENCES) $(SOURCE_HAN_SANS_REGULAR_UNISOURCE) $(YAHEI_MENUNAMEDB)
|
||||
|
@ -834,7 +842,7 @@ $(FONTS_SRC): $(FONTS_OBJ)
|
|||
|
||||
fonts: $(LIBERATION_SANS_REGULAR_TTF) $(LIBERATION_SANS_BOLD_TTF) \
|
||||
$(LIBERATION_SERIF_REGULAR_TTF) $(LIBERATION_MONO_REGULAR_TTF) \
|
||||
$(SOURCE_HAN_SANS_REGULAR_OTF) | $(FONTS_SRC)
|
||||
$(LIBERATION_MONO_BOLD_TTF) $(SOURCE_HAN_SANS_REGULAR_OTF) | $(FONTS_SRC)
|
||||
|
||||
##
|
||||
## Targets
|
||||
|
|
1
proton
1
proton
|
@ -396,6 +396,7 @@ class CompatData:
|
|||
( "LiberationSans-Bold.ttf", "arialbd.ttf" ),
|
||||
( "LiberationSerif-Regular.ttf", "times.ttf" ),
|
||||
( "LiberationMono-Regular.ttf", "cour.ttf" ),
|
||||
( "LiberationMono-Bold.ttf", "courbd.ttf" ),
|
||||
( "SourceHanSansSCRegular.otf", "msyh.ttf" ),
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in a new issue