提交 20f742cb 编写于 作者: L Lizhiqi 提交者: Lizhiqi

fixed a4e56fe2 from https://gitee.com/pssea/third_party_freetype/pulls/45

Description: optimize vector font memeory
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I5Z265
Feature or Bugfix: Feature
Binary Source:No
Signed-off-by: Nlizhiqi <lizhiqi1@huawei.com>
上级 a6a3d6f1
......@@ -87,7 +87,7 @@ FT_BEGIN_HEADER
FT_GlyphLoader_Done( FT_GlyphLoader loader );
/* reset a glyph loader (frees everything int it) */
FT_BASE( void )
FT_EXPORT( void )
FT_GlyphLoader_Reset( FT_GlyphLoader loader );
/* rewind a glyph loader */
......
......@@ -695,7 +695,7 @@ FT_BEGIN_HEADER
/* Free the bitmap of a given glyphslot when needed (i.e., only when it */
/* was allocated with ft_glyphslot_alloc_bitmap). */
FT_BASE( void )
FT_EXPORT( void )
ft_glyphslot_free_bitmap( FT_GlyphSlot slot );
......
......@@ -396,7 +396,7 @@ FT_BEGIN_HEADER
/* read bytes from a stream into a user-allocated buffer, returns an */
/* error if not all bytes could be read. */
FT_EXPORT_DEF( FT_Error )
FT_EXPORT( FT_Error )
FT_Stream_Read( FT_Stream stream,
FT_Byte* buffer,
FT_ULong count );
......
......@@ -101,7 +101,7 @@
/* reset glyph loader, free all allocated tables, */
/* and start from zero */
FT_BASE_DEF( void )
FT_EXPORT_DEF( void )
FT_GlyphLoader_Reset( FT_GlyphLoader loader )
{
FT_Memory memory = loader->memory;
......
......@@ -321,7 +321,7 @@
}
FT_BASE_DEF( void )
FT_EXPORT_DEF( void )
ft_glyphslot_free_bitmap( FT_GlyphSlot slot )
{
if ( slot->internal && ( slot->internal->flags & FT_GLYPH_OWN_BITMAP ) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册