Skip to content

Commit

Permalink
Add new fonts for application
Browse files Browse the repository at this point in the history
  • Loading branch information
patelneel55 committed Jan 1, 2021
1 parent 99183d8 commit 2607660
Show file tree
Hide file tree
Showing 41 changed files with 27 additions and 0 deletions.
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.
27 changes: 27 additions & 0 deletions frontend/memoree_client/fonts/f2pub.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/env/python3

import sys
import sh

folder = sys.argv[1]
files = sh.ls("-1", folder, _iter=True)
weight_mapping = {
'Thin': 100,
'ExtraLight': 200,
'Light': 300,
'Medium': 500,
'SemiBold': 600,
'Bold': 700,
'ExtraBold': 800,
'Black': 900,
}

for file in files:
file = str(file[:-1])
print("- asset: fonts/" + folder + "/" + file)
for key, value in weight_mapping.items():
if key in file:
print(" weight:", value)
break
if "Italic" in file:
print(" style: italic")

0 comments on commit 2607660

Please sign in to comment.