~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/ftfont/intern/FTF_TTFont.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: FTF_TTFont.h,v 1.6 2003/10/23 18:25:07 ton Exp $
 
2
 * $Id: FTF_TTFont.h,v 1.10 2005/01/21 14:48:02 phase Exp $
3
3
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or
30
30
 
31
31
/**
32
32
 
33
 
 * $Id: FTF_TTFont.h,v 1.6 2003/10/23 18:25:07 ton Exp $
 
33
 * $Id: FTF_TTFont.h,v 1.10 2005/01/21 14:48:02 phase Exp $
34
34
 * Copyright (C) 2001 NaN Technologies B.V.
35
35
 */
36
36
 
38
38
#define __FTF_TRUETYPE_FONT_H
39
39
 
40
40
#include "FTGLPixmapFont.h"
 
41
#include "FTGLTextureFont.h"
 
42
 
41
43
#include <stdio.h>
42
44
//#include <iconv.h>
43
45
 
62
64
        void SetSize(int size);
63
65
        int GetSize(void);
64
66
 
65
 
        int Ascender(void);
66
 
        int Descender(void);
 
67
//      int Ascender(void);
 
68
//      int Descender(void);
67
69
 
68
70
        int TransConvString(char* str, char* ustr, unsigned int flag);
69
71
 
84
86
         */
85
87
        void SetFontSize(char size);
86
88
 
87
 
        int SetFont(char* str, int size);
 
89
        int SetFont(const unsigned char* str, int datasize, int fontsize);
88
90
 
89
91
        void SetLanguage(char* str);
90
92
 
91
93
        void SetEncoding(char* str);
92
94
 
 
95
        /**
 
96
         * functions to communicate with blender ui rasterpos
 
97
         */
 
98
        void SetPosition(float x, float y);
 
99
        void SetMode(int mode);
 
100
        void SetScale(float fsize);
 
101
 
93
102
protected:
94
103
        char messagepath[1024];
95
104
 
98
107
        char font_name[128];
99
108
        int font_size;
100
109
 
 
110
        int     mode;                   // 0 = pixmap, 1 = texture
 
111
        float pen_x, pen_y; //rasterpos
 
112
        float fsize;
 
113
 
101
114
        /** FTGL's */
102
115
        FTFont* font;   /* active */
103
116