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

📄 ftoutln.h

📁 qt-embedded-2.3.8.tar.gz源码
💻 H
📖 第 1 页 / 共 2 页
字号:
/***************************************************************************//*                                                                         *//*  ftoutln.h                                                              *//*                                                                         *//*    Support for the FT_Outline type used to store glyph shapes of        *//*    most scalable font formats (specification).                          *//*                                                                         *//*  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 __FTOUTLN_H__#define __FTOUTLN_H__#ifndef    FT_BUILD_H#  define  FT_BUILD_H    <freetype/config/ftbuild.h>#endif#include   "freetype/config/ftbuild.h"#include   "freetype/freetype.h"FT_BEGIN_HEADER  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    FT_Outline_Decompose                                               */  /*                                                                       */  /* <Description>                                                         */  /*    Walks over an outline's structure to decompose it into individual  */  /*    segments and Bezier arcs.  This function is also able to emit      */  /*    `move to' and `close to' operations to indicate the start and end  */  /*    of new contours in the outline.                                    */  /*                                                                       */  /* <Input>                                                               */  /*    outline   :: A pointer to the source target.                       */  /*                                                                       */  /*    interface :: A table of `emitters', i.e,. function pointers called */  /*                 during decomposition to indicate path operations.     */  /*                                                                       */  /* <InOut>                                                               */  /*    user      :: A typeless pointer which is passed to each emitter    */  /*                 during the decomposition.  It can be used to store    */  /*                 the state during the decomposition.                   */  /*                                                                       */  /* <Return>                                                              */  /*    FreeType error code.  0 means sucess.                              */  /*                                                                       */  FT_EXPORT( FT_Error )  FT_Outline_Decompose(                           FT_Outline*              outline,                           const FT_Outline_Funcs*  interface,                           void*                    user );  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    FT_Outline_New                                                     */  /*                                                                       */  /* <Description>                                                         */  /*    Creates a new outline of a given size.                             */  /*                                                                       */  /* <Input>                                                               */  /*    library     :: A handle to the library object from where the       */  /*                   outline is allocated.  Note however that the new    */  /*                   outline will NOT necessarily be FREED, when         */  /*                   destroying the library, by FT_Done_FreeType().      */  /*                                                                       */  /*    numPoints   :: The maximal number of points within the outline.    */  /*                                                                       */  /*    numContours :: The maximal number of contours within the outline.  */  /*                                                                       */  /* <Output>                                                              */  /*    anoutline   :: A handle to the new outline.  NULL in case of       */  /*                   error.                                              */  /*                                                                       */  /* <Return>                                                              */  /*    FreeType error code.  0 means success.                             */  /*                                                                       */  /* <Note>                                                                */  /*    The reason why this function takes a `library' parameter is simply */  /*    to use the library's memory allocator.                             */  /*                                                                       */  FT_EXPORT( FT_Error )  FT_Outline_New( FT_Library   library,                                         FT_UInt      numPoints,                                         FT_Int       numContours,                                         FT_Outline  *anoutline );  FT_EXPORT( FT_Error )  FT_Outline_New_Internal(                           FT_Memory    memory,                           FT_UInt      numPoints,                           FT_Int       numContours,                           FT_Outline  *anoutline );  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    FT_Outline_Done                                                    */  /*                                                                       */  /* <Description>                                                         */  /*    Destroys an outline created with FT_Outline_New().                 */  /*                                                                       */  /* <Input>                                                               */  /*    library :: A handle of the library object used to allocate the     */  /*               outline.                                                */  /*                                                                       */  /*    outline :: A pointer to the outline object to be discarded.        */  /*                                                                       */  /* <Return>                                                              */  /*    FreeType error code.  0 means success.                             */  /*                                                                       */  /* <Note>                                                                */  /*    If the outline's `owner' field is not set, only the outline        */  /*    descriptor will be released.                                       */  /*                                                                       */  /*    The reason why this function takes an `library' parameter is       */  /*    simply to use FT_Free().                                           */  /*                                                                       */  FT_EXPORT( FT_Error )  FT_Outline_Done( FT_Library   library,                                          FT_Outline*  outline );  FT_EXPORT( FT_Error )  FT_Outline_Done_Internal( FT_Memory    memory,                                                   FT_Outline*  outline );  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    FT_Outline_Get_CBox                                                */  /*                                                                       */  /* <Description>                                                         */  /*    Returns an outline's `control box'.  The control box encloses all  */  /*    the outline's points, including Bezier control points.  Though it  */  /*    coincides with the exact bounding box for most glyphs, it can be   */  /*    slightly larger in some situations (like when rotating an outline  */  /*    which contains Bezier outside arcs).                               */  /*                                                                       */  /*    Computing the control box is very fast, while getting the bounding */  /*    box can take much more time as it needs to walk over all segments  */  /*    and arcs in the outline.  To get the latter, you can use the       */  /*    `ftbbox' component which is dedicated to this single task.         */  /*                                                                       */  /* <Input>                                                               */  /*    outline :: A pointer to the source outline descriptor.             */  /*                                                                       */  /* <Output>                                                              */  /*    acbox   :: The outline's control box.                              */  /*                                                                       */  FT_EXPORT( void )  FT_Outline_Get_CBox( FT_Outline*  outline,                                          FT_BBox     *acbox );

⌨️ 快捷键说明

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