⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 t1types.h

📁 Qt/Embedded是一个多平台的C++图形用户界面应用程序框架
💻 H
📖 第 1 页 / 共 2 页
字号:
/******************************************************************* * *  t1types.h                                                   1.0 * *    Basic Type1/Type2 type definitions and interface. * *  This code is shared by the Type1 and Type2 drivers * * *  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. * ******************************************************************/#ifndef T1TYPES_H#define T1TYPES_H#include <freetype.h>#include <psnames.h>#ifdef __cplusplus  extern "C" {#endif/*************************************************************************//*************************************************************************//*************************************************************************//***                                                                   ***//***                                                                   ***//***                DEFINITIONS OF BASIC DATA TYPES                    ***//***                                                                   ***//***                                                                   ***//*************************************************************************//*************************************************************************//*************************************************************************//* The REDEFINE macro is used to convert a FreeType generic type into    *//* a TrueType-specific one. It simply replaces the "FT_" prefix by "T1_" *//* in order to define compatible T1_Long, T1_Error, T1_Outline, etc..    *//*                                                                       */#undef  REDEFINE#define REDEFINE( type )   typedef FT_##type  T1_##type  /* <Type> T1_Bool                                                       */  /*                                                                      */  /* <Description>                                                        */  /*    A simple typedef of unsigned char, used for simple booleans.      */  /*                                                                      */  REDEFINE( Bool );  /* <Type> T1_FWord                                                      */  /*                                                                      */  /* <Description>                                                        */  /*    a signed 16-bit integer used to store a distance in original      */  /*    font units.                                                       */  /*                                                                      */  REDEFINE( FWord );  /* <Type> T1_UFWord                                                     */  /*                                                                      */  /* <Description>                                                        */  /*    an unsigned 16-bit integer used to store a distance in original   */  /*    font units.                                                       */  /*                                                                      */  REDEFINE( UFWord );  /* <Type> T1_Char                                                       */  /*                                                                      */  /* <Description>                                                        */  /*    a simple typedef for the _signed_ char type.                      */  /*                                                                      */  REDEFINE( Char );  /* <Type> T1_Byte                                                       */  /*                                                                      */  /* <Description>                                                        */  /*    a simple typedef for the _unsigned_ char type.                    */  /*                                                                      */  REDEFINE( Byte );  /* <Type> T1_String                                                     */  /*                                                                      */  /* <Description>                                                        */  /*    a simple typedef for the char type, used for strings usually.     */  /*                                                                      */  REDEFINE( String );  /* <Type> T1_Short                                                      */  /*                                                                      */  /* <Description>                                                        */  /*    a typedef for signed short                                        */  /*                                                                      */  REDEFINE( Short );  /* <Type> T1_UShort                                                     */  /*                                                                      */  /* <Description>                                                        */  /*    a typedef for unsigned short                                      */  /*                                                                      */  REDEFINE( UShort );  /* <Type> FT_Int                                                        */  /*                                                                      */  /* <Description>                                                        */  /*    a typedef for the int type                                        */  /*                                                                      */  REDEFINE( Int );  /* <Type> FT_UInt                                                       */  /*                                                                      */  /* <Description>                                                        */  /*    a typedef for the unsigned int type                               */  /*                                                                      */  REDEFINE( UInt );  /* <Type> T1_Long                                                       */  /*                                                                      */  /* <Description>                                                        */  /*    a typedef for signed long                                         */  /*                                                                      */  REDEFINE( Long );  /* <Type> T1_ULong                                                      */  /*                                                                      */  /* <Description>                                                        */  /*    a typedef for unsigned long                                       */  /*                                                                      */  REDEFINE( ULong );  /* <Type> T1_F2Dot14                                                     */  /*                                                                       */  /* <Description>                                                         */  /*    a signed 2.14 fixed float used for unit vectors                    */  /*                                                                       */  REDEFINE( F2Dot14 );  /* <Type> T1_F26Dot6                                                     */  /*                                                                       */  /* <Description>                                                         */  /*    a signed 26.6 fixed float used for vectorial pixel coordinates     */  /*                                                                       */  REDEFINE( F26Dot6 );  /* <Type> T1_Fixed                                                       */  /*                                                                       */  /* <Description>                                                         */  /*     This type is used to store 16.16 fixed float values, like         */  /*     scales or matrix coefficients..                                   */  /*                                                                       */  REDEFINE( Fixed );  /* <Type> T1_Pos                                                      */  /*                                                                    */  /* <Description>                                                      */  /*     The type T1_Pos is a 32-bits integer used to store vectorial   */  /*     coordinates. Depending on the context, these can represent     */  /*     distances in integer font units, or 26.6 fixed float pixel     */  /*     coordinates..                                                  */  /*                                                                    */  REDEFINE( Pos );  /* <Struct> T1_Vector                                                 */  /*                                                                    */  /* <Description>                                                      */  /*     A simple structure used to store a 2d vector, coordinates      */  /*     are of the T1_Pos type.                                        */  /*                                                                    */  /* <Fields>                                                           */  /*    x  ::  horizontal coordinate                                    */  /*    y  ::  vertical coordinate                                      */  /*                                                                    */  REDEFINE( Vector );  /* <Struct> T1_UnitVector                                             */  /*                                                                    */  /* <Description>                                                      */  /*     A simple structure used to store a 2d vector unit vector.      */  /*     uses T1_F2Dot14 types.                                         */  /*                                                                    */  /* <Fields>                                                           */  /*    x  ::  horizontal coordinate                                    */  /*    y  ::  vertical coordinate                                      */  /*                                                                    */  REDEFINE( UnitVector );  /* <Struct> T1_Matrix                                                 */  /*                                                                    */  /* <Description>                                                      */  /*     A simple structure used to store a 2x2 matrix. Coefficients    */  /*     are in 16.16 fixed float format. The computation performed     */  /*     is :                                                           */  /*             {                                                      */  /*               x' = x*xx + y*xy                                     */  /*               y' = x*yx + y*yy                                     */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -