From 7bcd8cbbba2798f9fae0f58f628fa3c52979ba3f Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 30 Nov 2020 19:02:30 +0800 Subject: [PATCH] [misc] restrain fonts --- bin/utf8_nf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/utf8_nf b/bin/utf8_nf index 3a764ee..c1f2f8d 100755 --- a/bin/utf8_nf +++ b/bin/utf8_nf @@ -267,7 +267,10 @@ if __name__ == "__main__": out_charmap = gzip.open(args.out_charmap, 'wt') else: out_charmap = open(args.out_charmap, 'wt') - ranges = sorted(double_width_ranges, key=lambda x: x[0]) + ranges = sorted( + filter(lambda x: x[2] in ['Seti-UI + Custom', 'Devicons'], double_width_ranges), + key=lambda x: x[0] + ) for r in ranges: print("%04X-%04X %s" % r) inject_nerdfont_ranges(ranges, in_charmap, out_charmap)