Skip to content

Commit

Permalink
Adding some missing font
Browse files Browse the repository at this point in the history
  • Loading branch information
eried committed May 11, 2024
1 parent e666eb1 commit 4a96feb
Show file tree
Hide file tree
Showing 35 changed files with 75 additions and 425 deletions.
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/Blackbook 3rd-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Version 1.00 April 11, 2014, initial release
Binary file removed hardware/portapack_h2m/fonts/Blackbook 3rd.woff
Binary file not shown.
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/BlackbookOne-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This font was created using FontCreator 6.0 from High-Logic.com
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/Bluebird Alishanty-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (c) 2021 by Bung Letter. All rights reserved.
Binary file not shown.
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/GONGN___-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Macromedia Fontographer 4.1 Gong! Normal
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/Kleinscribere-Bold-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright \251 2002, m klein fonteria. All rights reserved.
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/Kleinscribere-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright \251 2002, m klein fonteria. All rights reserved.
1 change: 0 additions & 1 deletion hardware/portapack_h2m/fonts/Nyek! License.txt

This file was deleted.

93 changes: 0 additions & 93 deletions hardware/portapack_h2m/fonts/OFL.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Schwarzenegger Condensed:Version 1.10
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/Schwarzenegger-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Schwarzenegger:Version 1.10
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/SedgwickAve-Regular-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at: http://scripts.sil.org/OFL
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is available with a FAQ at: http://scripts.sil.org/OFL
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/Smoke Weed-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:Smoke Weed normal
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/SouthernAire-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Free for personal use only. Please visit www.mawns.com for a commercial license.
Binary file added hardware/portapack_h2m/fonts/SouthernAire.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/SprayersTypes-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (c) M Klein 10-04
56 changes: 56 additions & 0 deletions hardware/portapack_h2m/fonts/_get_font_info.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import os
import re
from fontTools.ttLib import TTFont

def get_longest_copyright(font):
decodable_copyrights = []
for name in font['name'].names:
try:
decoded_string = name.string.decode('utf-8')
if decoded_string:
decodable_copyrights.append(decoded_string)
except UnicodeDecodeError:
pass
if decodable_copyrights:
return max(decodable_copyrights, key=len)
else:
return None

def read_copyright_info(font_file):
try:
font = TTFont(font_file)
copyright_info = get_longest_copyright(font)

#decode copyright info, it has a lot of \x00, replace all those for nothing

if copyright_info:
return re.sub(r'\x00', '', copyright_info)
else:
print(f"Could not find any copyright info in {font_file}")
return None

except Exception as e:
print(f"Error reading copyright info from {font_file}: {e}")
return None

def write_license_file(font_file, copyright_info):
try:
base_name, ext = os.path.splitext(font_file)
license_file = f"{base_name}-info.txt"
with open(license_file, 'w') as f:
f.write(copyright_info)
print(f"License file written: {license_file}")
except Exception as e:
print(f"Error writing license file for {font_file}: {e}")

def main():
folder_path = os.path.dirname(__file__)
for filename in os.listdir(folder_path):
if filename.endswith('.ttf') or filename.endswith('.otf'):
font_file = os.path.join(folder_path, filename)
copyright_info = read_copyright_info(font_file)
if copyright_info:
write_license_file(font_file, copyright_info)

if __name__ == "__main__":
main()
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/adrip1-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (c) 2011 by wickhop. All rights reserved.

This file was deleted.

Binary file not shown.
Binary file not shown.
94 changes: 0 additions & 94 deletions hardware/portapack_h2m/fonts/beatstreet-font/license.txt

This file was deleted.

1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/beatstreet-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Beatstreet is a trademark of Danny Bernecker.
File renamed without changes.
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/degrassi-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If you would like to help support Larabie Fonts please consider making a donation. It costs a lot to keep the site running and free from irritating pop-up or banner ads. Any amount is appreciated and goes right back into making maintaining the site and developing more free fonts. Visit www.larabiefonts.com for details.
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/freshmarker-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
JohnGauthier: Fresh Marker: 2015
1 change: 1 addition & 0 deletions hardware/portapack_h2m/fonts/gomarice_simple_slum-info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ver 2 Gomarice Font 2005/08/02
93 changes: 0 additions & 93 deletions hardware/portapack_h2m/fonts/license.txt

This file was deleted.

Loading

0 comments on commit 4a96feb

Please sign in to comment.