/***************************************************************************/
/* */
/*ftadvanc.h */
/* */
/*Quick computation of advance widths (specification only).*/
/* */
/*Copyright 2008-2015 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 __FTADVANC_H__
#define __FTADVANC_H__
#include
#include FT_FREETYPE_H
#ifdef FREETYPE_H
#error freetype.h of FreeType 1 has been loaded!
#error Please fix the directory search order for header files
#error so that freetype.h of FreeType 2 is found first.
#endif
FT_BEGIN_HEADER
/**************************************************************************
*
* @section:
* quick_advance
*
* @title:
* Quick retrieval of advance values
*
* @abstract:
* Retrieve horizontal and vertical advance values without processing
* glyph outlines, if possible.
*
* @description:
* This section contains functions to quickly extract advance values
* without handling glyph outlines, if possible.
*
* @order:
* FT_Get_Advance
* FT_Get_Advances
*
*/
/*************************************************************************/
/* */
/*
/*FT_ADVANCE_FLAG_FAST_ONLY*/
/* */
/*
/*A bit-flag to be OR-ed with the `flags parameter of the */
/*@FT_Get_Advance and @FT_Get_Advances functions.*/
/* */
/*If set, it indicates that you want these functions to fail if the*/
/*corresponding hinting mode or font driver doesnt allow for very */
/*quick advance computation. */
/* */
/*Typically, glyphs that are either unscaled, unhinted, bitmapped, */
/*or light-hinted can have their advance width computed very */
/*quickly. */
/* */
/*Normal and bytecode hinted modes that require loading, scaling,*/
/*and hinting of the glyph outline, are extremely slow by*/
/*comparison.*/
/* */
#define FT_ADVANCE_FLAG_FAST_ONLY0x20000000L
/*************************************************************************/
/* */
/*
/*FT_Get_Advance */
/* */
/*
/*Retrieve the advance value of a given glyph outline in an*/
/*@FT_Face.*/
/* */
/**/
/*face :: The source @FT_Face handle.*/
/* */
/*gindex :: The glyph index. */
/* */
/*load_flags :: A set of bit flags similar to those used when*/
/*calling @FT_Load_Glyph, used to determine what kind*/
/*of advances you need.*/
/*
/*************************************************************************/
/* */
/*
/*FT_Get_Advances*/
/* */
/*
/*Retrieve the advance values of several glyph outlines in an*/
/*@FT_Face.*/
/* */
/**/
/*face:: The source @FT_Face handle. */
/* */
/*start :: The first glyph index.*/
/* */
/*count :: The number of advance values you want to retrieve.*/
/* */
/*load_flags:: A set of bit flags similar to those used when */
/* calling @FT_Load_Glyph. */
/* */
/*
/* */
FT_END_HEADER
#endif /* __FTADVANC_H__ */
/* END */
Reviews
There are no reviews yet.