mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-13 03:03:33 +02:00
font-patcher: Fix ligature removal
[why] Only one tables is removed, even if we want to remove more. With0a480bb
the indentation of the code has changed, and now the loop is (apart from printing) empty. See also #934 [how] Re-indent the lines to restore functionality as originally forseen with commit557fc00
. Reported-by: Rádler Ákos <akos.radler@gmail.com> Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
46a7c03ced
commit
5d218b1cd3
10
font-patcher
10
font-patcher
@ -667,11 +667,11 @@ class font_patcher:
|
||||
ligature_subtables = json.loads(self.config.get("Subtables", "ligatures"))
|
||||
for subtable in ligature_subtables:
|
||||
print("Removing subtable:", subtable)
|
||||
try:
|
||||
self.sourceFont.removeLookupSubtable(subtable)
|
||||
print("Successfully removed subtable:", subtable)
|
||||
except Exception:
|
||||
print("Failed to remove subtable:", subtable)
|
||||
try:
|
||||
self.sourceFont.removeLookupSubtable(subtable)
|
||||
print("Successfully removed subtable:", subtable)
|
||||
except Exception:
|
||||
print("Failed to remove subtable:", subtable)
|
||||
elif self.args.removeligatures:
|
||||
print("Unable to read configfile, unable to remove ligatures")
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user