mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-30 16:45:36 +03:00
ca928d31f9
Fonts are from https://github.com/googlefonts/noto-fonts.git at 04a4c62ce05b628f80c0d3b6a455ca8201b65286, in hinted/ttf folder. CW-Bug-Id: #17132
30 lines
638 B
Plaintext
30 lines
638 B
Plaintext
if ($argc < 6)
|
|
Error ("Expected arguments - Font1, Font2, Font3, ..., FontName, FullName, FontWeight, OutputFilename")
|
|
endif
|
|
|
|
FONTNAME = ToString($argv[$argc - 4])
|
|
FULLNAME = ToString($argv[$argc - 3])
|
|
FONTWEIGHT = ToString($argv[$argc - 2])
|
|
SRCFONTNAME = ToString($argv[1])
|
|
DESTFONTNAME = ToString($argv[$argc - 1])
|
|
|
|
Open(SRCFONTNAME)
|
|
|
|
i = 2
|
|
while (i < $argc - 4)
|
|
MergeFonts($argv[i])
|
|
i = i + 1
|
|
endloop
|
|
|
|
SetFontNames(FONTNAME, FULLNAME, FULLNAME, FONTWEIGHT, "", "1.0.0")
|
|
Generate(DESTFONTNAME)
|
|
Close()
|
|
|
|
Open(DESTFONTNAME)
|
|
Reencode("unicode")
|
|
SelectWorthOutputting()
|
|
SelectInvert()
|
|
BuildAccented()
|
|
Generate(DESTFONTNAME)
|
|
Close()
|