diff --git a/pkgs/nerd-font-patcher/3.1.1/font-patcher b/pkgs/nerd-font-patcher/3.1.1/font-patcher index 4cbf46cf..3603b4a0 100755 --- a/pkgs/nerd-font-patcher/3.1.1/font-patcher +++ b/pkgs/nerd-font-patcher/3.1.1/font-patcher @@ -545,6 +545,9 @@ class font_patcher: if self.args.weather: additionalFontNameSuffix += " WEA" verboseAdditionalFontNameSuffix += " Plus Weather Icons" + if self.args.braille: + additionalFontNameSuffix += " B" + verboseAdditionalFontNameSuffix += " Plus Braille Icons" # add mono signifier to beginning of name suffix if self.args.single: @@ -917,6 +920,10 @@ class font_patcher: 0xf0dd: {'align': 'c', 'valign': '', 'stretch': 'pa', 'params': {}}, 0xf0de: {'align': 'c', 'valign': '', 'stretch': 'pa', 'params': {}} } + SYM_ATTR_BRAILLE = { + # 'pa' == preserve aspect ratio + 'default': {'align': 'c', 'valign': 'c', 'stretch': 'pa', 'params': {'overlap': -0.05}} + } SYM_ATTR_HEAVYBRACKETS = { 'default': {'align': 'c', 'valign': 'c', 'stretch': 'pa1!', 'params': {'ypadding': 0.3, 'careful': True}} } @@ -1047,6 +1054,9 @@ class font_patcher: # box of this range: range(0xf000, 0xf0cb + 1), # lots of clouds and other (Please read note above!) ]} + BRAILLE_SCALE_LIST = {'ScaleGroups': [ + range(0x2800, 0x28ff + 1), # all Braille glyphs + ]} MDI_SCALE_LIST = None # Maybe later add some selected ScaleGroups @@ -1078,6 +1088,7 @@ class font_patcher: {'Enabled': self.args.octicons, 'Name': "Octicons", 'Filename': "octicons/octicons.ttf", 'Exact': True, 'SymStart': 0X26A1, 'SymEnd': 0X26A1, 'SrcStart': None, 'ScaleRules': OCTI_SCALE_LIST, 'Attributes': SYM_ATTR_DEFAULT}, # Zap {'Enabled': self.args.octicons, 'Name': "Octicons", 'Filename': "octicons/octicons.ttf", 'Exact': False, 'SymStart': 0xF27C, 'SymEnd': 0xF306, 'SrcStart': 0xF4A9, 'ScaleRules': OCTI_SCALE_LIST, 'Attributes': SYM_ATTR_DEFAULT}, {'Enabled': self.args.codicons, 'Name': "Codicons", 'Filename': "codicons/codicon.ttf", 'Exact': True, 'SymStart': 0xEA60, 'SymEnd': 0xEBEB, 'SrcStart': None, 'ScaleRules': CODI_SCALE_LIST, 'Attributes': SYM_ATTR_DEFAULT}, + {'Enabled': self.args.braille, 'Name': "Braille", 'Filename': "UBraille.ttf", 'Exact': True, 'SymStart': 0x2800, 'SymEnd': 0x28FF, 'SrcStart': None, 'ScaleRules': BRAILLE_SCALE_LIST, 'Attributes': SYM_ATTR_BRAILLE}, {'Enabled': self.args.custom, 'Name': "Custom", 'Filename': self.args.custom, 'Exact': True, 'SymStart': 0x0000, 'SymEnd': 0x0000, 'SrcStart': None, 'ScaleRules': None, 'Attributes': CUSTOM_ATTR} ] @@ -1890,6 +1901,7 @@ def setup_arguments(): sym_font_group.add_argument('--powerline', dest='powerline', default=False, action='store_true', help='Add Powerline Glyphs') sym_font_group.add_argument('--powerlineextra', dest='powerlineextra', default=False, action='store_true', help='Add Powerline Extra Glyphs (https://github.com/ryanoasis/powerline-extra-symbols)') sym_font_group.add_argument('--weather', dest='weather', default=False, action='store_true', help='Add Weather Icons (https://github.com/erikflowers/weather-icons)') + sym_font_group.add_argument('--braille', dest='braille', default=False, action='store_true', help='Add Braille Glyphs (https://yudit.org/download/fonts/UBraille/)') expert_group = parser.add_argument_group('Expert Options') expert_group.add_argument('--boxdrawing', dest='forcebox', default=False, action='store_true', help='Force patching in (over existing) box drawing glyphs') @@ -1936,6 +1948,7 @@ def setup_arguments(): args.powerlineextra = True args.material = True args.weather = True + args.braille = True if not args.complete: sym_font_args = [] diff --git a/pkgs/nerd-font-patcher/3.1.1/src/glyphs/UBraille.ttf b/pkgs/nerd-font-patcher/3.1.1/src/glyphs/UBraille.ttf new file mode 100644 index 00000000..18a9f125 Binary files /dev/null and b/pkgs/nerd-font-patcher/3.1.1/src/glyphs/UBraille.ttf differ