/****************************************************************************
*
* freetype.h
*
* FreeType high-level API and common types (specification only).
*
* Copyright (C) 1996-2023 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 FREETYPE_H_
#define FREETYPE_H_
#include <ft2build.h>
#include FT_CONFIG_CONFIG_H
#include <freetype/fttypes.h>
#include <freetype/fterrors.h>
FT_BEGIN_HEADER
/**************************************************************************
*
* @section:
* preamble
*
* @title:
* Preamble
*
* @abstract:
* What FreeType is and isn't
*
* @description:
* FreeType is a library that provides access to glyphs in font files. It
* scales the glyph images and their metrics to a requested size, and it
* rasterizes the glyph images to produce pixel or subpixel alpha coverage
* bitmaps.
*
* Note that FreeType is _not_ a text layout engine. You have to use
* higher-level libraries like HarfBuzz, Pango, or ICU for that.
*
* Note also that FreeType does _not_ perform alpha blending or
* compositing the resulting bitmaps or pixmaps by itself. Use your
* favourite graphics library (for example, Cairo or Skia) to further
* process FreeType's output.
*
*/
/**************************************************************************
*
* @section:
* header_inclusion
*
* @title:
* FreeType's header inclusion scheme
*
* @abstract:
* How client applications should include FreeType header files.
*
* @description:
* To be as flexible as possible (and for historical reasons), you must
* load file `ft2build.h` first before other header files, for example
*
* ```
* #include <ft2build.h>
*
* #include <freetype/freetype.h>
* #include <freetype/ftoutln.h>
* ```
*/
/**************************************************************************
*
* @section:
* user_allocation
*
* @title:
* User allocation
*
* @abstract:
* How client applications should allocate FreeType data structures.
*
* @description:
* FreeType assumes that structures allocated by the user and passed as
* arguments are zeroed out except for the actual data. In other words,
* it is recommended to use `calloc` (or variants of it) instead of
* `malloc` for allocation.
*
*/
/**************************************************************************
*
* @section:
* font_testing_macros
*
* @title:
* Font Testing Macros
*
* @abstract:
* Macros to test various properties of fonts.
*
* @description:
* Macros to test the most important font properties.
*
* It is recommended to use these high-level macros instead of directly
* testing the corresponding flags, which are scattered over various
* structures.
*
* @order:
* FT_HAS_HORIZONTAL
* FT_HAS_VERTICAL
* FT_HAS_KERNING
* FT_HAS_FIXED_SIZES
* FT_HAS_GLYPH_NAMES
* FT_HAS_COLOR
* FT_HAS_MULTIPLE_MASTERS
* FT_HAS_SVG
* FT_HAS_SBIX
* FT_HAS_SBIX_OVERLAY
*
* FT_IS_SFNT
* FT_IS_SCALABLE
* FT_IS_FIXED_WIDTH
* FT_IS_CID_KEYED
* FT_IS_TRICKY
* FT_IS_NAMED_INSTANCE
* FT_IS_VARIATION
*
*/
/**************************************************************************
*
* @section:
* library_setup
*
* @title:
* Library Setup
*
* @abstract:
* Functions to start and end the usage of the FreeType library.
*
* @description:
* Functions to start and end the usage of the FreeType library.
*
* Note that @FT_Library_Version and @FREETYPE_XXX are of limited use
* because even a new release of FreeType with only documentation
* changes increases the version number.
*
* @order:
* FT_Library
* FT_Init_FreeType
* FT_Done_FreeType
*
* FT_Library_Version
* FREETYPE_XXX
*
*/
/**************************************************************************
*
* @section:
* face_creation
*
* @title:
* Face Creation
*
* @abstract:
* Functions to manage fonts.
*
* @description:
* The functions and structures collected in this section operate on
* fonts globally.
*
* @order:
* FT_Face
* FT_FaceRec
* FT_FACE_FLAG_XXX
* FT_STYLE_FLAG_XXX
*
* FT_New_Face
* FT_Done_Face
* FT_Reference_Face
* FT_New_Memory_Face
* FT_Face_Properties
* FT_Open_Face
* FT_Open_Args
* FT_OPEN_XXX
* FT_Parameter
* FT_Attach_File
* FT_Attach_Stream
*
*/
/**************************************************************************
*
* @section:
* sizing_and_scaling
*
* @title:
* Sizing and Scaling
*
* @abstract:
* Functions to manage font sizes.
*
* @description:
* The functions and structures collected in this section are related to
* selecting and manipulating the size of a font globally.
*
* @order:
* FT_Size
* FT_SizeRec
* FT_Size_Metrics
*
* FT_Bitmap_Size
*
* FT_Set_Char_Size
* FT_Set_Pixel_Sizes
* FT_Request_Size
* FT_Select_Size
* FT_Size_Request_Type
* FT_Size_RequestRec
* FT_Size_Request
*
* FT_Set_Transform
* FT_Get_Transform
*
*/
/**************************************************************************
*
* @section:
* glyph_retrieval
*
* @title:
* Glyph Retrieval
*
* @abstract:
* Functions to manage glyphs.
*
* @description:
* The functions and structures collected in this section operate on
* single glyphs, of which @FT_Load_Glyph is most important.
*
* @order:
* FT_GlyphSlot
* FT_GlyphSlotRec
* FT_Glyph_Metrics
*
* FT_Load_Glyph
* FT_LOAD_XXX
* FT_LOAD_TARGET_MODE
* FT_LOAD_TARGET_XXX
*
* FT_Render_Glyph
* FT_Render_Mode
* FT_Get_Kerning
* FT_Kerning_Mode
* FT_Get_Track_Kerning
*
*/
/**************************************************************************
*
* @section:
* character_mapping
*
* @title:
* Character Mapping
*
* @abstract:
* Functions to manage character-to-glyph maps.
*
* @description:
* This section holds functions and structures that are related to
* mapping character input codes to glyph indices.
*
* Note that for many scripts the simplistic approach used by FreeType
* of mapping a single character to a single glyph is not valid or
* possible! In general, a higher-level library like HarfBuzz or ICU
* should be used for handling text strings.
*
* @order:
* FT_CharMap
* FT_CharMapRec
* FT_Encoding
* FT_ENC_TAG
*
* FT_Select_Charmap
* FT_Set_Charmap
* FT_Get_Charmap_Index
*
* FT_Get_Char_Index
* FT_Get_First_Char
* FT_Get_Next_Char
* FT_Load_Char
*
*/
/**************************************************************************
*
* @section:
* information_retrieval
*
* @title:
* Information Retrieval
*
* @abstract:
* Functions to retrieve font and glyph information.
*
* @description:
* Functions to retrieve font and glyph information. Only some very
* basic data is covered; see also the chapter on the format-specific
* API for more.
*
*
* @order:
* FT_Get_Name_Index
* FT_Get_Glyph_Name
* FT_Get_P
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
freetype 2.13.2静态库,win-x64 win-x86 linux-x64 (176个子文件)
libfreetype.a 1.32MB
freetype.h 175KB
freetype.h 175KB
freetype.h 175KB
ttnameid.h 57KB
ttnameid.h 57KB
ttnameid.h 57KB
ftcolor.h 49KB
ftcolor.h 49KB
ftcolor.h 49KB
ftdriver.h 46KB
ftdriver.h 46KB
ftdriver.h 46KB
ftimage.h 41KB
ftimage.h 41KB
ftimage.h 41KB
ftoption.h 40KB
ftoption.h 40KB
ftoption.h 39KB
ftcache.h 33KB
ftcache.h 33KB
ftcache.h 33KB
tttables.h 25KB
tttables.h 25KB
tttables.h 25KB
ftheader.h 23KB
ftheader.h 23KB
ftheader.h 23KB
ftmm.h 23KB
ftmm.h 23KB
ftmm.h 23KB
t1tables.h 23KB
t1tables.h 23KB
t1tables.h 23KB
ftmodapi.h 22KB
ftmodapi.h 22KB
ftmodapi.h 22KB
ftstroke.h 21KB
ftstroke.h 21KB
ftstroke.h 21KB
ftglyph.h 20KB
ftglyph.h 20KB
ftglyph.h 20KB
ftoutln.h 17KB
ftoutln.h 17KB
ftoutln.h 17KB
fttypes.h 14KB
fttypes.h 14KB
fttypes.h 14KB
fterrdef.h 12KB
fterrdef.h 12KB
fterrdef.h 12KB
dlg.h 12KB
dlg.h 12KB
dlg.h 12KB
ftlcdfil.h 11KB
ftlcdfil.h 11KB
ftlcdfil.h 11KB
ftincrem.h 10KB
ftincrem.h 10KB
ftincrem.h 10KB
ftgxval.h 10KB
ftgxval.h 10KB
ftgxval.h 10KB
otsvg.h 10KB
otsvg.h 10KB
otsvg.h 10KB
fterrors.h 9KB
fterrors.h 9KB
fterrors.h 9KB
ftbitmap.h 9KB
ftbitmap.h 9KB
ftbitmap.h 9KB
ftsystem.h 8KB
ftsystem.h 8KB
ftsystem.h 8KB
ftwinfnt.h 8KB
ftwinfnt.h 8KB
ftwinfnt.h 8KB
ftmac.h 8KB
ftmac.h 8KB
ftmac.h 8KB
ftsnames.h 8KB
ftsnames.h 8KB
ftsnames.h 8KB
fttrigon.h 7KB
fttrigon.h 7KB
fttrigon.h 7KB
output.h 7KB
output.h 7KB
output.h 7KB
ftlist.h 7KB
ftlist.h 7KB
ftlist.h 7KB
integer-types.h 7KB
integer-types.h 7KB
integer-types.h 7KB
ftmoderr.h 7KB
ftmoderr.h 7KB
ftmoderr.h 7KB
共 176 条
- 1
- 2
资源评论
hicome
- 粉丝: 25
- 资源: 29
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功