Font Stretch Bold Italic
Project description
fsbi
renames font files in a compact, well alphabetically ordered way rather than the usual long and disordered notation.
fsbi -r
restores the original notation.
Help
usage: fsbi [-lrsw] [file] ...
positional arguments:
file file or dir [*]
options:
-l list [default]
-r restore
-s stretch 5 if normal
-w write
Compact
fsbi -s
Barlow-Bold.ttf -> Barlow-57.ttf
Barlow-BoldItalic.ttf -> Barlow-57i.ttf
BarlowCondensed-ExtraLight.ttf -> Barlow-32.ttf
BarlowCondensed-ExtraLightItalic.ttf -> Barlow-32i.ttf
Restore
fsbi -r
Barlow-32.ttf -> BarlowCondensed-ExtraLight.ttf
Barlow-32i.ttf -> BarlowCondensed-ExtraLightItalic.ttf
Barlow-57.ttf -> Barlow-Bold.ttf
Barlow-57i.ttf -> Barlow-BoldItalic.ttf
Python
import fsbi
fsbi.compact(font, stretch=False)
fsbi.expand(font)
fsbi.fsbi(files, list=False, restore=False, stretch=False, write=False)
Values
Stretch | Weight | |
---|---|---|
0 | Hairline | |
1 | UltraCondensed | Thin |
2 | ExtraCondensed | ExtraLight |
3 | Condensed | Light |
4 | SemiCondensed | Regular |
5 | Normal | Medium |
6 | SemiExtended | SemiBold |
7 | Extended | Bold |
8 | ExtraExtended | ExtraBold |
9 | UltraExtended | Black |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fsbi-0.3.tar.gz
(3.0 kB
view hashes)
Built Distribution
fsbi-0.3-py3-none-any.whl
(3.2 kB
view hashes)