More various documentation improvements and fixes.

This commit is contained in:
Werner Lemberg 2021-06-08 18:23:16 +02:00
parent d586927d16
commit 08f66322e3
9 changed files with 41 additions and 16 deletions

View File

@ -72,6 +72,9 @@ CHANGES BETWEEN 2.10.4 and 2.11.0
This work was Priyesh Kumar's GSoC 2020 project. 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. - Improved Meson build support for the library.
- Meson support to build The FreeType demo programs. - Meson support to build The FreeType demo programs.

View File

@ -68,6 +68,10 @@ FT_BEGIN_HEADER
* @note: * @note:
* This function does nothing if compilation option `FT_DEBUG_LOGGING` * This function does nothing if compilation option `FT_DEBUG_LOGGING`
* isn't set. * isn't set.
*
* @since:
* 2.11
*
*/ */
FT_EXPORT( void ) FT_EXPORT( void )
FT_Trace_Set_Level( const char* tracing_level ); 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 * (i.e., to the value of the `FT2_DEBUG` environment value or to NULL
* if `FT2_DEBUG` is not set). * if `FT2_DEBUG` is not set).
* *
*
* @note: * @note:
* This function does nothing if compilation option `FT_DEBUG_LOGGING` * This function does nothing if compilation option `FT_DEBUG_LOGGING`
* isn't set. * isn't set.
*
* @since:
* 2.11
*
*/ */
FT_EXPORT( void ) FT_EXPORT( void )
FT_Trace_Set_Default_Level( void ); FT_Trace_Set_Default_Level( void );
@ -111,6 +118,10 @@ FT_BEGIN_HEADER
* *
* args:: * args::
* Arguments of debug or tracing messages. * Arguments of debug or tracing messages.
*
* @since:
* 2.11
*
*/ */
typedef void typedef void
(*FT_Custom_Log_Handler)( const char* ft_component, (*FT_Custom_Log_Handler)( const char* ft_component,
@ -133,6 +144,10 @@ FT_BEGIN_HEADER
* @note: * @note:
* This function does nothing if compilation option `FT_DEBUG_LOGGING` * This function does nothing if compilation option `FT_DEBUG_LOGGING`
* isn't set. * isn't set.
*
* @since:
* 2.11
*
*/ */
FT_EXPORT( void ) FT_EXPORT( void )
FT_Set_Log_Handler( FT_Custom_Log_Handler handler ); FT_Set_Log_Handler( FT_Custom_Log_Handler handler );
@ -150,6 +165,10 @@ FT_BEGIN_HEADER
* @note: * @note:
* This function does nothing if compilation option `FT_DEBUG_LOGGING` * This function does nothing if compilation option `FT_DEBUG_LOGGING`
* isn't set. * isn't set.
*
* @since:
* 2.11
*
*/ */
FT_EXPORT( void ) FT_EXPORT( void )
FT_Set_Default_Log_Handler( void ); FT_Set_Default_Log_Handler( void );

View File

@ -343,6 +343,9 @@ FT_BEGIN_HEADER
* The font driver name is a valid `module_name` for @FT_Property_Set * 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. * and @FT_Property_Get. This is not the same as @FT_Get_Font_Format.
* *
* @since:
* 2.11
*
*/ */
#define FT_FACE_DRIVER_NAME( face ) \ #define FT_FACE_DRIVER_NAME( face ) \
( ( *(FT_Module_Class**)( ( face )->driver ) )->module_name ) ( ( *(FT_Module_Class**)( ( face )->driver ) )->module_name )

View File

@ -91,7 +91,7 @@
"LCD 8-bit bitmap", "LCD 8-bit bitmap",
"vertical LCD 8-bit bitmap", "vertical LCD 8-bit bitmap",
"BGRA 32-bit color image bitmap", "BGRA 32-bit color image bitmap",
"SDF 16-bit bitmap" "SDF 8-bit bitmap"
}; };
#endif /* FT_DEBUG_LEVEL_TRACE */ #endif /* FT_DEBUG_LEVEL_TRACE */