mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-06 21:49:40 +02:00
FontAwesome: Leave a gap for Fira progress icons
[why] We do not want to break the Fira progress icons, but on the other hand these are so few icons that we can not keep the whole 0x0100 block unoccupied. So we just leave a small gap in the FontAwesome codepoints. [how] Be careful, the current code moves the icons 'to the back', which will be different if we ever update FontAwesome. The code will break (reassign a lot codepoints) then. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
2e854ba90f
commit
b5ec9d04fe
@ -40,7 +40,8 @@ def find_destination(codepoint, font):
|
||||
# Fill gaps with the remaing icons (i.e. 'Region B')
|
||||
# That will target first the original FA codepoint range in NF (F000-F2FF)
|
||||
# and if that is full use the additional range ED00-EFFF
|
||||
for point in [ *range(0xF000, 0xF300), *range(0xED00, 0xF000) ]:
|
||||
# The subrange 0xEE00 - 0xEE0B is reserved for Fira Code progress icons
|
||||
for point in [ *range(0xF000, 0xF300), *range(0xED00, 0xEE00), *range(0xEE0C, 0xF000) ]:
|
||||
if point not in font:
|
||||
return point
|
||||
print("No space found - abort")
|
||||
@ -136,7 +137,10 @@ prefer_solid = {
|
||||
}
|
||||
|
||||
# Special handling of some few icons, see PR #1596
|
||||
move_or_drop = { 0xF30B: False, 0xF30C: False, 0xF374: True, 0xF219: 0xF3A5, 0xF10A: 0xF3FA, 0xF10B: 0xF3CD, }
|
||||
move_or_drop = { 0xF30B: False, 0xF30C: False, 0xF374: True,
|
||||
0xF536: True, 0xF537: True, 0xF538: True, 0xF539: True, 0xF53A: True, 0xF53B: True, # move for progress icons
|
||||
0xF53C: True, 0xF53D: True, 0xF53E: True, 0xF53F: True, 0xF540: True, 0xF542: True, # move for progress icons
|
||||
0xF219: 0xF3A5, 0xF10A: 0xF3FA, 0xF10B: 0xF3CD, }
|
||||
swap_codes = [ (0xF167, 0xF16A), (0xF219, 0xF3A5), (0xF10A, 0xF3FA), (0xF10B, 0xF3CD), ]
|
||||
|
||||
block_regular = set()
|
||||
|
Loading…
Reference in New Issue
Block a user