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:
authorRob Haarsma <phaseIV@zonnet.nl>2003-04-29 01:16:27 +0400
committerRob Haarsma <phaseIV@zonnet.nl>2003-04-29 01:16:27 +0400
commitd4f9678b3939a3b480005fee3b82ad8843de51e0 (patch)
tree3238f765dd57a251d9b0243d28f940e729f2fa77 /source/blender/blenlib/BLI_vfontdata.h
parent597875cb6902dfac5a82a30e2c8ab09c3d743228 (diff)
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.
Diffstat (limited to 'source/blender/blenlib/BLI_vfontdata.h')
-rw-r--r--source/blender/blenlib/BLI_vfontdata.h14
1 files changed, 14 insertions, 0 deletions
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