vrshoot

diff libs/ft2static/freetype/ftcid.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/ft2static/freetype/ftcid.h	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,166 @@
     1.4 +/***************************************************************************/
     1.5 +/*                                                                         */
     1.6 +/*  ftcid.h                                                                */
     1.7 +/*                                                                         */
     1.8 +/*    FreeType API for accessing CID font information (specification).     */
     1.9 +/*                                                                         */
    1.10 +/*  Copyright 2007, 2009 by Dereg Clegg, Michael Toftdal.                  */
    1.11 +/*                                                                         */
    1.12 +/*  This file is part of the FreeType project, and may only be used,       */
    1.13 +/*  modified, and distributed under the terms of the FreeType project      */
    1.14 +/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
    1.15 +/*  this file you indicate that you have read the license and              */
    1.16 +/*  understand and accept it fully.                                        */
    1.17 +/*                                                                         */
    1.18 +/***************************************************************************/
    1.19 +
    1.20 +
    1.21 +#ifndef __FTCID_H__
    1.22 +#define __FTCID_H__
    1.23 +
    1.24 +#include <ft2build.h>
    1.25 +#include FT_FREETYPE_H
    1.26 +
    1.27 +#ifdef FREETYPE_H
    1.28 +#error "freetype.h of FreeType 1 has been loaded!"
    1.29 +#error "Please fix the directory search order for header files"
    1.30 +#error "so that freetype.h of FreeType 2 is found first."
    1.31 +#endif
    1.32 +
    1.33 +
    1.34 +FT_BEGIN_HEADER
    1.35 +
    1.36 +
    1.37 +  /*************************************************************************/
    1.38 +  /*                                                                       */
    1.39 +  /* <Section>                                                             */
    1.40 +  /*    cid_fonts                                                          */
    1.41 +  /*                                                                       */
    1.42 +  /* <Title>                                                               */
    1.43 +  /*    CID Fonts                                                          */
    1.44 +  /*                                                                       */
    1.45 +  /* <Abstract>                                                            */
    1.46 +  /*    CID-keyed font specific API.                                       */
    1.47 +  /*                                                                       */
    1.48 +  /* <Description>                                                         */
    1.49 +  /*    This section contains the declaration of CID-keyed font specific   */
    1.50 +  /*    functions.                                                         */
    1.51 +  /*                                                                       */
    1.52 +  /*************************************************************************/
    1.53 +
    1.54 +
    1.55 +  /**********************************************************************
    1.56 +   *
    1.57 +   * @function:
    1.58 +   *    FT_Get_CID_Registry_Ordering_Supplement
    1.59 +   *
    1.60 +   * @description:
    1.61 +   *    Retrieve the Registry/Ordering/Supplement triple (also known as the
    1.62 +   *    "R/O/S") from a CID-keyed font.
    1.63 +   *
    1.64 +   * @input:
    1.65 +   *    face ::
    1.66 +   *       A handle to the input face.
    1.67 +   *
    1.68 +   * @output:
    1.69 +   *    registry ::
    1.70 +   *       The registry, as a C~string, owned by the face.
    1.71 +   *
    1.72 +   *    ordering ::
    1.73 +   *       The ordering, as a C~string, owned by the face.
    1.74 +   *
    1.75 +   *    supplement ::
    1.76 +   *       The supplement.
    1.77 +   *
    1.78 +   * @return:
    1.79 +   *    FreeType error code.  0~means success.
    1.80 +   *
    1.81 +   * @note:
    1.82 +   *    This function only works with CID faces, returning an error
    1.83 +   *    otherwise.
    1.84 +   *
    1.85 +   * @since:
    1.86 +   *    2.3.6
    1.87 +   */
    1.88 +  FT_EXPORT( FT_Error )
    1.89 +  FT_Get_CID_Registry_Ordering_Supplement( FT_Face       face,
    1.90 +                                           const char*  *registry,
    1.91 +                                           const char*  *ordering,
    1.92 +                                           FT_Int       *supplement);
    1.93 +
    1.94 +
    1.95 +  /**********************************************************************
    1.96 +   *
    1.97 +   * @function:
    1.98 +   *    FT_Get_CID_Is_Internally_CID_Keyed
    1.99 +   *
   1.100 +   * @description:
   1.101 +   *    Retrieve the type of the input face, CID keyed or not.  In
   1.102 +   *    constrast to the @FT_IS_CID_KEYED macro this function returns
   1.103 +   *    successfully also for CID-keyed fonts in an SNFT wrapper.
   1.104 +   *
   1.105 +   * @input:
   1.106 +   *    face ::
   1.107 +   *       A handle to the input face.
   1.108 +   *
   1.109 +   * @output:
   1.110 +   *    is_cid ::
   1.111 +   *       The type of the face as an @FT_Bool.
   1.112 +   *
   1.113 +   * @return:
   1.114 +   *    FreeType error code.  0~means success.
   1.115 +   *
   1.116 +   * @note:
   1.117 +   *    This function only works with CID faces and OpenType fonts,
   1.118 +   *    returning an error otherwise.
   1.119 +   *
   1.120 +   * @since:
   1.121 +   *    2.3.9
   1.122 +   */
   1.123 +  FT_EXPORT( FT_Error )
   1.124 +  FT_Get_CID_Is_Internally_CID_Keyed( FT_Face   face,
   1.125 +                                      FT_Bool  *is_cid );
   1.126 +
   1.127 +
   1.128 +  /**********************************************************************
   1.129 +   *
   1.130 +   * @function:
   1.131 +   *    FT_Get_CID_From_Glyph_Index
   1.132 +   *
   1.133 +   * @description:
   1.134 +   *    Retrieve the CID of the input glyph index.
   1.135 +   *
   1.136 +   * @input:
   1.137 +   *    face ::
   1.138 +   *       A handle to the input face.
   1.139 +   *
   1.140 +   *    glyph_index ::
   1.141 +   *       The input glyph index.
   1.142 +   *
   1.143 +   * @output:
   1.144 +   *    cid ::
   1.145 +   *       The CID as an @FT_UInt.
   1.146 +   *
   1.147 +   * @return:
   1.148 +   *    FreeType error code.  0~means success.
   1.149 +   *
   1.150 +   * @note:
   1.151 +   *    This function only works with CID faces and OpenType fonts,
   1.152 +   *    returning an error otherwise.
   1.153 +   *
   1.154 +   * @since:
   1.155 +   *    2.3.9
   1.156 +   */
   1.157 +  FT_EXPORT( FT_Error )
   1.158 +  FT_Get_CID_From_Glyph_Index( FT_Face   face,
   1.159 +                               FT_UInt   glyph_index,
   1.160 +                               FT_UInt  *cid );
   1.161 +
   1.162 + /* */
   1.163 +
   1.164 +FT_END_HEADER
   1.165 +
   1.166 +#endif /* __FTCID_H__ */
   1.167 +
   1.168 +
   1.169 +/* END */