Fix: Rename Bitstream Vera

[why]
The intend was to drop 'Sans Mono' in the renaming process, because the
name is just too long.

ERROR: VeraMono-Italic.ttf ====-< Shortening too long PS family name: BitstromWeraSansM Nerd Font Mono -> BitstromWeraSansM Nerd Font Mon
ERROR: VeraMono-Italic.ttf ====-< Family (ID 1)      too long (32 > 31): BitstromWeraSansM Nerd Font Mono

[how]
Include the whole name in the replacement pattern.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2023-04-27 20:24:58 +02:00
parent 334e287333
commit 8cd3ae0c80
2 changed files with 5 additions and 5 deletions

View file

@ -192,7 +192,7 @@ class FontnameTools:
SIL_TABLE = [
( '(a)nonymous', r'\1nonymice' ),
( '(b)itstream( ?)(v)era', r'\1itstrom\2Wera' ),
( '(b)itstream( ?)(v)era( ?sans ?mono)?', r'\1itstrom\2Wera' ),
( '(s)ource', r'\1auce' ),
( '(h)ermit', r'\1urmit' ),
( '(h)asklig', r'\1asklug' ),

View file

@ -636,10 +636,10 @@ class font_patcher:
reservedFontNameReplacements = {
'source' : 'sauce',
'Source' : 'Sauce',
'Bitstream Vera' : 'Bitstrom Wera',
'BitstreamVera' : 'BitstromWera',
'bitstream vera' : 'bitstrom wera',
'bitstreamvera' : 'bitstromwera',
'Bitstream Vera Sans Mono' : 'Bitstrom Wera',
'BitstreamVeraSansMono' : 'BitstromWera',
'bitstream vera sans mono' : 'bitstrom wera',
'bitstreamverasansmono' : 'bitstromwera',
'hermit' : 'hurmit',
'Hermit' : 'Hurmit',
'hasklig' : 'hasklug',