From 229ec1ba4bb818419879a6d51d7c24ed99abb50c Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Mon, 9 Sep 2019 06:51:29 +0100 Subject: [PATCH] Fixes to docs and code comment. --- FONT_TO_PY.md | 2 +- font_to_py.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FONT_TO_PY.md b/FONT_TO_PY.md index 9429412..101dffb 100644 --- a/FONT_TO_PY.md +++ b/FONT_TO_PY.md @@ -233,7 +233,7 @@ most of the elements would be null (pointing to the default character). The code now behaves as follows. If the character set contains no more than 95 characters (including the default) the emitted Python file is as before. This -keeps the code small and efficient for the common (default) case). +keeps the code small and efficient for the common (default) case. Larger character sets are assumed to be sparse and the emitted code uses an index optimised for sparse values and a binary search algorithm. diff --git a/font_to_py.py b/font_to_py.py index d0c7b2a..96eb122 100755 --- a/font_to_py.py +++ b/font_to_py.py @@ -389,7 +389,7 @@ class Font(dict): # The index only holds the start of data so can't read next_offset but must # calculate it. -STR01 = """# Code generated by font-to-py.py. +STR01 = """# Code generated by font_to_py.py. # Font: {}{} # Cmd: {} version = '0.3'