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

« back to all changes in this revision

Viewing changes to source/blender/ftfont/intern/FTF_Api.cpp

  • 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_Api.cpp,v 1.4 2004/01/23 14:19:44 zuster Exp $
 
2
 * $Id: FTF_Api.cpp,v 1.7 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_Api.cpp,v 1.4 2004/01/23 14:19:44 zuster Exp $
 
33
 * $Id: FTF_Api.cpp,v 1.7 2005/01/21 14:48:02 phase Exp $
34
34
 * Copyright (C) 2001 NaN Technologies B.V.
35
35
 *
36
36
 * Implementation of the API of FTGL library.
69
69
        return _FTF_GetFont()->GetSize();
70
70
}
71
71
 
72
 
 
 
72
/*
73
73
FTF_EXPORT int FTF_Ascender(void)
74
74
{
75
75
        return _FTF_GetFont()->Ascender();
79
79
{
80
80
        return _FTF_GetFont()->Descender();
81
81
}
82
 
 
 
82
*/
83
83
 
84
84
FTF_EXPORT void FTF_TransConvString(char* str, char* ustr, unsigned int flag)
85
85
{
132
132
 
133
133
/**
134
134
  * added by phase
135
 
  *
 
135
  * changed by ton; to allow both file load as memory load (datasize!=0)
136
136
  */
137
 
FTF_EXPORT int FTF_SetFont(char* str, int size)
 
137
FTF_EXPORT int FTF_SetFont(const unsigned char* str, int datasize, int fontsize)
138
138
{
139
 
  return _FTF_GetFont()->SetFont(str, size);
 
139
  return _FTF_GetFont()->SetFont(str, datasize, fontsize);
140
140
}
141
141
 
142
 
/* added bt ton */
 
142
/* added by ton */
143
143
 
144
144
FTF_EXPORT void FTF_SetFontSize(char size)
145
145
{
155
155
  _FTF_GetFont()->SetLanguage(str);
156
156
}
157
157
 
158
 
/**
159
 
  * added by phase
160
 
  *
161
 
  */
162
158
FTF_EXPORT void FTF_SetEncoding(char* str)
163
159
{
164
160
  _FTF_GetFont()->SetEncoding(str);
165
161
}
 
162
 
 
163
FTF_EXPORT void FTF_SetPosition(float x, float y)
 
164
{
 
165
  _FTF_GetFont()->SetPosition(x, y);
 
166
}
 
167
 
 
168
FTF_EXPORT void FTF_SetMode(int mode)
 
169
{
 
170
  _FTF_GetFont()->SetMode(mode);
 
171
}
 
172
 
 
173
FTF_EXPORT void FTF_SetScale(float fsize)
 
174
{
 
175
  _FTF_GetFont()->SetScale(fsize);
 
176
}