Blender V2.61 - r43446

BKE_font.h

Go to the documentation of this file.
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 #ifndef BKE_VFONT_H
00028 #define BKE_VFONT_H
00029 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00038 #include <wchar.h>
00039 
00040 struct VFont;
00041 struct Scene;
00042 struct Object;
00043 struct Curve;
00044 struct objfnt;
00045 struct TmpFont;
00046 struct CharInfo;
00047 struct Main;
00048 
00049 struct chartrans {
00050     float xof, yof;
00051     float rot;
00052     short linenr,charnr;
00053     char dobreak;
00054 };
00055 
00056 typedef struct SelBox {
00057     float x, y, w, h;
00058 } SelBox;
00059 
00060 typedef struct EditFont {   
00061     wchar_t *copybuf;
00062     wchar_t *copybufinfo;
00063     
00064     wchar_t *textbuf;
00065     struct CharInfo *textbufinfo;
00066     wchar_t *oldstr;
00067     struct CharInfo *oldstrinfo;
00068     
00069     float textcurs[4][2];
00070     
00071 } EditFont;
00072 
00073 
00074 void BKE_font_register_builtin(void *mem, int size);
00075 
00076 void free_vfont(struct VFont *sc); 
00077 void free_ttfont(void);
00078 struct VFont *get_builtin_font(void);
00079 struct VFont *load_vfont(struct Main *bmain, const char *name);
00080 struct TmpFont *vfont_find_tmpfont(struct VFont *vfont);
00081 
00082 struct chartrans *BKE_text_to_curve(struct Main *bmain, struct Scene *scene, struct Object *ob, int mode);
00083 
00084 int BKE_font_getselection(struct Object *ob, int *start, int *end);
00085 
00086 #ifdef __cplusplus
00087 }
00088 #endif
00089 
00090 #endif
00091