
AssetFlow
AssetFlow is a simple and lightweight library for managing custom fonts and images inside .NET applications.
It solves a common problem developers face: missing fonts and images after publishing the application.
📦 Project Setup
Create an Assets folder inside your project:
Assets
│
├── Fonts
│ └── MyFont.ttf
│
└── Images
└── logo.png
🔤 Adding Custom Fonts
Place your custom font files inside:
Assets/Fonts
Example:
Assets
└── Fonts
└── InkFree.ttf
File Properties
Select your font file and set:
- Build Action = Content
- Copy to Output Directory = Copy if newer
🖼️ Adding Images
Place your images inside:
Assets/Images
Example:
Assets
└── Images
└── logo.png
File Properties
- Build Action = Content
- Copy to Output Directory = Copy if newer
🚀 Usage
Add the namespace:
using AssetFlow;
Using a Custom Font
label1.Font =
Asset.Font(
"InkFree",
20
);
Do not include the file extension.
❌ Wrong:
Asset.Font("InkFree.ttf",20);
✅ Correct:
Asset.Font("InkFree",20);
Using an Image
pictureBox1.Image =
Asset.Image(
"logo"
);
The same rule applies. Do not write the extension.
❌ Wrong:
Asset.Image("logo.png");
✅ Correct:
Asset.Image("logo");
📌 Complete Example
using AssetFlow;
namespace MyApplication
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
label1.Font =
Asset.Font(
"InkFree",
20
);
pictureBox1.Image =
Asset.Image(
"logo"
);
}
}
}
✨ Features
- Simple font management
- Simple image management
- No hardcoded paths
- Works with Debug and Release builds
- Clean and developer-friendly API
AssetFlow makes managing application assets easier.
AssetFlow
مكتبة بسيطة وخفيفة لإدارة الخطوط المخصصة والصور داخل تطبيقات .NET.
تحل مشكلة شائعة تواجه المطورين: فقدان الخطوط والصور بعد نشر التطبيق.
📦 إعداد المشروع
أنشئ مجلد Assets داخل مشروعك:
Assets
│
├── Fonts
│ └── MyFont.ttf
│
└── Images
└── logo.png
🔤 إضافة الخطوط المخصصة
ضع ملفات الخطوط الخاصة بك داخل:
Assets/Fonts
مثال:
Assets
└── Fonts
└── InkFree.ttf
خصائص الملف
حدد ملف الخط واضبط الآتي:
- Build Action = Content
- Copy to Output Directory = Copy if newer
🖼️ إضافة الصور
ضع صورك داخل:
Assets/Images
مثال:
Assets
└── Images
└── logo.png
خصائص الملف
- Build Action = Content
- Copy to Output Directory = Copy if newer
🚀 الاستخدام
أضف مساحة الأسماء:
using AssetFlow;
استخدام خط مخصص
label1.Font =
Asset.Font(
"InkFree",
20
);
لا تقم تضمين امتداد الملف.
❌ خطأ:
Asset.Font("InkFree.ttf",20);
✅ صحيح:
Asset.Font("InkFree",20);
استخدام صورة
pictureBox1.Image =
Asset.Image(
"logo"
);
نفس القاعدة تنطبق. لا تقم بكتابة الامتداد.
❌ خطأ:
Asset.Image("logo.png");
✅ صحيح:
Asset.Image("logo");
📌 مثال متكامل
using AssetFlow;
namespace MyApplication
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
label1.Font =
Asset.Font(
"InkFree",
20
);
pictureBox1.Image =
Asset.Image(
"logo"
);
}
}
}
✨ الميزات
- إدارة بسيطة للخطوط
- إدارة بسيطة للصور
- لا توجد مسارات ثابتة (Hardcoded)
- تعمل مع إصدارات Debug و Release
- واجهة برمجة تطبيقات نظيفة وسهلة للمطورين
AssetFlow تجعل إدارة أصول التطبيق أسهل.
AssetFlow
AssetFlow es una biblioteca simple y ligera para gestionar fuentes e imágenes personalizadas dentro de aplicaciones .NET.
Resuelve un problema común que enfrentan los desarrolladores: la falta de fuentes e imágenes después de publicar la aplicación.
📦 Configuración del Proyecto
Crea una carpeta Assets dentro de tu proyecto:
Assets
│
├── Fonts
│ └── MyFont.ttf
│
└── Images
└── logo.png
🔤 Añadir Fuentes Personalizadas
Coloca tus archivos de fuentes personalizadas dentro de:
Assets/Fonts
Ejemplo:
Assets
└── Fonts
└── InkFree.ttf
Propiedades del Archivo
Selecciona tu archivo de fuente y configura:
- Build Action = Content
- Copy to Output Directory = Copy if newer
🖼️ Añadir Imágenes
Coloca tus imágenes dentro de:
Assets/Images
Ejemplo:
Assets
└── Images
└── logo.png
Propiedades del Archivo
- Build Action = Content
- Copy to Output Directory = Copy if newer
🚀 Uso
Añade el espacio de nombres:
using AssetFlow;
Uso de una Fuente Personalizada
label1.Font =
Asset.Font(
"InkFree",
20
);
No incluyas la extensión del archivo.
❌ Incorrecto:
Asset.Font("InkFree.ttf",20);
✅ Correcto:
Asset.Font("InkFree",20);
Uso de una Imagen
pictureBox1.Image =
Asset.Image(
"logo"
);
Se aplica la misma regla. No escribas la extensión.
❌ Incorrecto:
Asset.Image("logo.png");
✅ Correcto:
Asset.Image("logo");
📌 Ejemplo Completo
using AssetFlow;
namespace MyApplication
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
label1.Font =
Asset.Font(
"InkFree",
20
);
pictureBox1.Image =
Asset.Image(
"logo"
);
}
}
}
✨ Características
- Gestión simple de fuentes
- Gestión simple de imágenes
- Sin rutas hardcodeadas
- Funciona con compilaciones Debug y Release
- API limpia y amigable para desarrolladores
AssetFlow hace que la gestión de recursos de la aplicación sea más fácil.
AssetFlow
AssetFlow 是一个简单轻量级的库,用于在 .NET 应用程序中管理自定义字体和图像。
它解决了开发人员常面临的问题:发布应用程序后字体和图像丢失。
📦 项目设置
在你的项目中创建一个 Assets 文件夹:
Assets
│
├── Fonts
│ └── MyFont.ttf
│
└── Images
└── logo.png
🔤 添加自定义字体
将你的自定义字体文件放在:
Assets/Fonts
示例:
Assets
└── Fonts
└── InkFree.ttf
文件属性
选择你的字体文件并设置:
- Build Action = Content
- Copy to Output Directory = Copy if newer
🖼️ 添加图像
将你的图像放在:
Assets/Images
示例:
Assets
└── Images
└── logo.png
文件属性
- Build Action = Content
- Copy to Output Directory = Copy if newer
🚀 使用方法
添加命名空间:
using AssetFlow;
使用自定义字体
label1.Font =
Asset.Font(
"InkFree",
20
);
请勿包含文件扩展名。
❌ 错误:
Asset.Font("InkFree.ttf",20);
✅ 正确:
Asset.Font("InkFree",20);
使用图像
pictureBox1.Image =
Asset.Image(
"logo"
);
适用同样的规则。请勿写入扩展名。
❌ 错误:
Asset.Image("logo.png");
✅ 正确:
Asset.Image("logo");
📌 完整示例
using AssetFlow;
namespace MyApplication
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
label1.Font =
Asset.Font(
"InkFree",
20
);
pictureBox1.Image =
Asset.Image(
"logo"
);
}
}
}
✨ 特性
- 简单的字体管理
- 简单的图像管理
- 无硬编码路径
- 兼容 Debug 和 Release 版本
- 干净且对开发者友好的 API
AssetFlow 让管理应用程序资产变得更加容易。
AssetFlow
AssetFlow .NET एप्लिकेशन के भीतर कस्टम फोंट और छवियों को प्रबंधित करने के लिए एक सरल और हल्की लाइब्रेरी है।
यह डेवलपर्स के सामने आने वाली एक आम समस्या का समाधान करती है: एप्लिकेशन प्रकाशित करने के बाद फोंट और छवियों का गायब होना।
📦 प्रोजेक्ट सेटअप
अपने प्रोजेक्ट के अंदर एक Assets फ़ोल्डर बनाएँ:
Assets
│
├── Fonts
│ └── MyFont.ttf
│
└── Images
└── logo.png
🔤 कस्टम फोंट जोड़ना
अपनी कस्टम फ़ॉन्ट फ़ाइलों को इसके अंदर रखें:
Assets/Fonts
उदाहरण:
Assets
└── Fonts
└── InkFree.ttf
फ़ाइल गुण
अपनी फ़ॉन्ट फ़ाइल चुनें और सेट करें:
- Build Action = Content
- Copy to Output Directory = Copy if newer
🖼️ छवियाँ जोड़ना
अपनी छवियों को इसके अंदर रखें:
Assets/Images
उदाहरण:
Assets
└── Images
└── logo.png
फ़ाइल गुण
- Build Action = Content
- Copy to Output Directory = Copy if newer
🚀 उपयोग
नेमस्पेस जोड़ें:
using AssetFlow;
एक कस्टम फ़ॉन्ट का उपयोग करना
label1.Font =
Asset.Font(
"InkFree",
20
);
फ़ाइल एक्सटेंशन शामिल न करें।
❌ गलत:
Asset.Font("InkFree.ttf",20);
✅ सही:
Asset.Font("InkFree",20);
किसी छवि का उपयोग करना
pictureBox1.Image =
Asset.Image(
"logo"
);
यही नियम लागू होता है। एक्सटेंशन न लिखें।
❌ गलत:
Asset.Image("logo.png");
✅ सही:
Asset.Image("logo");
📌 पूर्ण उदाहरण
using AssetFlow;
namespace MyApplication
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
label1.Font =
Asset.Font(
"InkFree",
20
);
pictureBox1.Image =
Asset.Image(
"logo"
);
}
}
}
✨ विशेषताएँ
- सरल फ़ॉन्ट प्रबंधन
- सरल छवि प्रबंधन
- कोई हार्डकोडेड पथ नहीं
- डिबग और रिलीज़ बिल्ड के साथ काम करता है
- स्वच्छ और डेवलपर-अनुकूल API
AssetFlow एप्लिकेशन एसेट को प्रबंधित करना आसान बनाता है।