Skip to content

Commit

Permalink
Merge pull request ryanoasis#773 from earboxer/new-material
Browse files Browse the repository at this point in the history
Add New Material Design Icons to its own region
  • Loading branch information
Finii authored Jan 15, 2023
2 parents ab8e956 + 2a27220 commit bb1748f
Show file tree
Hide file tree
Showing 20 changed files with 6,988 additions and 26 deletions.
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

0 comments on commit bb1748f

Please sign in to comment.