From 9bb694cafc0b8d9f05fc80fe5c9873afe8519a25 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Mon, 8 Apr 2024 12:35:07 +0200 Subject: [PATCH] FontAwesome: Fix remove_sign and ok_sign [why] The open variants of circle_xmark and circle_check are missing. [how] Rename the filled versions to their old (i.e. FA 4.2) names (remove_sign and ok_sign) and let the open (regular) variants find their place automatically. Because we now have two more icons that would move all codepoints we can either drop the icons that occupied the circle_xmark and circle_check codepoints before, or we move the to the end (unpatched yet) region. As these are just some more arrows, we drop them. Dropped: F30B F05C solid/right-long.svg F30C F05D solid/up-long.svg New: F05C F05C regular/circle-xmark.svg F05D F05D regular/circle-check.svg Renamed: RENAME circle_xmark to remove_sign (F057) RENAME circle_check to ok_sign (F058) Signed-off-by: Fini Jastrow --- src/glyphs/font-awesome/remix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/glyphs/font-awesome/remix b/src/glyphs/font-awesome/remix index 58ecf7fe3..11423c86f 100755 --- a/src/glyphs/font-awesome/remix +++ b/src/glyphs/font-awesome/remix @@ -63,6 +63,8 @@ renames = { 0xF003: 'envelope_o', 0xF006: 'star_o', 0xF046: 'check_square_o', + 0xF057: 'remove_sign', + 0xF058: 'ok_sign', 0xF087: 'thumbs_o_up', 0xF088: 'thumbs_o_down', 0xF016: 'file_o', @@ -130,7 +132,15 @@ print('#') print('# FA-code NF-code filename FA-name') print('#') -for point in [ *range(0xF000, 0xF900), *range(0xE000, 0xF000) ]: +# Reorder processing to accomodate for glyph shifts introduced +all_points = [ *range(0xF000, 0xF900), *range(0xE000, 0xF000) ] +move_or_drop = { 0xF30B: False, 0xF30C: False } +for code, move in move_or_drop.items(): + all_points.remove(code) + if move: + all_points.append(code) + +for point in all_points: source = None subset = 'none' if point in sources.regul and point not in block_regular and point not in prefer_solid: