From d4f9678b3939a3b480005fee3b82ad8843de51e0 Mon Sep 17 00:00:00 2001 From: Rob Haarsma Date: Mon, 28 Apr 2003 21:16:27 +0000 Subject: Added a 3D font loader that uses the Freetype2 library to parse the vector data. Freetype2 supports many font formats including Type1, TrueType and OpenType fonts. Enable with the WITH_FREETYPE2 compile flag, in the source/blender/blenkernel and source/blender/blenlib dirs. --- source/blender/blenlib/BLI_vfontdata.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source/blender/blenlib/BLI_vfontdata.h') diff --git a/source/blender/blenlib/BLI_vfontdata.h b/source/blender/blenlib/BLI_vfontdata.h index 86aab13e3bc..b6ec749b50a 100644 --- a/source/blender/blenlib/BLI_vfontdata.h +++ b/source/blender/blenlib/BLI_vfontdata.h @@ -63,5 +63,19 @@ typedef struct VFontData { BLI_vfontdata_from_psfont( struct PackedFile *pf); +#ifdef WITH_FREETYPE2 +/** + * Construct a new VFontData structure from + * Freetype font data in a PackedFile. + * + * @param pf The font data. + * @retval A new VFontData structure, or NULL + * if unable to load. + */ + VFontData* +BLI_vfontdata_from_freetypefont( + struct PackedFile *pf); +#endif + #endif -- cgit v1.2.3