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

📄 ttobjs.h

📁 Qt/Embedded是一个多平台的C++图形用户界面应用程序框架
💻 H
📖 第 1 页 / 共 2 页
字号:
/***************************************************************************//*                                                                         *//*  ttobjs.h                                                               *//*                                                                         *//*    Objects manager (specification).                                     *//*                                                                         *//*  Copyright 1996-1999 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 TTOBJS_H#define TTOBJS_H#include <ftobjs.h>#include <tttypes.h>#include <tterrors.h>#ifdef __cplusplus  extern "C" {#endif  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    TT_Driver                                                          */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a TrueType driver object.                              */  /*                                                                       */  typedef struct TT_DriverRec_*  TT_Driver;  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    TT_Instance                                                        */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a TrueType size object.                                */  /*                                                                       */  typedef struct TT_SizeRec_*  TT_Size;  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    TT_GlyphSlot                                                       */  /*                                                                       */  /* <Description>                                                         */  /*    A handle to a TrueType glyph slot object.                          */  /*                                                                       */  /* <Note>                                                                */  /*    This is a direct typedef of FT_GlyphSlot, as there is nothing      */  /*    specific about the TrueType glyph slot.                            */  /*                                                                       */  typedef FT_GlyphSlot  TT_GlyphSlot;  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    TT_GraphicsState                                                   */  /*                                                                       */  /* <Description>                                                         */  /*    The TrueType graphics state used during bytecode interpretation.   */  /*                                                                       */  typedef struct  TT_GraphicsState_  {    TT_UShort      rp0;    TT_UShort      rp1;    TT_UShort      rp2;    TT_UnitVector  dualVector;    TT_UnitVector  projVector;    TT_UnitVector  freeVector;    TT_Long        loop;    TT_F26Dot6     minimum_distance;    TT_Int         round_state;    TT_Bool        auto_flip;    TT_F26Dot6     control_value_cutin;    TT_F26Dot6     single_width_cutin;    TT_F26Dot6     single_width_value;    TT_Short       delta_base;    TT_Short       delta_shift;    TT_Byte        instruct_control;    TT_Bool        scan_control;    TT_Int         scan_type;    TT_UShort      gep0;    TT_UShort      gep1;    TT_UShort      gep2;  } TT_GraphicsState;  /*************************************************************************/  /*                                                                       */  /*  EXECUTION SUBTABLES                                                  */  /*                                                                       */  /*  These sub-tables relate to instruction execution.                    */  /*                                                                       */  /*************************************************************************/#define TT_MAX_CODE_RANGES  3  /*************************************************************************/  /*                                                                       */  /* There can only be 3 active code ranges at once:                       */  /*   - the Font Program                                                  */  /*   - the CVT Program                                                   */  /*   - a glyph's instructions set                                        */  /*                                                                       */  typedef enum  TT_CodeRange_Tag_  {    tt_coderange_none = 0,    tt_coderange_font,    tt_coderange_cvt,    tt_coderange_glyph  } TT_CodeRange_Tag;  typedef struct  TT_CodeRange_  {    TT_Byte*  base;    TT_ULong  size;  } TT_CodeRange;  typedef TT_CodeRange  TT_CodeRangeTable[TT_MAX_CODE_RANGES];  /*************************************************************************/  /*                                                                       */  /* Defines a function/instruction definition record.                     */  /*                                                                       */  typedef struct  TT_DefRecord_  {    TT_Int   range;      /* in which code range is it located? */    TT_Long  start;      /* where does it start?               */    TT_UInt  opc;        /* function #, or instruction code    */    TT_Bool  active;     /* is it active?                      */  } TT_DefRecord, *TT_DefArray;  /*************************************************************************/  /*                                                                       */  /* Subglyph transformation record.                                       */  /*                                                                       */  typedef struct  TT_Transform_  {    TT_Fixed    xx, xy;     /* transformation matrix coefficients */    TT_Fixed    yx, yy;    TT_F26Dot6  ox, oy;     /* offsets        */  } TT_Transform;  /*************************************************************************/  /*                                                                       */  /* Subglyph loading record.  Used to load composite components.          */  /*                                                                       */  typedef struct  TT_SubglyphRec_  {    TT_Long       index;        /* subglyph index; initialized with -1 */    TT_Bool       is_scaled;    /* is the subglyph scaled?             */    TT_Bool       is_hinted;    /* should it be hinted?                */    TT_Bool       preserve_pps; /* preserve phantom points?            */    TT_Long       file_offset;    TT_BBox       bbox;    TT_Pos        left_bearing;    TT_Pos        advance;    FT_GlyphZone  zone;    TT_Long       arg1;         /* first argument                      */    TT_Long       arg2;         /* second argument                     */    TT_UShort     element_flag; /* current load element flag           */    TT_Transform  transform;    /* transformation matrix               */    TT_Vector     pp1, pp2;     /* phantom points                      */

⌨️ 快捷键说明

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