freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] wl/freetype-ot-svg-from-scratch-new 38037a0cc 1/6: Add flag


From: Werner Lemberg
Subject: [freetype2] wl/freetype-ot-svg-from-scratch-new 38037a0cc 1/6: Add flag `FT_CONFIG_OPTION_SVG`.
Date: Tue, 11 Jan 2022 03:47:56 -0500 (EST)

branch: wl/freetype-ot-svg-from-scratch-new
commit 38037a0cc25a1a9fb3d27276aa292399f20ed1a8
Author: Moazin Khatti <moazinkhatri@gmail.com>
Commit: Werner Lemberg <wl@gnu.org>

    Add flag `FT_CONFIG_OPTION_SVG`.
    
    This flag is going to be used to conditionally compile support for OT-SVG
    glyphs.  FreeType will do the parsing and rely on external hooks for
    rendering of OT-SVG glyphs.
    
    * devel/ftoption.h, include/freetype/config/ftoption.h
    (FT_CONFIG_OPTION_SVG): New flag.
---
 devel/ftoption.h                   | 16 +++++++++++++++-
 include/freetype/config/ftoption.h | 16 +++++++++++++++-
 2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/devel/ftoption.h b/devel/ftoption.h
index a99c4c97d..6a3e51a4f 100644
--- a/devel/ftoption.h
+++ b/devel/ftoption.h
@@ -525,6 +525,20 @@ FT_BEGIN_HEADER
 #undef FT_CONFIG_OPTION_USE_MODULE_ERRORS
 
 
+  /**************************************************************************
+   *
+   * OpenType SVG Glyph Support
+   *
+   *   Setting this macro enables support for OpenType SVG glyphs.  By
+   *   default, FreeType can only fetch SVG documents.  However, it can also
+   *   render them if external rendering hook functions are plugged in at
+   *   runtime.
+   *
+   *   More details on the hooks can be found in file `otsvg.h`.
+   */
+#define FT_CONFIG_OPTION_SVG
+
+
   /**************************************************************************
    *
    * Error Strings
@@ -1004,8 +1018,8 @@ FT_BEGIN_HEADER
 #error "Invalid CFF darkening parameters!"
 #endif
 
-FT_END_HEADER
 
+FT_END_HEADER
 
 #endif /* FTOPTION_H_ */
 
diff --git a/include/freetype/config/ftoption.h 
b/include/freetype/config/ftoption.h
index 487b33364..23ed6edbf 100644
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -527,6 +527,20 @@ FT_BEGIN_HEADER
 #undef FT_CONFIG_OPTION_USE_MODULE_ERRORS
 
 
+  /**************************************************************************
+   *
+   * OpenType SVG Glyph Support
+   *
+   *   Setting this macro enables support for OpenType SVG glyphs.  By
+   *   default, FreeType can only fetch SVG documents.  However, it can also
+   *   render them if external rendering hook functions are plugged in at
+   *   runtime.
+   *
+   *   More details on the hooks can be found in file `otsvg.h`.
+   */
+#define FT_CONFIG_OPTION_SVG
+
+
   /**************************************************************************
    *
    * Error Strings
@@ -1006,8 +1020,8 @@ FT_BEGIN_HEADER
 #error "Invalid CFF darkening parameters!"
 #endif
 
-FT_END_HEADER
 
+FT_END_HEADER
 
 #endif /* FTOPTION_H_ */
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]