Content-type: text/html
Retrieves the FT_Face & FT_Size objects that correspond to a given FTC_SizeID.
Input:
manager :: A handle to the cache manager.
size_id :: The ID of the `font size' to use.
Output:
aface :: A pointer to the handle of the face object. Set it to zero if you don't need it.
asize :: A pointer to the handle of the size object. Set it to zero if you don't need it. Retrieves the FT_Face & FT_Size objects that correspond to a given FTC_SizeID.
Input:
manager :: A handle to the cache manager.
size_id :: The ID of the `font size' to use.
Output:
aface :: A pointer to the handle of the face object. Set it to zero if you don't need it.
asize :: A pointer to the handle of the size object. Set it to zero if you don't need it.
Notes: The returned FT_Face object is always owned by the manager. You should never try to discard it yourself. Never change the face's transformation matrix (i.e., never call the FT_Set_Transform() function) on a returned face! If you need to transform glyphs, do it yourself after glyph loading. Similarly, the returned FT_Size object is always owned by the manager. You should never try to discard it, and never change its settings with FT_Set_Pixel_Sizes() or FT_Set_Char_Size()! The returned size object is the face's current size, which means that you can call FT_Load_Glyph() with the face if you need to. FT_EXPORT( FT_Error ) FTC_Manager_Lookup_Size( FTC_Manager manager, FTC_Font font, FT_Face *aface, FT_Size *asize ); a cache class is used to describe a unique cache type to the manager typedef struct FTC_Cache_Class_ FTC_Cache_Class; typedef struct FTC_CacheRec_* FTC_Cache; this must be used internally for the moment FT_EXPORT( FT_Error ) FTC_Manager_Register_Cache( FTC_Manager manager, FTC_Cache_Class* clazz, FTC_Cache *acache ); FT_END_HEADER #endif __FTCACHE_H__ END
FreeType error code. 0 means success.
This documentation was generated for Freetype 2.0.4 by autodocbook (http://www.stillhq.com). Autodocbook is (c) Michael Still 2001.
Copyright 1996-2000 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used, modified, and distributed under the terms of the FreeType project license, LICENSE.TXT. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully.
Please report errors in this documentation, and Freetype itself to freetype@freetype.org