diff options
author | Diego Borghetti <bdiego@gmail.com> | 2009-06-12 01:43:59 +0400 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2009-06-12 01:43:59 +0400 |
commit | ec8b2593ecdee9493210df0e6f9c4dbbcb2a1985 (patch) | |
tree | a2606bdb7d6da77c4c2243e12efc85fb4a957bd1 /source/blender/blenfont/BLF_api.h | |
parent | a054f3ccce67ebf32ecc687b1f19ba0a6b6144f0 (diff) |
Smal tweak to allow the user set a kerning value.
This commit add two option to the blenfont library:
1) BLF_FONT_KERNING
This enable the kerning information that come with the
font, by default this option is disable and still don't
have a UI for change.
2) BLF USER_KERNING
This allow the user set a kerning value to by apply for
every character, by default this option is enable but all
the font have a kerning value of zero.
Ton I add this option to the style with a default value of 1.
Access from:
Outliner -> User Preferences -> Style -> FontStyle -> Kerning
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r-- | source/blender/blenfont/BLF_api.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index b5a61f2727f..d1d802622ea 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -85,7 +85,7 @@ float BLF_height_default(char *str); void BLF_rotation(float angle); void BLF_clipping(float xmin, float ymin, float xmax, float ymax); void BLF_blur(int size); - +void BLF_kerning(int space); void BLF_enable(int option); void BLF_disable(int option); @@ -117,6 +117,8 @@ void BLF_dir_free(char **dirs, int count); /* font->flags. */ #define BLF_ROTATION (1<<0) #define BLF_CLIPPING (1<<1) +#define BLF_FONT_KERNING (1<<2) +#define BLF_USER_KERNING (1<<3) /* font->mode. */ #define BLF_MODE_TEXTURE 0 |