addon addon addon addon stash.
"يتيح Font Stash عرضًا سهلاً في تطبيقات OpenGL. وهو يدعم خطوط TrueType والسلاسل الموضعية المشفرة UTF-8. يتم تخزين جميع الرسوم المتحركة في أطلس ملمس OpenGL. يتم إجراء نقطية للخطوط باستخدام Sean Barrett Stb_truetype.h."
الميزات الرئيسية:
لقد قمت بإجراء تعديلات صغيرة على Fontstash لتقديم النص العمودي ، للعب أجمل في عالم OpenFrameworks بشكل عام. كما سيتم الإبلاغ في كل مرة يتم إنشاء نسيج جديد. تم إجراء تعديلات أخرى لدعم MIPMaps ، وتباعد الأحرف ، و kerning ، ودعم شبكية العين.
يدعم OfxFontStash رسم النص الأساسي من الخط الواحد ، و LateHight ، وتقديم النص متعدد الألين على أساس " n" ، وكذلك التفاف الكلمات لرسم فقرة مقيدة بعرض معين. كما يوفر حسابات Bbox على جميع خيارات الرسم. يتطلب فرعًا معينًا من Ofxunicode.
لقد قمت ببعض التعديلات الإضافية على fontstash للسماح بإنشاء MIPMaps ، ولتمكين استخدام معلومات Kerning المحددة للخط ، لذلك يتم عرض التباعد بين أزواج الأحرف كمصمم مقصود.
Ofxfontstash سريع جدا في رسم النص. إذا كنت بحاجة إلى رسم عمود نصي محاذاة من عرض معين ، فيمكن أن يكون Ofxfontstash أسرع 10x من Ofxftgl.
تم إنشاء Font Stash في الأصل ونشره بواسطة Mikko Mononen.
للحصول على هذا للعمل على Raspberry Pi ، تحتاج إلى إعادة تسمية "libs/fontstash/src/fontstash.c" و "libs/fontstash/src/stb_truetype.c" من *.c إلى *.cpp.
تم إنشاء OFXFONTSTASH.CPP و OFXFONTSTASH.H بواسطة Oriol Ferrer Mesià وإصداره بموجب ترخيص MIT.
Copyright (c) 2012 Oriol Ferrer Mesià
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
يتم ترخيص الملفات fontstash.c و fontstash.h و main.c بموجب ترخيص ZLIB:
Copyright (c) 2011 Andreas Krinke [email protected]
Copyright (c) 2009 Mikko Mononen [email protected]
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
بالنسبة لفك تشفير UTF-8 ، يستخدم Font Stash وحدة فك ترميز UTF-8 المرنة والاقتصادية لـ Björn Höhrmann (المدرجة في fontstash.c). رمزه مرخص بموجب ترخيص معهد ماساتشوستس للتكنولوجيا:
Copyright (c) 2008-2009 Bjoern Hoehrmann <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
أخيرًا ، يستخدم Font Stash المجال العام لـ Sean Barrett TrueType Font Rasterizer Stb_trueType.h.