ftmodapi.h | ftmodapi.h | |||
---|---|---|---|---|
/************************************************************************** */ | /************************************************************************** */ | |||
/* */ | /* */ | |||
/* ftmodapi.h */ | /* ftmodapi.h */ | |||
/* */ | /* */ | |||
/* FreeType modules public interface (specification). */ | /* FreeType modules public interface (specification). */ | |||
/* */ | /* */ | |||
/* Copyright 1996-2001, 2002, 2003, 2006, 2008, 2009 by */ | /* Copyright 1996-2001, 2002, 2003, 2006, 2008, 2009, 2010 by */ | |||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | |||
/* */ | /* */ | |||
/* This file is part of the FreeType project, and may only be used, */ | /* This file is part of the FreeType project, and may only be used, */ | |||
/* modified, and distributed under the terms of the FreeType project */ | /* modified, and distributed under the terms of the FreeType project */ | |||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | |||
/* this file you indicate that you have read the license and */ | /* this file you indicate that you have read the license and */ | |||
/* understand and accept it fully. */ | /* understand and accept it fully. */ | |||
/* */ | /* */ | |||
/************************************************************************** */ | /************************************************************************** */ | |||
skipping to change at line 240 | skipping to change at line 240 | |||
/* <Note> */ | /* <Note> */ | |||
/* The module object is destroyed by the function in case of success. */ | /* The module object is destroyed by the function in case of success. */ | |||
/* */ | /* */ | |||
FT_EXPORT( FT_Error ) | FT_EXPORT( FT_Error ) | |||
FT_Remove_Module( FT_Library library, | FT_Remove_Module( FT_Library library, | |||
FT_Module module ); | FT_Module module ); | |||
/************************************************************************ */ | /************************************************************************ */ | |||
/* */ | /* */ | |||
/* <Function> */ | /* <Function> */ | |||
/* FT_Reference_Library | ||||
*/ | ||||
/* | ||||
*/ | ||||
/* <Description> | ||||
*/ | ||||
/* A counter gets initialized to~1 at the time an @FT_Library | ||||
*/ | ||||
/* structure is created. This function increments the counter. | ||||
*/ | ||||
/* @FT_Done_Library then only destroys a library if the counter is~1, | ||||
*/ | ||||
/* otherwise it simply decrements the counter. | ||||
*/ | ||||
/* | ||||
*/ | ||||
/* This function helps in managing life-cycles of structures which | ||||
*/ | ||||
/* reference @FT_Library objects. | ||||
*/ | ||||
/* | ||||
*/ | ||||
/* <Input> | ||||
*/ | ||||
/* library :: A handle to a target library object. | ||||
*/ | ||||
/* | ||||
*/ | ||||
/* <Return> | ||||
*/ | ||||
/* FreeType error code. 0~means success. | ||||
*/ | ||||
/* | ||||
*/ | ||||
/* <Since> | ||||
*/ | ||||
/* 2.4.2 | ||||
*/ | ||||
/* | ||||
*/ | ||||
FT_EXPORT( FT_Error ) | ||||
FT_Reference_Library( FT_Library library ); | ||||
/************************************************************************ | ||||
*/ | ||||
/* | ||||
*/ | ||||
/* <Function> | ||||
*/ | ||||
/* FT_New_Library */ | /* FT_New_Library */ | |||
/* */ | /* */ | |||
/* <Description> */ | /* <Description> */ | |||
/* This function is used to create a new FreeType library instance */ | /* This function is used to create a new FreeType library instance */ | |||
/* from a given memory object. It is thus possible to use libraries */ | /* from a given memory object. It is thus possible to use libraries */ | |||
/* with distinct memory allocators within the same program. */ | /* with distinct memory allocators within the same program. */ | |||
/* */ | /* */ | |||
/* Normally, you would call this function (followed by a call to */ | /* Normally, you would call this function (followed by a call to */ | |||
/* @FT_Add_Default_Modules or a series of calls to @FT_Add_Module) */ | /* @FT_Add_Default_Modules or a series of calls to @FT_Add_Module) */ | |||
/* instead of @FT_Init_FreeType to initialize the FreeType library. */ | /* instead of @FT_Init_FreeType to initialize the FreeType library. */ | |||
/* */ | /* */ | |||
/* Don't use @FT_Done_FreeType but @FT_Done_Library to destroy a | ||||
*/ | ||||
/* library instance. | ||||
*/ | ||||
/* | ||||
*/ | ||||
/* <Input> */ | /* <Input> */ | |||
/* memory :: A handle to the original memory object. */ | /* memory :: A handle to the original memory object. */ | |||
/* */ | /* */ | |||
/* <Output> */ | /* <Output> */ | |||
/* alibrary :: A pointer to handle of a new library object. */ | /* alibrary :: A pointer to handle of a new library object. */ | |||
/* */ | /* */ | |||
/* <Return> */ | /* <Return> */ | |||
/* FreeType error code. 0~means success. */ | /* FreeType error code. 0~means success. */ | |||
/* */ | /* */ | |||
/* <Note> | ||||
*/ | ||||
/* See the discussion of reference counters in the description of | ||||
*/ | ||||
/* @FT_Reference_Library. | ||||
*/ | ||||
/* | ||||
*/ | ||||
FT_EXPORT( FT_Error ) | FT_EXPORT( FT_Error ) | |||
FT_New_Library( FT_Memory memory, | FT_New_Library( FT_Memory memory, | |||
FT_Library *alibrary ); | FT_Library *alibrary ); | |||
/************************************************************************ */ | /************************************************************************ */ | |||
/* */ | /* */ | |||
/* <Function> */ | /* <Function> */ | |||
/* FT_Done_Library */ | /* FT_Done_Library */ | |||
/* */ | /* */ | |||
/* <Description> */ | /* <Description> */ | |||
/* Discard a given library object. This closes all drivers and */ | /* Discard a given library object. This closes all drivers and */ | |||
/* discards all resource objects. */ | /* discards all resource objects. */ | |||
/* */ | /* */ | |||
/* <Input> */ | /* <Input> */ | |||
/* library :: A handle to the target library. */ | /* library :: A handle to the target library. */ | |||
/* */ | /* */ | |||
/* <Return> */ | /* <Return> */ | |||
/* FreeType error code. 0~means success. */ | /* FreeType error code. 0~means success. */ | |||
/* */ | /* */ | |||
/* <Note> | ||||
*/ | ||||
/* See the discussion of reference counters in the description of | ||||
*/ | ||||
/* @FT_Reference_Library. | ||||
*/ | ||||
/* | ||||
*/ | ||||
FT_EXPORT( FT_Error ) | FT_EXPORT( FT_Error ) | |||
FT_Done_Library( FT_Library library ); | FT_Done_Library( FT_Library library ); | |||
/* */ | /* */ | |||
typedef void | typedef void | |||
(*FT_DebugHook_Func)( void* arg ); | (*FT_DebugHook_Func)( void* arg ); | |||
/************************************************************************ */ | /************************************************************************ */ | |||
/* */ | /* */ | |||
skipping to change at line 376 | skipping to change at line 413 | |||
* FT_TRUETYPE_ENGINE_TYPE_UNPATENTED :: | * FT_TRUETYPE_ENGINE_TYPE_UNPATENTED :: | |||
* The library implements a bytecode interpreter that doesn't | * The library implements a bytecode interpreter that doesn't | |||
* support the patented operations of the TrueType virtual machine. | * support the patented operations of the TrueType virtual machine. | |||
* | * | |||
* Its main use is to load certain Asian fonts which position and | * Its main use is to load certain Asian fonts which position and | |||
* scale glyph components with bytecode instructions. It produces | * scale glyph components with bytecode instructions. It produces | |||
* bad output for most other fonts. | * bad output for most other fonts. | |||
* | * | |||
* FT_TRUETYPE_ENGINE_TYPE_PATENTED :: | * FT_TRUETYPE_ENGINE_TYPE_PATENTED :: | |||
* The library implements a bytecode interpreter that covers | * The library implements a bytecode interpreter that covers | |||
* the full instruction set of the TrueType virtual machine. | * the full instruction set of the TrueType virtual machine (this | |||
* See the file `docs/PATENTS' for legal aspects. | * was governed by patents until May 2010, hence the name). | |||
* | * | |||
* @since: | * @since: | |||
* 2.2 | * 2.2 | |||
* | * | |||
*/ | */ | |||
typedef enum FT_TrueTypeEngineType_ | typedef enum FT_TrueTypeEngineType_ | |||
{ | { | |||
FT_TRUETYPE_ENGINE_TYPE_NONE = 0, | FT_TRUETYPE_ENGINE_TYPE_NONE = 0, | |||
FT_TRUETYPE_ENGINE_TYPE_UNPATENTED, | FT_TRUETYPE_ENGINE_TYPE_UNPATENTED, | |||
FT_TRUETYPE_ENGINE_TYPE_PATENTED | FT_TRUETYPE_ENGINE_TYPE_PATENTED | |||
End of changes. 6 change blocks. | ||||
3 lines changed or deleted | 74 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |