Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add New Material Design Icons to its own region #773

Merged
merged 9 commits into from
Jan 15, 2023
11 changes: 6 additions & 5 deletions bin/scripts/generate-glyph-info-from-set.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding=utf8
# Nerd Fonts Version: 2.3.0-RC
# Script Version: 1.1.0
# Script Version: 1.1.1

# Example Usage:
# ./generate-glyph-info-from-set.py --font ../../src/glyphs/materialdesignicons-webfont.ttf --start f001 --end f847 --offset 4ff --prefix mdi
# ./generate-glyph-info-from-set.py --font ../../src/glyphs/materialdesign/*.ttf --start f0001 --end f1af0 --offset 0 --prefix md
# ./generate-glyph-info-from-set.py --font ../../src/glyphs/weathericons-regular-webfont.ttf --start f000 --end f0eb --negoffset d00 --prefix weather --nogaps

from __future__ import absolute_import, print_function, unicode_literals
Expand Down Expand Up @@ -73,11 +74,11 @@
sh_name = "i_" + args.prefix + "_" + name.replace("-", "_")

if args.nogaps:
char = unichr(hexPosition)
char = chr(hexPosition)
else:
char = unichr(int('0x'+slot, 16) + signedOffset)
char = chr(int('0x'+slot, 16) + signedOffset)

print("i='" + char + "' " + sh_name + "=$i" + " //" + str(hexPosition))
print("i='" + char + "' " + sh_name + "=$i")
ctr += 1
hexPosition += 1

Expand Down
2 changes: 1 addition & 1 deletion bin/scripts/lib/i_material.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Material Design Icons (2,119 icons)
# Material Design Icons (legacy) (2,119 icons)
# Codepoints: F001-F847, Nerd Fonts moved F500-FD46
# Nerd Fonts Version: 2.3.0-RC
# Script Version 1.0.0
Expand Down
Loading