From 21c567854a35588aef445495d17706ff6c7d2245 Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Mon, 20 Aug 2007 01:02:12 +0000 Subject: Patch #6770 by James C (sheep) Tooltip getStringSize and getBoundingBox correction Not really any user-visible changes here, but a nice clean-up of internal font drawing functions, in this case used in tooltips. Thanks! --- source/blender/ftfont/FTF_Api.h | 12 ++++++------ source/blender/ftfont/intern/FTF_TTFont.h | 11 +++++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) (limited to 'source/blender/ftfont') diff --git a/source/blender/ftfont/FTF_Api.h b/source/blender/ftfont/FTF_Api.h index b370c18f89e..0793c4b6dfb 100644 --- a/source/blender/ftfont/FTF_Api.h +++ b/source/blender/ftfont/FTF_Api.h @@ -106,12 +106,12 @@ FTF_EXPORT float FTF_GetStringWidth(char* str, unsigned int flag); /** * Get Bounding Box - * @param llx - * @param lly - * @param llz - * @param urx - * @param ury - * @param urz + * @param llx Lower left near x coord + * @param lly Lower left near y coord + * @param llz Lower left near z coord + * @param urx Upper right far x coord + * @param ury Upper right far y coord + * @param urz Upper right far z coord * @param mode flag to forward to FTF_TransConvString() * not test yet. */ diff --git a/source/blender/ftfont/intern/FTF_TTFont.h b/source/blender/ftfont/intern/FTF_TTFont.h index c4dee93c5dc..b5ff1cc54bf 100644 --- a/source/blender/ftfont/intern/FTF_TTFont.h +++ b/source/blender/ftfont/intern/FTF_TTFont.h @@ -78,6 +78,17 @@ public: float GetStringWidth(char* str, unsigned int flag); + /** + * Get the bounding box for a string. + * + * @param str The string + * @param llx Lower left near x coord + * @param lly Lower left near y coord + * @param llz Lower left near z coord + * @param urx Upper right far x coord + * @param ury Upper right far y coord + * @param urz Upper right far z coord + */ void GetBoundingBox(char* str, float *llx, float *lly, float *llz, float *urx, float *ury, float *urz, unsigned int flag); /** -- cgit v1.2.3