빠르고 간단한 애드온 포장 폰트시.
"Font Stash는 OpenGL 애플리케이션에서 쉬운 문자열 렌더링을 가능하게합니다. TrueType Fonts 및 UTF-8 인코딩 된 로컬로 된 문자열을 지원합니다. 모든 글리프는 OpenGL 텍스처 아틀라스에 캐시됩니다. 글꼴의 Rasastization은 Sean Barrett의 STB_TRUETYPE.H를 사용하여 수행됩니다."
주요 기능 :
나는 텍스트를 수직으로 뒤집어 놓고 OpenFrameworks 유니버스에서 더 잘 연주하기 위해 FontStash를 작은 수정으로 만들었습니다. 또한 새로운 질감이 생성 될 때마다보고합니다. MIPMAP, 캐릭터 간격, 커닝 및 망막지지를 지원하기 위해 다른 수정이 이루어졌습니다.
OfxFontstash는 ' n'을 기반으로 기본적인 한 줄 텍스트 도면, 라인 하이, 멀티 린 텍스트 렌더링 및 특정 너비로 제한된 단락을 그릴 수있는 단어 포장을 지원합니다. 또한 모든 드로잉 옵션에 대한 Bbox 계산도 제공합니다. ofxunicode의 특정 분지가 필요합니다.
나는 mipmaps의 생성을 허용하고 글꼴 지정된 커닝 정보를 사용할 수 있도록 Fontstash를 추가로 수정 했으므로 캐릭터 쌍 간의 간격이 디자이너의 의도 한대로 표시됩니다.
ofxfontstash는 텍스트를 그리는 데 매우 빠릅니다. 특정 너비의 왼쪽 정렬 텍스트 열을 그려야하는 경우 OfxFontStash는 ofxftgl보다 ~ 10 배 빠를 수 있습니다.
Font Stash는 원래 Mikko Mononen이 제작하고 출판했습니다.
라즈베리 파이에서 작업하려면 "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는 Björn Höhrmann의 유연하고 경제적 인 UTF-8 디코더 (Fontstash.c에 포함)를 사용합니다. 그의 코드는 MIT 라이센스에 따라 라이센스가 부여됩니다.
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 글꼴 Rasterizer STB_TRUETYPE.H를 사용합니다.