1
0
forked from me/IronOS

Merge branch 'master' into extend-font-encoding

This commit is contained in:
Ben V. Brown
2021-03-17 21:17:17 +11:00
committed by GitHub
10 changed files with 149 additions and 64 deletions

View File

@@ -274,12 +274,12 @@ def getFontMapAndTable(textList):
for sym in forcedFirstSymbols:
if sym not in fontTable:
log("Missing Large font element for {}".format(sym))
exit(1)
sys.exit(1)
fontLine = fontTable[sym]
fontTableStrings.append(fontLine + "//{} -> {}".format(symbolMap[sym], sym))
if sym not in fontSmallTable:
log("Missing Small font element for {}".format(sym))
exit(1)
sys.exit(1)
fontLine = fontSmallTable[sym]
fontSmallTableStrings.append(
fontLine + "//{} -> {}".format(symbolMap[sym], sym)
@@ -291,7 +291,7 @@ def getFontMapAndTable(textList):
fromFont = getCJKGlyph(sym)
if fromFont is None:
log("Missing Large font element for {}".format(sym))
exit(1)
sys.exit(1)
# We store the glyph back to the fontTable.
fontTable[sym] = fromFont
# We also put a "replacement character" in the small font table
@@ -302,7 +302,7 @@ def getFontMapAndTable(textList):
fontTableStrings.append(fontLine + "//{} -> {}".format(symbolMap[sym], sym))
if sym not in fontSmallTable:
log("Missing Small font element for {}".format(sym))
exit(1)
sys.exit(1)
fontLine = fontSmallTable[sym]
fontSmallTableStrings.append(
fontLine + "//{} -> {}".format(symbolMap[sym], sym)