diff options
author | Diego Borghetti <bdiego@gmail.com> | 2009-05-09 01:24:58 +0400 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2009-05-09 01:24:58 +0400 |
commit | fc1036d206bc23b371e4e04e5e257feee7f824b3 (patch) | |
tree | 32de79454b6c376abd6992282fe8d4f1cd830629 /source/blender/blenfont/intern/blf_internal.h | |
parent | 749a9083318f7d59999c1f3ce891db658e089772 (diff) |
Add support for attach a file with metrics information to the font.
Fonts like Type 1, have one file with the glyph image and another
file with metrics and kerning information, this try to search if the font
have this information and load (try open the same file but with the .afm
and .pfm extension).
Also add a function to load the same information from memory, just in case
that in some point we add a font like this.
Diffstat (limited to 'source/blender/blenfont/intern/blf_internal.h')
-rw-r--r-- | source/blender/blenfont/intern/blf_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_internal.h b/source/blender/blenfont/intern/blf_internal.h index da213622766..c9bdc428ebb 100644 --- a/source/blender/blenfont/intern/blf_internal.h +++ b/source/blender/blenfont/intern/blf_internal.h @@ -33,6 +33,7 @@ unsigned int blf_hash(unsigned int val); int blf_utf8_next(unsigned char *buf, int *iindex); char *blf_dir_search(const char *file); +char *blf_dir_metrics_search(char *filename); int blf_dir_split(const char *str, char *file, int *size); int blf_font_init(void); @@ -40,6 +41,8 @@ void blf_font_exit(void); FontBLF *blf_font_new(char *name, char *filename); FontBLF *blf_font_new_from_mem(char *name, unsigned char *mem, int mem_size); +void blf_font_attach_from_mem(FontBLF *font, const unsigned char *mem, int mem_size); + void blf_font_size(FontBLF *font, int size, int dpi); void blf_font_draw(FontBLF *font, char *str); void blf_font_boundbox(FontBLF *font, char *str, rctf *box); |