More various documentation improvements and fixes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
diff --git a/docs/CHANGES b/docs/CHANGES
index 65964f9..6767f96 100644
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -72,6 +72,9 @@ CHANGES BETWEEN 2.10.4 and 2.11.0
This work was Priyesh Kumar's GSoC 2020 project.
+ - PCF bitmap fonts compressed with LZW (these are usually files with
+ the extension `.pcf.Z`) are now handled correctly.
+
- Improved Meson build support for the library.
- Meson support to build The FreeType demo programs.
diff --git a/include/freetype/ftlogging.h b/include/freetype/ftlogging.h
index 8811261..a558b85 100644
--- a/include/freetype/ftlogging.h
+++ b/include/freetype/ftlogging.h
@@ -68,6 +68,10 @@ FT_BEGIN_HEADER
* @note:
* This function does nothing if compilation option `FT_DEBUG_LOGGING`
* isn't set.
+ *
+ * @since:
+ * 2.11
+ *
*/
FT_EXPORT( void )
FT_Trace_Set_Level( const char* tracing_level );
@@ -83,10 +87,13 @@ FT_BEGIN_HEADER
* (i.e., to the value of the `FT2_DEBUG` environment value or to NULL
* if `FT2_DEBUG` is not set).
*
- *
* @note:
* This function does nothing if compilation option `FT_DEBUG_LOGGING`
* isn't set.
+ *
+ * @since:
+ * 2.11
+ *
*/
FT_EXPORT( void )
FT_Trace_Set_Default_Level( void );
@@ -111,6 +118,10 @@ FT_BEGIN_HEADER
*
* args::
* Arguments of debug or tracing messages.
+ *
+ * @since:
+ * 2.11
+ *
*/
typedef void
(*FT_Custom_Log_Handler)( const char* ft_component,
@@ -133,6 +144,10 @@ FT_BEGIN_HEADER
* @note:
* This function does nothing if compilation option `FT_DEBUG_LOGGING`
* isn't set.
+ *
+ * @since:
+ * 2.11
+ *
*/
FT_EXPORT( void )
FT_Set_Log_Handler( FT_Custom_Log_Handler handler );
@@ -150,6 +165,10 @@ FT_BEGIN_HEADER
* @note:
* This function does nothing if compilation option `FT_DEBUG_LOGGING`
* isn't set.
+ *
+ * @since:
+ * 2.11
+ *
*/
FT_EXPORT( void )
FT_Set_Default_Log_Handler( void );
diff --git a/include/freetype/ftmodapi.h b/include/freetype/ftmodapi.h
index e507f62..1eded9e 100644
--- a/include/freetype/ftmodapi.h
+++ b/include/freetype/ftmodapi.h
@@ -343,6 +343,9 @@ FT_BEGIN_HEADER
* The font driver name is a valid `module_name` for @FT_Property_Set
* and @FT_Property_Get. This is not the same as @FT_Get_Font_Format.
*
+ * @since:
+ * 2.11
+ *
*/
#define FT_FACE_DRIVER_NAME( face ) \
( ( *(FT_Module_Class**)( ( face )->driver ) )->module_name )
diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c
index 99f2bc6..e60303a 100644
--- a/src/base/ftcalc.c
+++ b/src/base/ftcalc.c
@@ -109,7 +109,7 @@
#ifndef FT_MSB
- FT_BASE_DEF ( FT_Int )
+ FT_BASE_DEF( FT_Int )
FT_MSB( FT_UInt32 z )
{
FT_Int shift = 0;
diff --git a/src/base/ftlcdfil.c b/src/base/ftlcdfil.c
index f3725a3..45e5114 100644
--- a/src/base/ftlcdfil.c
+++ b/src/base/ftlcdfil.c
@@ -32,7 +32,7 @@
/* add padding according to filter weights */
- FT_BASE_DEF (void)
+ FT_BASE_DEF( void )
ft_lcd_padding( FT_BBox* cbox,
FT_GlyphSlot slot,
FT_Render_Mode mode )
@@ -368,7 +368,7 @@
#else /* !FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
/* add padding to accommodate outline shifts */
- FT_BASE_DEF (void)
+ FT_BASE_DEF( void )
ft_lcd_padding( FT_BBox* cbox,
FT_GlyphSlot slot,
FT_Render_Mode mode )
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 3ae39ee..4a80145 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -91,7 +91,7 @@
"LCD 8-bit bitmap",
"vertical LCD 8-bit bitmap",
"BGRA 32-bit color image bitmap",
- "SDF 16-bit bitmap"
+ "SDF 8-bit bitmap"
};
#endif /* FT_DEBUG_LEVEL_TRACE */
@@ -5602,7 +5602,7 @@
/* documentation is in freetype.h */
- FT_EXPORT_DEF ( FT_Bool )
+ FT_EXPORT_DEF( FT_Bool )
FT_Get_Color_Glyph_Paint( FT_Face face,
FT_UInt base_glyph,
FT_Color_Root_Transform root_transform,
@@ -5633,7 +5633,7 @@
/* documentation is in freetype.h */
- FT_EXPORT_DEF ( FT_Bool )
+ FT_EXPORT_DEF( FT_Bool )
FT_Get_Paint_Layers( FT_Face face,
FT_LayerIterator* layer_iterator,
FT_OpaquePaint* paint )
@@ -5687,7 +5687,7 @@
/* documentation is in freetype.h */
- FT_EXPORT_DEF ( FT_Bool )
+ FT_EXPORT_DEF( FT_Bool )
FT_Get_Colorline_Stops ( FT_Face face,
FT_ColorStop * color_stop,
FT_ColorStopIterator *iterator )
diff --git a/src/cid/cidload.c b/src/cid/cidload.c
index b22b536..7fd0d7c 100644
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -665,11 +665,11 @@
static FT_Error
- cid_hex_to_binary( FT_Byte* data,
- FT_ULong data_len,
- FT_ULong offset,
- CID_Face face,
- FT_ULong* data_written )
+ cid_hex_to_binary( FT_Byte* data,
+ FT_ULong data_len,
+ FT_ULong offset,
+ CID_Face face,
+ FT_ULong* data_written )
{
FT_Stream stream = face->root.stream;
FT_Error error;
diff --git a/src/sfnt/ttcolr.c b/src/sfnt/ttcolr.c
index c3f225d..d672bb5 100644
--- a/src/sfnt/ttcolr.c
+++ b/src/sfnt/ttcolr.c
@@ -629,7 +629,7 @@
}
- FT_LOCAL_DEF ( FT_Bool )
+ FT_LOCAL_DEF( FT_Bool )
tt_face_get_colr_glyph_paint( TT_Face face,
FT_UInt base_glyph,
FT_Color_Root_Transform root_transform,
@@ -745,7 +745,7 @@
}
- FT_LOCAL_DEF ( FT_Bool )
+ FT_LOCAL_DEF( FT_Bool )
tt_face_get_colorline_stops( TT_Face face,
FT_ColorStop* color_stop,
FT_ColorStopIterator *iterator )
diff --git a/src/sfnt/ttcolr.h b/src/sfnt/ttcolr.h
index 4a7ed4b..c91d2b1 100644
--- a/src/sfnt/ttcolr.h
+++ b/src/sfnt/ttcolr.h
@@ -48,7 +48,7 @@ FT_BEGIN_HEADER
FT_Color_Root_Transform root_transform,
FT_OpaquePaint* paint );
- FT_LOCAL ( FT_Bool )
+ FT_LOCAL( FT_Bool )
tt_face_get_paint_layers( TT_Face face,
FT_LayerIterator* iterator,
FT_OpaquePaint* paint );