Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00019 * All rights reserved. 00020 * 00021 * The Original Code is: all of this file. 00022 * 00023 * Contributor(s): none yet. 00024 * 00025 * ***** END GPL LICENSE BLOCK ***** 00026 */ 00027 00028 #ifndef BLI_VFONTDATA_H 00029 #define BLI_VFONTDATA_H 00030 00037 #include "DNA_listBase.h" 00038 00039 struct PackedFile; 00040 struct VFont; 00041 00042 #define MAX_VF_CHARS 256 00043 00044 typedef struct VFontData { 00045 ListBase characters; 00046 // ListBase nurbsbase[MAX_VF_CHARS]; 00047 // float resol[MAX_VF_CHARS]; 00048 // float width[MAX_VF_CHARS]; 00049 // float *points[MAX_VF_CHARS]; 00050 char name[128]; 00051 } VFontData; 00052 00053 typedef struct VChar { 00054 struct VChar *next, *prev; 00055 ListBase nurbsbase; 00056 intptr_t index; 00057 float resol; 00058 float width; 00059 float *points; 00060 } VChar; 00061 00062 struct TmpFont 00063 { 00064 struct TmpFont *next, *prev; 00065 struct PackedFile *pf; 00066 struct VFont *vfont; 00067 }; 00068 00077 VFontData* 00078 BLI_vfontdata_from_freetypefont( 00079 struct PackedFile *pf); 00080 00081 int 00082 BLI_vfontchar_from_freetypefont( 00083 struct VFont *vfont, unsigned long character); 00084 00085 #endif 00086