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

📄 ftimage.h

📁 奇趣公司比较新的qt/emd版本
💻 H
📖 第 1 页 / 共 5 页
字号:
/***************************************************************************//*                                                                         *//*  ftimage.h                                                              *//*                                                                         *//*    FreeType glyph image formats and default raster interface            *//*    (specification).                                                     *//*                                                                         *//*  Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007 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.                                        *//*                                                                         *//***************************************************************************/  /*************************************************************************/  /*                                                                       */  /* Note: A `raster' is simply a scan-line converter, used to render      */  /*       FT_Outlines into FT_Bitmaps.                                    */  /*                                                                       */  /*************************************************************************/#ifndef __FTIMAGE_H__#define __FTIMAGE_H__/* _STANDALONE_ is from ftgrays.c */#ifndef _STANDALONE_#include <ft2build.h>#endifFT_BEGIN_HEADER  /*************************************************************************/  /*                                                                       */  /* <Section>                                                             */  /*    basic_types                                                        */  /*                                                                       */  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /* <Type>                                                                */  /*    FT_Pos                                                             */  /*                                                                       */  /* <Description>                                                         */  /*    The type FT_Pos is a 32-bit integer used to store vectorial        */  /*    coordinates.  Depending on the context, these can represent        */  /*    distances in integer font units, or 16,16, or 26.6 fixed float     */  /*    pixel coordinates.                                                 */  /*                                                                       */  typedef signed long  FT_Pos;  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    FT_Vector                                                          */  /*                                                                       */  /* <Description>                                                         */  /*    A simple structure used to store a 2D vector; coordinates are of   */  /*    the FT_Pos type.                                                   */  /*                                                                       */  /* <Fields>                                                              */  /*    x :: The horizontal coordinate.                                    */  /*    y :: The vertical coordinate.                                      */  /*                                                                       */  typedef struct  FT_Vector_  {    FT_Pos  x;    FT_Pos  y;  } FT_Vector;  /*************************************************************************/  /*                                                                       */  /* <Struct>                                                              */  /*    FT_BBox                                                            */  /*                                                                       */  /* <Description>                                                         */  /*    A structure used to hold an outline's bounding box, i.e., the      */  /*    coordinates of its extrema in the horizontal and vertical          */  /*    directions.                                                        */  /*                                                                       */  /* <Fields>                                                              */  /*    xMin :: The horizontal minimum (left-most).                        */  /*                                                                       */  /*    yMin :: The vertical minimum (bottom-most).                        */  /*                                                                       */  /*    xMax :: The horizontal maximum (right-most).                       */  /*                                                                       */  /*    yMax :: The vertical maximum (top-most).                           */  /*                                                                       */  typedef struct  FT_BBox_  {    FT_Pos  xMin, yMin;    FT_Pos  xMax, yMax;  } FT_BBox;  /*************************************************************************/  /*                                                                       */  /* <Enum>                                                                */  /*    FT_Pixel_Mode                                                      */  /*                                                                       */  /* <Description>                                                         */  /*    An enumeration type used to describe the format of pixels in a     */  /*    given bitmap.  Note that additional formats may be added in the    */  /*    future.                                                            */  /*                                                                       */  /* <Values>                                                              */  /*    FT_PIXEL_MODE_NONE ::                                              */  /*      Value 0 is reserved.                                             */  /*                                                                       */  /*    FT_PIXEL_MODE_MONO ::                                              */  /*      A monochrome bitmap, using 1 bit per pixel.  Note that pixels    */  /*      are stored in most-significant order (MSB), which means that     */  /*      the left-most pixel in a byte has value 128.                     */  /*                                                                       */  /*    FT_PIXEL_MODE_GRAY ::                                              */  /*      An 8-bit bitmap, generally used to represent anti-aliased glyph  */  /*      images.  Each pixel is stored in one byte.  Note that the number */  /*      of value `gray' levels is stored in the `num_bytes' field of     */  /*      the @FT_Bitmap structure (it generally is 256).                  */  /*                                                                       */  /*    FT_PIXEL_MODE_GRAY2 ::                                             */  /*      A 2-bit/pixel bitmap, used to represent embedded anti-aliased    */  /*      bitmaps in font files according to the OpenType specification.   */  /*      We haven't found a single font using this format, however.       */  /*                                                                       */  /*    FT_PIXEL_MODE_GRAY4 ::                                             */  /*      A 4-bit/pixel bitmap, used to represent embedded anti-aliased    */  /*      bitmaps in font files according to the OpenType specification.   */  /*      We haven't found a single font using this format, however.       */  /*                                                                       */  /*    FT_PIXEL_MODE_LCD ::                                               */  /*      An 8-bit bitmap, used to represent RGB or BGR decimated glyph    */  /*      images used for display on LCD displays; the bitmap is three     */  /*      times wider than the original glyph image.  See also             */  /*      @FT_RENDER_MODE_LCD.                                             */  /*                                                                       */  /*    FT_PIXEL_MODE_LCD_V ::                                             */  /*      An 8-bit bitmap, used to represent RGB or BGR decimated glyph    */  /*      images used for display on rotated LCD displays; the bitmap      */  /*      is three times taller than the original glyph image.  See also   */  /*      @FT_RENDER_MODE_LCD_V.                                           */  /*                                                                       */  typedef enum  FT_Pixel_Mode_  {    FT_PIXEL_MODE_NONE = 0,    FT_PIXEL_MODE_MONO,    FT_PIXEL_MODE_GRAY,    FT_PIXEL_MODE_GRAY2,    FT_PIXEL_MODE_GRAY4,    FT_PIXEL_MODE_LCD,    FT_PIXEL_MODE_LCD_V,    FT_PIXEL_MODE_MAX      /* do not remove */  } FT_Pixel_Mode;  /*************************************************************************/  /*                                                                       */  /* <Enum>                                                                */  /*    ft_pixel_mode_xxx                                                  */  /*                                                                       */  /* <Description>                                                         */  /*    A list of deprecated constants.  Use the corresponding             */  /*    @FT_Pixel_Mode values instead.                                     */  /*                                                                       */  /* <Values>                                                              */  /*    ft_pixel_mode_none  :: See @FT_PIXEL_MODE_NONE.                    */  /*    ft_pixel_mode_mono  :: See @FT_PIXEL_MODE_MONO.                    */  /*    ft_pixel_mode_grays :: See @FT_PIXEL_MODE_GRAY.                    */  /*    ft_pixel_mode_pal2  :: See @FT_PIXEL_MODE_GRAY2.                   */  /*    ft_pixel_mode_pal4  :: See @FT_PIXEL_MODE_GRAY4.                   */  /*                                                                       */#define ft_pixel_mode_none   FT_PIXEL_MODE_NONE#define ft_pixel_mode_mono   FT_PIXEL_MODE_MONO#define ft_pixel_mode_grays  FT_PIXEL_MODE_GRAY#define ft_pixel_mode_pal2   FT_PIXEL_MODE_GRAY2#define ft_pixel_mode_pal4   FT_PIXEL_MODE_GRAY4 /* */#if 0  /*************************************************************************/  /*                                                                       */  /* <Enum>                                                                */  /*    FT_Palette_Mode                                                    */  /*                                                                       */  /* <Description>                                                         */  /*    THIS TYPE IS DEPRECATED.  DO NOT USE IT!                           */  /*                                                                       */  /*    An enumeration type to describe the format of a bitmap palette,    */  /*    used with ft_pixel_mode_pal4 and ft_pixel_mode_pal8.               */

⌨️ 快捷键说明

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