00001 /***************************************************************************/ 00002 /* */ 00003 /* svpfr.h */ 00004 /* */ 00005 /* Internal PFR service functions (specification). */ 00006 /* */ 00007 /* Copyright 2003, 2006 by */ 00008 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 00009 /* */ 00010 /* This file is part of the FreeType project, and may only be used, */ 00011 /* modified, and distributed under the terms of the FreeType project */ 00012 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 00013 /* this file you indicate that you have read the license and */ 00014 /* understand and accept it fully. */ 00015 /* */ 00016 /***************************************************************************/ 00017 00018 00019 #ifndef __SVPFR_H__ 00020 #define __SVPFR_H__ 00021 00022 #include FT_PFR_H 00023 #include FT_INTERNAL_SERVICE_H 00024 00025 00026 FT_BEGIN_HEADER 00027 00028 00029 #define FT_SERVICE_ID_PFR_METRICS "pfr-metrics" 00030 00031 00032 typedef FT_Error 00033 (*FT_PFR_GetMetricsFunc)( FT_Face face, 00034 FT_UInt *aoutline, 00035 FT_UInt *ametrics, 00036 FT_Fixed *ax_scale, 00037 FT_Fixed *ay_scale ); 00038 00039 typedef FT_Error 00040 (*FT_PFR_GetKerningFunc)( FT_Face face, 00041 FT_UInt left, 00042 FT_UInt right, 00043 FT_Vector *avector ); 00044 00045 typedef FT_Error 00046 (*FT_PFR_GetAdvanceFunc)( FT_Face face, 00047 FT_UInt gindex, 00048 FT_Pos *aadvance ); 00049 00050 00051 FT_DEFINE_SERVICE( PfrMetrics ) 00052 { 00053 FT_PFR_GetMetricsFunc get_metrics; 00054 FT_PFR_GetKerningFunc get_kerning; 00055 FT_PFR_GetAdvanceFunc get_advance; 00056 00057 }; 00058 00059 /* */ 00060 00061 FT_END_HEADER 00062 00063 #endif /* __SVPFR_H__ */ 00064 00065 00066 /* END */