unify the the font listing

This commit is contained in:
z4yx 2020-02-26 11:10:35 +08:00
parent 2c724c1a5c
commit 8e2f7d6c9f

View File

@ -518,25 +518,24 @@ category = app
[adobe source fonts]
distro = Adobe Source
listvers = 1
listvers = 100
location_0 = adobe-fonts/source-sans-pro/*/*.*
location_1 = adobe-fonts/source-serif-pro/*/*.*
location_2 = adobe-fonts/source-code-pro/*/*.*
pattern = (\w+-\w+)\.(ttf|otf)
platform = $1
type = $2
version = latest
pattern = (\w+)-(\w+)\.(ttf|otf)
platform = $2
type = $3
version = $1 latest
category = font
[adobe source han fonts]
distro = Adobe Source Han
listvers = 1
listvers = 100
location_0 = adobe-fonts/source-han-sans/*/*.zip
location_1 = adobe-fonts/source-han-serif/*/*.zip
pattern = (\w+)/([-\w]+)\.zip
platform = $2
type = $1
version = latest
platform = $1
version = $2 latest
category = font
[google fonts]
@ -544,7 +543,7 @@ distro = Google Noto
listvers = 10
location = github-release/googlefonts/*/*/*
pattern = googlefonts/(noto-\w+)/.*([vV][\.\d-]+\d).*/.+
platform = Any OS
platform = ttf
version = $1 $2
category = font
@ -553,6 +552,6 @@ distro = Sarasa Gothic
listvers = 10
location = github-release/be5invis/Sarasa-Gothic/*/*
pattern = .+-(\w+)-([\.\d]+)\.\w+
platform = Any OS
version = $1 $2
platform = $1
version = $2
category = font