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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file fsbi-0.4.tar.gz.

File metadata

  • Download URL: fsbi-0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for fsbi-0.4.tar.gz
Algorithm Hash digest
SHA256 1219add8c6a0c70fa0f5393248f71c3ceba1755c17af8ba18911d6e625d8ab70
MD5 15618d557920277a70731a148d1c2dcc
BLAKE2b-256 0fb74d15c462850056103e6ee3135bb65c256140123ac2fc02b762af83029586

See more details on using hashes here.

File details

Details for the file fsbi-0.4-py3-none-any.whl.

File metadata

  • Download URL: fsbi-0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for fsbi-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5f64d2851e16832a3557dbf221ba95cda5c978deefa4bc938aaab51a60b76988
MD5 4df10a61416ed4f238b790a70f6b8df1
BLAKE2b-256 b8c78b6ffca4e85c93c0a831bcff84cfca790809b36091818baba478abe3868b

See more details on using hashes here.

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