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

📄 ftcache.h

📁 qt-embedded-2.3.8.tar.gz源码
💻 H
📖 第 1 页 / 共 2 页
字号:
/***************************************************************************//*                                                                         *//*  ftcache.h                                                              *//*                                                                         *//*    FreeType Cache subsystem.                                            *//*                                                                         *//*  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.                                        *//*                                                                         *//***************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*********                                                       *********/  /*********             WARNING, THIS IS BETA CODE.               *********/  /*********                                                       *********/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/#ifndef __FTCACHE_H__#define __FTCACHE_H__#ifndef    FT_BUILD_H#  define  FT_BUILD_H    <freetype/config/ftbuild.h>#endif#include   "freetype/config/ftbuild.h"#include   "freetype/ftglyph.h"FT_BEGIN_HEADER#define  FT_CACHE_MANAGER_H               FT_PUBLIC_FILE(cache/ftcmanag.h)#define  FT_CACHE_IMAGE_H                 FT_PUBLIC_FILE(cache/ftcimage.h)#define  FT_CACHE_SMALL_BITMAPS_H         FT_PUBLIC_FILE(cache/ftcsbits.h)#define  FT_CACHE_INTERNAL_LRU_H          FT_PUBLIC_FILE(cache/ftlru.h)#define  FT_CACHE_INTERNAL_GLYPH_H        FT_PUBLIC_FILE(cache/ftcglyph.h)#define  FT_CACHE_INTERNAL_CHUNK_H        FT_PUBLIC_FILE(cache/ftcchunk.h)  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*****                                                               *****/  /*****                    BASIC TYPE DEFINITIONS                     *****/  /*****                                                               *****/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FTC_FaceID                                                         */  /*                                                                       */  /* <Description>                                                         */  /*    A generic pointer type that is used to identity face objects.  The */  /*    contents of such objects is application-dependent.                 */  /*                                                                       */  typedef FT_Pointer  FTC_FaceID;  /*************************************************************************/  /*                                                                       */  /* <FuncType>                                                            */  /*    FTC_Face_Requester                                                 */  /*                                                                       */  /* <Description>                                                         */  /*    A callback function provided by client applications.  It is used   */  /*    to translate a given FTC_FaceID into a new valid FT_Face object.   */  /*                                                                       */  /* <Input>                                                               */  /*    face_id :: The face ID to resolve.                                 */  /*                                                                       */  /*    library :: A handle to a FreeType library object.                  */  /*                                                                       */  /*    data    :: Application-provided request data.                      */  /*                                                                       */  /* <Output>                                                              */  /*    aface   :: A new FT_Face handle.                                   */  /*                                                                       */  /* <Return>                                                              */  /*    FreeType error code.  0 means success.                             */  /*                                                                       */  /* <Note>                                                                */  /*    The face requester should not perform funny things on the returned */  /*    face object, like creating a new FT_Size for it, or setting a      */  /*    transformation through FT_Set_Transform()!                         */  /*                                                                       */  typedef FT_Error  (*FTC_Face_Requester)( FTC_FaceID  face_id,                                           FT_Library  library,                                           FT_Pointer  request_data,                                           FT_Face*    aface );  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    FTC_FontRec                                                        */  /*                                                                       */  /* <Description>                                                         */  /*    A simple structure used to describe a given `font' to the cache    */  /*    manager.  Note that a `font' is the combination of a given face    */  /*    with a given character size.                                       */  /*                                                                       */  /* <Fields>                                                              */  /*    face_id    :: The ID of the face to use.                           */  /*                                                                       */  /*    pix_width  :: The character width in integer pixels.               */  /*                                                                       */  /*    pix_height :: The character height in integer pixels.              */  /*                                                                       */  typedef struct  FTC_FontRec_  {    FTC_FaceID  face_id;    FT_UShort   pix_width;    FT_UShort   pix_height;  } FTC_FontRec;  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FTC_Font                                                           */  /*                                                                       */  /* <Description>                                                         */  /*    A simple handle to a FTC_FontRec structure.                        */  /*                                                                       */  typedef FTC_FontRec*  FTC_Font;  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*****                                                               *****/  /*****                      CACHE MANAGER OBJECT                     *****/  /*****                                                               *****/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FTC_Manager                                                        */  /*                                                                       */  /* <Description>                                                         */  /*    This object is used to cache one or more FT_Face objects, along    */  /*    with corresponding FT_Size objects.                                */  /*                                                                       */  typedef struct FTC_ManagerRec_*  FTC_Manager;  /*************************************************************************/  /*                                                                       */

⌨️ 快捷键说明

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