cffload.h revision 049d6fea481044fcc000e7782e5bc7046fc70844
1/***************************************************************************/ 2/* */ 3/* cffload.h */ 4/* */ 5/* OpenType & CFF data/program tables loader (specification). */ 6/* */ 7/* Copyright 1996-2001, 2002, 2003, 2007 by */ 8/* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9/* */ 10/* This file is part of the FreeType project, and may only be used, */ 11/* modified, and distributed under the terms of the FreeType project */ 12/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13/* this file you indicate that you have read the license and */ 14/* understand and accept it fully. */ 15/* */ 16/***************************************************************************/ 17 18 19#ifndef __CFFLOAD_H__ 20#define __CFFLOAD_H__ 21 22 23#include <ft2build.h> 24#include "cfftypes.h" 25#include FT_SERVICE_POSTSCRIPT_CMAPS_H 26 27 28FT_BEGIN_HEADER 29 30 FT_LOCAL( FT_UShort ) 31 cff_get_standard_encoding( FT_UInt charcode ); 32 33 34 FT_LOCAL( FT_String* ) 35 cff_index_get_name( CFF_Index idx, 36 FT_UInt element ); 37 38 FT_LOCAL( FT_String* ) 39 cff_index_get_sid_string( CFF_Index idx, 40 FT_UInt sid, 41 FT_Service_PsCMaps psnames ); 42 43 44 FT_LOCAL( FT_Error ) 45 cff_index_access_element( CFF_Index idx, 46 FT_UInt element, 47 FT_Byte** pbytes, 48 FT_ULong* pbyte_len ); 49 50 FT_LOCAL( void ) 51 cff_index_forget_element( CFF_Index idx, 52 FT_Byte** pbytes ); 53 54 55 FT_LOCAL( FT_UInt ) 56 cff_charset_cid_to_gindex( CFF_Charset charset, 57 FT_UInt cid ); 58 59 60 FT_LOCAL( FT_Error ) 61 cff_font_load( FT_Stream stream, 62 FT_Int face_index, 63 CFF_Font font ); 64 65 FT_LOCAL( void ) 66 cff_font_done( CFF_Font font ); 67 68 69 FT_LOCAL( FT_Byte ) 70 cff_fd_select_get( CFF_FDSelect fdselect, 71 FT_UInt glyph_index ); 72 73 74FT_END_HEADER 75 76#endif /* __CFFLOAD_H__ */ 77 78 79/* END */ 80