font_mapper
एक डार्ट कमांड-लाइन उपकरण जो स्वचालित रूप से फ़ॉन्ट संसाधनों की स्कैनिंग करता है और आपके pubspec.yaml फ़ाइल में `fonts:` खंड को अद्यतन करता है।
एक डार्ट कमांड-लाइन उपकरण जो फॉन्ट फ़ाइल्स को स्कैन करता है और आपके `pubspec.yaml` में `fonts:` खंड को स्वचालित रूप से उत्पन्न करता है।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Dart CLI tool to scan font files and auto-generate the fonts: section in your pubspec.yaml.
dart pub global activate font_mapper
font_mapper
This scans assets/fonts and updates the fonts: section in pubspec.yaml.
font_mapper -t pubspec.yaml -d assets/my_fonts
-t / --target: Target YAML file (default: pubspec.yaml)
-d / --dir: Directory containing font files (default: assets/fonts)
-h / --help: Show help
.ttf, .otf formats
Supports multi-family directories
If you have:
assets/fonts/
├── SF-Pro-Display-BoldItalic.ttf
├── SF-Pro-Display-Regular.ttf
├── Inter-Light.otf
Running font_mapper generates:
flutter:
fonts:
- family: SF-Pro-Display
fonts:
- asset: assets/fonts/SF-Pro-Display-BoldItalic.ttf
weight: 700
style: italic
- asset: assets/fonts/SF-Pro-Display-Regular.ttf
weight: 400
- family: Inter
fonts:
- asset: assets/fonts/Inter-Light.otf
weight: 300
MIT License. See LICENSE.
Feel free to open PRs or issues on GitHub!
OR
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗