python-fontbro

friendly font operations on top of fontTools.

MIT License

Downloads
3.3K
Stars
65
Committers
5

Bot releases are visible (Hide)

python-fontbro - 0.24.0 Latest Release

Published by fabiocaccamo 3 months ago

  • Add get_svg method.
  • Add is_color method.
  • Improve is_monospace method accuracy by adding threshold option.
  • Bump requirements.
python-fontbro - 0.23.1

Published by fabiocaccamo 4 months ago

  • Fix get_format with .otf fonts with CFF2 table.
  • Bump requirements and pre-commit hooks
python-fontbro - 0.23.0

Published by fabiocaccamo 4 months ago

  • Add get_family_classification and set_family_classification methods.
  • Improve slugify utility function.
  • Bump requirements and pre-commit hooks
python-fontbro - 0.22.0

Published by fabiocaccamo 4 months ago

  • Add is_monospace method.
  • Add mypy to pre-commit.
  • Fix pyproject Ruff conf warnings.
  • Bump requirements and pre-commit hooks
python-fontbro - 0.22.0

Published by fabiocaccamo 6 months ago

  • Add is_monospace method.
  • Add mypy to pre-commit.
  • Fix pyproject Ruff conf warnings.
  • Bump requirements and pre-commit hooks
python-fontbro - 0.21.0

Published by fabiocaccamo 8 months ago

  • Add type hints.
  • Add vertical metrics keys available as class properties.
  • Improve code quality.
  • Bump requirements and pre-commit hooks
python-fontbro - 0.20.0

Published by fabiocaccamo 9 months ago

  • Add more vertical metrics: units_per_em, y_max, y_min, ascent, descent, line_gap, typo_ascender, typo_descender, typo_line_gap, cap_height, x_height, win_ascent, win_descent.
python-fontbro - 0.19.0

Published by fabiocaccamo 9 months ago

  • Add get_vertical_metrics and set_vertical_metrics methods. (#150)
python-fontbro - 0.18.0

Published by fabiocaccamo 10 months ago

  • Add sanitize method.
  • Enforce keyword arguments usage.
  • Use custom exceptions.
python-fontbro - 0.17.2

Published by fabiocaccamo 10 months ago

  • Fix possible TypeError: '<' not supported between instances of 'NoneType' and 'int'.
python-fontbro - 0.17.1

Published by fabiocaccamo 10 months ago

  • Add get_variable_instance_by_style_name method.
  • Increase tests coverage.
python-fontbro - 0.17.0

Published by fabiocaccamo 11 months ago

  • Add Python 3.12 support.
  • Add get_family_name / set_family_name methods.
  • Add get_filename method.
  • Add get_style_name / set_style_name methods.
  • Add save_variable_instances method. #116
  • Update rename method: rename style_flags argument to update_style_flags.
  • Update save method: output font filename is generated using get_filename method when target path is a directory.
  • Update to_static method: add support to update_names (default True) and update_style_flags (default True) arguments.
  • Update to_static method: set italic style flag based on ital / slnt coordinates values.
  • Fix get_variable_instance_closest_to_coordinates: if coordinates do not specify some axes, axes default value is used for lookup.
  • Fix to_static method: prevent inplace option override.
  • Use Ruff formatter instead of Black and isort.
  • Bump requirements (fonttools, pillow and python-fsutil).
python-fontbro - 0.16.0

Published by fabiocaccamo about 1 year ago

  • Add Font.from_collection class method. #49
  • Allow initialisation from fontbro.Font / fontTools.ttLib.TTFont objects.
  • Fix error when calling clone method on a Font object created using a fileobject. #118
  • Bump requirements.
python-fontbro - 0.15.0

Published by fabiocaccamo about 1 year ago

  • Allow instantiation with file objects. (by @fcurella in #103)
  • Add save_to_file_object method. (by @fcurella in #103)
  • Bump requirements (fonttools, coverage, pre-commit and tox).
python-fontbro - 0.14.15

Published by fabiocaccamo about 1 year ago

  • Bump requirements (fonttools, pillow and tox).
python-fontbro - 0.14.14

Published by fabiocaccamo over 1 year ago

  • Allow filepath of type pathib.Path in constructor. #83 (#84)
  • Add possibility to create static instance by using style_name instead of coordinates. #82 (#85)
  • Strip whitespace when slugify string.
  • Move get_euclidean_distance function to fontbro.math module.
  • Bump fonttools[pathops,unicode,woff] from 4.39.3 to 4.39.4. (#79)
  • Update pre-commit hooks. (#80)
python-fontbro - 0.14.13

Published by fabiocaccamo over 1 year ago

  • Fix Font Bakery error: "Verify that each group of fonts with the same nameID 1 has maximum of 4 fonts".
python-fontbro - 0.14.12

Published by fabiocaccamo over 1 year ago

  • Fix Font Bakery error: "font name does not begin with the font family name".
python-fontbro - 0.14.11

Published by fabiocaccamo over 1 year ago

  • Fix renaming legacy name records 1 and 2.
python-fontbro - 0.14.10

Published by fabiocaccamo over 1 year ago

  • Revert "Fix family_name name record renaming."
Package Rankings
Top 13.4% on Pypi.org
Badges
Extracted from project README