Skip to main content

moho-font for Python

هذه الحزمة هي نسخة Python من موهو فوند. توفر كتالوجًا للخطوط العربية المفتوحة وأدوات للبحث والتصفية وبناء روابط Google Fonts CSS2. لا تُضمّن ملفات الخطوط، ولا تنسب الخطوط إلى موهو؛ إذ يحتفظ كل خط بمصدره وترخيصه الأصلي.

التثبيت

pip install moho-font

الاستخدام

from moho_font import get_font, google_fonts_css_url, list_fonts

fonts = list_fonts(search="naskh")
cairo = get_font("Cairo")
css_url = google_fonts_css_url("Noto Sans Arabic", weights=(400, 700))

تتضمن كل نتيجة بيانات العائلة والمصدر والترخيص والفئة والأوزان والوسوم.

التطوير

من مجلد python/:

python -m venv .venv
.venv\Scripts\activate  # Windows
python -m pip install -U pip pytest build twine
python -m pytest
python -m build
python -m twine check dist/*

الترخيص

كود الحزمة مرخّص بموجب MIT. الخطوط الخارجية لا تُضمّن في التوزيعة، وتبقى خاضعة لتراخيص أصحابها. راجع ../README.md للمعلومات العامة والمراجع.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moho_font-0.2.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moho_font-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file moho_font-0.2.0.tar.gz.

File metadata

  • Download URL: moho_font-0.2.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for moho_font-0.2.0.tar.gz
Algorithm Hash digest
SHA256 20f067176db74cb6d73b964531114bff89122ee5590fb4d7b1e61ef5aff6e4dc
MD5 5ce4f8e2fa09d16e88fd2ac664af775a
BLAKE2b-256 6b23684cc814e5912dc3883ed1873d100c6685a039ea479356b7e60ffe05a45d

See more details on using hashes here.

File details

Details for the file moho_font-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: moho_font-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for moho_font-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b96851846f18a390011750554c379e6bc7baaa5cdb3c2db6699c48c9ac08aea6
MD5 0c0a709123e083b6dc485d39b6069eed
BLAKE2b-256 21686113411935860fdefac6108127d9059975f664b17dbc6b6d0812f3c42f65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page