Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 838 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 838 Bytes

python-lff

LFF (LibreCAD Font File) library in Python

Features:

  • 🧩 Parse LFF file
  • 📝 Write LFF file with specific precision
  • 🔧 Tuning LFF in various way
    • 🪺 NestedChar: find nested char in glyphs
    • 0️⃣ ZeroVector: remove two identidy vertex
    • 🎯 RoundVertex: round vertex to nearby grid
    • 🔄 MergePath: merge path with same vertex
    • 🚫 NoComment: remove comment for glyphs

TODO:

  • Use multi-thread or concurrent for NestedChar algorithm

Usage

parse and write LFF, optional tuning LFF:

python -m lff <LFF>

Tuning LFF in batch

python -m lff.tuning <LFF>

License

python-lff is licensed under GNU GPLv2, same as LibreCAD