From 05b421ae350d7c8e36ba42e5049330b5b5da7187 Mon Sep 17 00:00:00 2001 From: chrilves Date: Fri, 12 Aug 2022 18:07:25 +0200 Subject: [PATCH] Made it work on Arch 2022-08 --- README.txt | 9 ++++++++- tools/FONTLOG.py | 26 +++++++++++++------------- tools/ufo2otf/__init__.py | 4 ++-- tools/ufo2otf/compilers.py | 4 ++-- tools/ufo2otf/diagnostics.py | 2 +- 5 files changed, 26 insertions(+), 19 deletions(-) diff --git a/README.txt b/README.txt index 6ca7065..dd3120b 100644 --- a/README.txt +++ b/README.txt @@ -21,10 +21,17 @@ FontForge supports UFO natively, as will the upcoming version of Fontlab. For Fo The Open Baskerville font files are dual-licensed under the GNU GPL version 3 (GNU General Public License) and the SIL Open Font License (OFL). See 'COPYING-GPLv3.txt' and 'COPYING-OFL.txt' respectively. There is also a FAQ on the OFL (see 'COPYING-OFL-FAQ.txt'). +## Compiling the fonts + +You will need [rake](https://github.com/ruby/rake), [fontforge](https://fontforge.org/en-US/) and [afdko](https://github.com/adobe-type-tools/afdko). +On Arch, install `rake` via pacman and also the AUR packages [fontforge](https://archlinux.org/packages/extra/x86_64/fontforge/) and [afdko](https://aur.archlinux.org/packages/afdko). + +Once done, run `rake otf` (for Open Type Font) or `rake webfonts` to compile the font in the corresponding format. + ## Contribute back ## We welcome contributions! You can check out the issue tracker to see what we are currently working on. We manage contributions through Git, a version control system, and GitHub. If you are new to working with a versioning system, our project website offers an explanation of the process. ## Thanks ## -Thanks! +Thanks! \ No newline at end of file diff --git a/tools/FONTLOG.py b/tools/FONTLOG.py index a98f607..d582a2e 100644 --- a/tools/FONTLOG.py +++ b/tools/FONTLOG.py @@ -40,23 +40,23 @@ # Print FONTLOG to stdout for line in README: - print wrapper.fill(line) + print(wrapper.fill(line)) -print "" -print "____" -print "" -print "Designers:" -print "" -print AUTHORS.read().split("with Reserved Font Name")[0] # Above there, it lists the designers +print("") +print("____") +print("") +print("Designers:") +print("") +print(AUTHORS.read().split("with Reserved Font Name")[0]) # Above there, it lists the designers -print "____" -print "" -print "Changelog:" -print "" +print("____") +print("") +print("Changelog:") +print("") for line in LOG.stdout: if len(line) > 82: - print commit_msg_wrapper.fill(line) + print(commit_msg_wrapper.fill(line)) else: - print line, + print(line) diff --git a/tools/ufo2otf/__init__.py b/tools/ufo2otf/__init__.py index 65f245e..84bd6b4 100644 --- a/tools/ufo2otf/__init__.py +++ b/tools/ufo2otf/__init__.py @@ -1,3 +1,3 @@ import argparse -from compilers import Compiler -from diagnostics import diagnostics, FontError +from ufo2otf.compilers import Compiler +from ufo2otf.diagnostics import diagnostics, FontError diff --git a/tools/ufo2otf/compilers.py b/tools/ufo2otf/compilers.py index 124e80e..ed43628 100644 --- a/tools/ufo2otf/compilers.py +++ b/tools/ufo2otf/compilers.py @@ -3,7 +3,7 @@ from os import mkdir from os.path import splitext, dirname, sep, join, exists, basename from codecs import open -from diagnostics import diagnostics, known_compilers, FontError +from ufo2otf.diagnostics import diagnostics, known_compilers, FontError diagnostics = diagnostics() @@ -37,7 +37,7 @@ def fontforge(self): if self.webfonts: webfonts_path = join(outdir, 'webfonts') - print webfonts_path + print(webfonts_path) if not exists(webfonts_path): mkdir(webfonts_path) diff --git a/tools/ufo2otf/diagnostics.py b/tools/ufo2otf/diagnostics.py index 617115b..79866a0 100644 --- a/tools/ufo2otf/diagnostics.py +++ b/tools/ufo2otf/diagnostics.py @@ -137,4 +137,4 @@ def __str__(self): if __name__ == "__main__": # This will print diagnostics to stdout e = FontError() - print e + print(e)