Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Borghetti <bdiego@gmail.com>2009-04-24 01:57:41 +0400
committerDiego Borghetti <bdiego@gmail.com>2009-04-24 01:57:41 +0400
commitefd1a69d6c12d97594c93857365547a56e6792e9 (patch)
treebf509b370b103c2b6db14a318f79dcf361030da5 /source/blender/blenfont/BLF_api.h
parent1b95d684afd7153a16ebb6d9af16b60b56fc1159 (diff)
Move texture draw to blf_util.c, now both font used it.
A little cleanup on the internal font, it's possible load the old bmfont with: BLF_load_mem(name, NULL, 0) where name can be: helv, helvb or scr. Note that the internal font also support both draw, texture and bitmap, by default always used texture. Remove some old lang function that I left there and don't exist any more because the locale are now in the RNA. Small changes to Style's, so if we build without freetype2 by default go back to the internal font, this is a little ugly (and have the old problem of scale) but now blender always show text (need work a little more there).
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r--source/blender/blenfont/BLF_api.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h
index adf9742cc9f..510ff550acc 100644
--- a/source/blender/blenfont/BLF_api.h
+++ b/source/blender/blenfont/BLF_api.h
@@ -43,6 +43,12 @@ int BLF_load_mem(char *name, unsigned char *mem, int mem_size);
void BLF_set(int fontid);
int BLF_get(void);
+/*
+ * Return the font type, can be freetype2 or internal, -1 if
+ * some error happen (no current font).
+ */
+int BLF_type_get(void);
+
void BLF_aspect(float aspect);
void BLF_position(float x, float y, float z);
void BLF_size(int size, int dpi);
@@ -74,25 +80,17 @@ void BLF_blur(int size);
void BLF_enable(int option);
void BLF_disable(int option);
-/* Read the .Blanguages file, return 1 on success or 0 if fails. */
-int BLF_lang_init(void);
-
-/* Free the memory allocate for the .Blanguages. */
-void BLF_lang_exit(void);
-
-/* Set the current Language. */
-void BLF_lang_set(int id);
-
-/* Return a string with all the Language available. */
-char *BLF_lang_pup(void);
-
-/* Return the number of invalid lines in the .Blanguages file,
- * zero means no error found.
+/*
+ * Search the path directory to the locale files, this try all
+ * the case for Linux, Win and Mac.
*/
-int BLF_lang_error(void);
+void BLF_lang_init(void);
-/* Return the code string for the specified language code. */
-char *BLF_lang_find_code(short langid);
+/* Set the current locale. */
+void BLF_lang_set(const char *);
+
+/* Set the current encoding name. */
+void BLF_lang_encoding_name(const char *str);
/* Add a path to the font dir paths. */
void BLF_dir_add(const char *path);
@@ -114,4 +112,8 @@ void BLF_dir_free(char **dirs, int count);
#define BLF_MODE_TEXTURE 0
#define BLF_MODE_BITMAP 1
+/* font->type */
+#define BLF_FONT_FREETYPE2 0
+#define BLF_FONT_INTERNAL 1
+
#endif /* BLF_API_H */