forked from minhngoc25a/freetype2
Removes trailing white spaces.
This commit is contained in:
parent
f8eae8a824
commit
877736d057
|
@ -43,7 +43,7 @@ FT_BEGIN_HEADER
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef FT_Error
|
typedef FT_Error
|
||||||
(*SVG_Lib_Init)( );
|
(*SVG_Lib_Init)( );
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
@ -73,7 +73,7 @@ FT_BEGIN_HEADER
|
||||||
*
|
*
|
||||||
* @input:
|
* @input:
|
||||||
* svg_doc::
|
* svg_doc::
|
||||||
* A pointer to the svg document
|
* A pointer to the svg document
|
||||||
*
|
*
|
||||||
* @return:
|
* @return:
|
||||||
* FreeType error code. 0 means success.
|
* FreeType error code. 0 means success.
|
||||||
|
@ -94,7 +94,7 @@ FT_BEGIN_HEADER
|
||||||
*
|
*
|
||||||
* @input:
|
* @input:
|
||||||
* module::
|
* module::
|
||||||
* FT_Module instance.
|
* FT_Module instance.
|
||||||
*
|
*
|
||||||
* init_hook::
|
* init_hook::
|
||||||
* A function pointer of the type `SVG_Lib_Init'. Read the documentation
|
* A function pointer of the type `SVG_Lib_Init'. Read the documentation
|
||||||
|
@ -105,7 +105,7 @@ FT_BEGIN_HEADER
|
||||||
* of `SVG_Lib_Free'.
|
* of `SVG_Lib_Free'.
|
||||||
*
|
*
|
||||||
* render_hook::
|
* render_hook::
|
||||||
* A function pointer of the type `SVG_Lib_Render'. Read the
|
* A function pointer of the type `SVG_Lib_Render'. Read the
|
||||||
* documentation of `SVG_Lib_Render'.
|
* documentation of `SVG_Lib_Render'.
|
||||||
*
|
*
|
||||||
* @return:
|
* @return:
|
||||||
|
@ -114,7 +114,7 @@ FT_BEGIN_HEADER
|
||||||
|
|
||||||
typedef FT_Error
|
typedef FT_Error
|
||||||
(*SVG_Set_Hooks)( FT_Module module,
|
(*SVG_Set_Hooks)( FT_Module module,
|
||||||
SVG_Lib_Init init_hook,
|
SVG_Lib_Init init_hook,
|
||||||
SVG_Lib_Free free_hook,
|
SVG_Lib_Free free_hook,
|
||||||
SVG_Lib_Render render_hook );
|
SVG_Lib_Render render_hook );
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ FT_BEGIN_HEADER
|
||||||
* SVG_Renderer_Interface
|
* SVG_Renderer_Interface
|
||||||
*
|
*
|
||||||
* @description:
|
* @description:
|
||||||
* An interface structure that function needed to inject external SVG
|
* An interface structure that function needed to inject external SVG
|
||||||
* rendering library hooks.
|
* rendering library hooks.
|
||||||
*
|
*
|
||||||
* @fields:
|
* @fields:
|
||||||
|
@ -135,16 +135,16 @@ FT_BEGIN_HEADER
|
||||||
* FreeType error code. 0 means success.
|
* FreeType error code. 0 means success.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct SVG_Renderer_Interface_
|
typedef struct SVG_Renderer_Interface_
|
||||||
{
|
{
|
||||||
SVG_Set_Hooks set_hooks;
|
SVG_Set_Hooks set_hooks;
|
||||||
} SVG_Renderer_Interface;
|
} SVG_Renderer_Interface;
|
||||||
|
|
||||||
|
|
||||||
/* TODO: to document */
|
/* TODO: to document */
|
||||||
FT_Error
|
FT_Error
|
||||||
FT_Set_Svg_Hooks( FT_Library library,
|
FT_Set_Svg_Hooks( FT_Library library,
|
||||||
SVG_Lib_Init init_hook,
|
SVG_Lib_Init init_hook,
|
||||||
SVG_Lib_Free free_hook,
|
SVG_Lib_Free free_hook,
|
||||||
SVG_Lib_Render render_hook );
|
SVG_Lib_Render render_hook );
|
||||||
|
|
||||||
|
|
|
@ -5551,14 +5551,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
FT_EXPORT_DEF( FT_Error )
|
FT_EXPORT_DEF( FT_Error )
|
||||||
FT_Set_Svg_Hooks( FT_Library library,
|
FT_Set_Svg_Hooks( FT_Library library,
|
||||||
SVG_Lib_Init init_hook,
|
SVG_Lib_Init init_hook,
|
||||||
SVG_Lib_Free free_hook,
|
SVG_Lib_Free free_hook,
|
||||||
SVG_Lib_Render render_hook )
|
SVG_Lib_Render render_hook )
|
||||||
{
|
{
|
||||||
FT_Module renderer;
|
FT_Module renderer;
|
||||||
SVG_Renderer_Interface *svg;
|
SVG_Renderer_Interface *svg;
|
||||||
|
|
||||||
renderer = FT_Get_Module( library, "ot-svg" );
|
renderer = FT_Get_Module( library, "ot-svg" );
|
||||||
svg = (SVG_Renderer_Interface*)renderer->clazz->module_interface;
|
svg = (SVG_Renderer_Interface*)renderer->clazz->module_interface;
|
||||||
svg->set_hooks(renderer, init_hook, free_hook, render_hook);
|
svg->set_hooks(renderer, init_hook, free_hook, render_hook);
|
||||||
|
|
|
@ -210,7 +210,7 @@
|
||||||
(FT_ULong)doc_list[doc_length - 2] << 16 |
|
(FT_ULong)doc_list[doc_length - 2] << 16 |
|
||||||
(FT_ULong)doc_list[doc_length - 3] << 8 |
|
(FT_ULong)doc_list[doc_length - 3] << 8 |
|
||||||
(FT_ULong)doc_list[doc_length - 4];
|
(FT_ULong)doc_list[doc_length - 4];
|
||||||
|
|
||||||
/* TODO: (OT-SVG) memory allocated here needs to be freed somewhere */
|
/* TODO: (OT-SVG) memory allocated here needs to be freed somewhere */
|
||||||
uncomp_buffer = (FT_Byte*) memory->alloc(memory, uncomp_size);
|
uncomp_buffer = (FT_Byte*) memory->alloc(memory, uncomp_size);
|
||||||
error = FT_Gzip_Uncompress( memory, uncomp_buffer, &uncomp_size,
|
error = FT_Gzip_Uncompress( memory, uncomp_buffer, &uncomp_size,
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include "ftsvg.h"
|
#include "ftsvg.h"
|
||||||
|
|
||||||
/* tmp hook injection */
|
/* tmp hook injection */
|
||||||
FT_Error
|
FT_Error
|
||||||
tmp_svg_lib_init()
|
tmp_svg_lib_init()
|
||||||
{
|
{
|
||||||
FT_Error error;
|
FT_Error error;
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
{
|
{
|
||||||
FT_Error error = FT_Err_Ok;
|
FT_Error error = FT_Err_Ok;
|
||||||
svg_module->loaded = FALSE;
|
svg_module->loaded = FALSE;
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FT_Error
|
static FT_Error
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
|
|
||||||
static FT_Error
|
static FT_Error
|
||||||
ft_svg_set_hooks( FT_Module renderer_,
|
ft_svg_set_hooks( FT_Module renderer_,
|
||||||
SVG_Lib_Init init_hook,
|
SVG_Lib_Init init_hook,
|
||||||
SVG_Lib_Free free_hook,
|
SVG_Lib_Free free_hook,
|
||||||
SVG_Lib_Render render_hook )
|
SVG_Lib_Render render_hook )
|
||||||
{
|
{
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static const SVG_Renderer_Interface svg_renderer_interface =
|
static const SVG_Renderer_Interface svg_renderer_interface =
|
||||||
{
|
{
|
||||||
(SVG_Set_Hooks)ft_svg_set_hooks
|
(SVG_Set_Hooks)ft_svg_set_hooks
|
||||||
};
|
};
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
typedef struct SVG_RendererHooks_
|
typedef struct SVG_RendererHooks_
|
||||||
{
|
{
|
||||||
/* Api Hooks for OT-SVG Rendering */
|
/* Api Hooks for OT-SVG Rendering */
|
||||||
SVG_Lib_Init svg_lib_init;
|
SVG_Lib_Init svg_lib_init;
|
||||||
SVG_Lib_Free svg_lib_free;
|
SVG_Lib_Free svg_lib_free;
|
||||||
SVG_Lib_Render svg_lib_render;
|
SVG_Lib_Render svg_lib_render;
|
||||||
|
|
Loading…
Reference in New Issue