From ed49a886544c69b375cd7bce63e9ace9bfbad0e5 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 3 Mar 2009 18:28:24 -0800 Subject: auto import from //depot/cupcake/@135843 --- include/freetype/ftadvanc.h | 131 -------------------------------------------- 1 file changed, 131 deletions(-) delete mode 100644 include/freetype/ftadvanc.h (limited to 'include/freetype/ftadvanc.h') diff --git a/include/freetype/ftadvanc.h b/include/freetype/ftadvanc.h deleted file mode 100644 index 108b1ce..0000000 --- a/include/freetype/ftadvanc.h +++ /dev/null @@ -1,131 +0,0 @@ -/***************************************************************************/ -/* */ -/* ftadvanc.h */ -/* */ -/* FreeType access the glyph advances (specification only). */ -/* */ -/* 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. */ -/* */ -/***************************************************************************/ - -#ifndef __FREETYPE_ADVANCE_H__ -#define __FREETYPE_ADVANCE_H__ - -#include -#include FT_FREETYPE_H - - /*************************************************************************/ - /* */ - /* */ - /* FT_ADVANCE_FLAG_FAST_ONLY */ - /* */ - /* */ - /* a bit-flag to be or-ed to the 'flags' parameter of the */ - /* @FT_Get_Advance and @FT_Get_Advances. */ - /* */ - /* when set, it indicates that you want these functions to fail */ - /* if the corresponding hinting mode or font driver doesn't */ - /* allow for very quick advance computation. */ - /* */ - /* typically, unscaled, unhinted, bitmapped and light-hinted glyphs */ - /* can have their advance width(s) computed very quickly. */ - /* */ - /* not so for normal and bytecode hinted modes, which require */ - /* loading/scaling/hinting the glyph outline instead, which is */ - /* extremely slow by comparison */ - /* */ -#define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000U - - - /*************************************************************************/ - /* */ - /* */ - /* FT_Get_Advance */ - /* */ - /* */ - /* Retrieve the advance of a given glyph outline in a FT_Face. */ - /* by default, the unhinted advance is returned in font units */ - /* */ - /* */ - /* face :: source FT_Face handle */ - /* gindex :: 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. */ - /* */ - /* padvance :: the advance value, in either font units or 16.16 */ - /* format. */ - /* */ - /* if @FT_LOAD_VERTICAL_LAYOUT is set, this is the */ - /* vertical advance corresponding to a vertical layout. */ - /* otherwise, it's the horizontal advance in an */ - /* horizontal layout. */ - /* */ - /* FreeType error code. 0 means success. */ - /* */ - /* */ - /* This function may fail if you use @FT_ADVANCE_FLAG_FAST_ONLY and */ - /* if the corresponding's font backend doesn't have a quick way to */ - /* retrieve the advances. */ - /* */ - /* A scaled advance is returned in 16.16 format, but isn't */ - /* transformed by the affine transform specified by @FT_Set_Transform */ - /* */ - FT_EXPORT( FT_Error ) - FT_Get_Advance( FT_Face face, - FT_UInt gindex, - FT_UInt load_flags, - FT_Fixed *padvance ); - - /*************************************************************************/ - /* */ - /* */ - /* FT_Get_Advances */ - /* */ - /* */ - /* Retrieve the advance of several glyph outlines in a FT_Face. */ - /* by default, the unhinted advances are returned in font units */ - /* */ - /* */ - /* face :: source FT_Face handle */ - /* start :: first glyph index */ - /* count :: number of advances you want to retrieve */ - /* load_flags :: a set of bit-flags similar to those used when */ - /* calling @FT_Load_Glyph. */ - /* */ - /* */ - /* padvance :: the advances, in either font units or 16.16 format. */ - /* this array must contain at least 'count' elements */ - /* */ - /* if @FT_LOAD_VERTICAL_LAYOUT is set, these are the */ - /* vertical advances corresponding to a vertical layout. */ - /* otherwise, they are the horizontal advances in an */ - /* horizontal layout. */ - /* */ - /* FreeType error code. 0 means success. */ - /* */ - /* */ - /* This function may fail if you use @FT_ADVANCE_FLAG_FAST_ONLY and */ - /* if the corresponding's font backend doesn't have a quick way to */ - /* retrieve the advances. */ - /* */ - /* Scaled advances are returned in 16.16 format, but aren't */ - /* transformed by the affine transform specified by @FT_Set_Transform */ - /* */ - FT_EXPORT( FT_Error ) - FT_Get_Advances( FT_Face face, - FT_UInt start, - FT_UInt count, - FT_UInt load_flags, - FT_Fixed *padvances ); - -/* */ - -#endif /* __FREETYPE_ADVANCE_H__ */ -- cgit v1.2.3