Skip to main content

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

Changelog

  • 2024.04.01 – 0.4 – Parse Expanded keyword as Extended
  • 2024.03.31 – 0.3 – Add stretch parameter and -s argument
  • 2024.03.31 – 0.2 – Bug fix
  • 2024.03.30 – 0.1

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.4.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

fsbi-0.4-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page