font update
This commit is contained in:
parent
09edd46a4c
commit
050cc9fe44
|
@ -0,0 +1,5 @@
|
|||
I have a git repo with a bunch of folders and files. I use it as a file server. There's a git post-receive hook that make all those files available on a web server.
|
||||
|
||||
One of those folders contains fonts and folders with font files. I would like a bash script that would generate a list of every fonts in the folder.
|
||||
|
||||
Then, I would like to generate a simple html page with all those fonts listed with the name written in the font itself.
|
|
@ -59,7 +59,27 @@ typefaces_js = '[\n' + ',\n'.join(
|
|||
' }'
|
||||
for typeface in typefaces
|
||||
) + '\n]'
|
||||
|
||||
# Write the JavaScript string to a .js file
|
||||
with open('00_typefaces.js', 'w') as f:
|
||||
f.write('var typeFaces = ' + typefaces_js + ';')
|
||||
|
||||
typefaces = sorted(typefaces, key=lambda k: k['name'])
|
||||
|
||||
# Write the JavaScript object
|
||||
with open('01_object.js', 'w') as f:
|
||||
f.write('typeFaces = {\n')
|
||||
|
||||
for typeface in typefaces:
|
||||
f.write(f' {typeface["name"].lower()} : {{\n')
|
||||
f.write(f' "name": "{typeface["name"]}",\n')
|
||||
f.write(f' "fonts": [\n')
|
||||
for font in typeface['fonts']:
|
||||
f.write(f' "{font}",\n')
|
||||
f.write(f' ],\n')
|
||||
f.write(f' "tags": ["sans-serif"],\n')
|
||||
f.write(f' "link": "",\n')
|
||||
f.write(f' "creator": "",\n')
|
||||
f.write(f' "creatorLink": "",\n')
|
||||
f.write(f' "licence": "",\n')
|
||||
f.write(f' "commercial": false,\n')
|
||||
f.write(f' "open": false,\n')
|
||||
f.write(f' }},\n')
|
||||
|
||||
f.write('};')
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,17 @@
|
|||
|
||||
By installing or using this font you agree to the Product Usage Agreement:
|
||||
All components accompanying the software are copyrighted by Adrian Jordanov and may not be taken apart or modified
|
||||
The fonts, all of its derivatives, title and accompanying materials are the exclusive property of Adrian Jordanov.
|
||||
|
||||
-----------------------
|
||||
|
||||
This font is free FOR PERSONAL AND COMMERCIAL USE
|
||||
|
||||
-----------------------
|
||||
IF YOU WISH TO DONATE
|
||||
paypal.me/adrianjordanovdesign
|
||||
|
||||
For further information or if you wish to submit any errors or bugs with the font , please contact designer:
|
||||
|
||||
Adrian Jordanov
|
||||
adrian.jordanov@gmail.com
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue