Skip to main content

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

Metadata

Release files for fsbi 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fsbi 0.4
File Size Uploaded Provenance Actions
fsbi-0.4.tar.gz 3.1 kB Without provenance Details for fsbi-0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fsbi 0.4
File Interpreter ABI Platform Actions
fsbi-0.4-py3-none-any.whl Python 3 none any Details for fsbi-0.4-py3-none-any.whl

Total release size: 6.4 kB

Release files / fsbi-0.4.tar.gz

Download URL fsbi-0.4.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1219add8c6a0c70fa0f5393248f71c3ceba1755c17af8ba18911d6e625d8ab70
BLAKE2b-256 checksum
How to use checksums
0fb74d15c462850056103e6ee3135bb65c256140123ac2fc02b762af83029586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.4

Release files / fsbi-0.4-py3-none-any.whl

Download URL fsbi-0.4-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f64d2851e16832a3557dbf221ba95cda5c978deefa4bc938aaab51a60b76988
BLAKE2b-256 checksum
How to use checksums
b8c78b6ffca4e85c93c0a831bcff84cfca790809b36091818baba478abe3868b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.4

Security for fsbi 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page