vrshoot
diff libs/ft2static/freetype/ftsynth.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/ft2static/freetype/ftsynth.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,80 @@ 1.4 +/***************************************************************************/ 1.5 +/* */ 1.6 +/* ftsynth.h */ 1.7 +/* */ 1.8 +/* FreeType synthesizing code for emboldening and slanting */ 1.9 +/* (specification). */ 1.10 +/* */ 1.11 +/* Copyright 2000-2001, 2003, 2006, 2008 by */ 1.12 +/* David Turner, Robert Wilhelm, and Werner Lemberg. */ 1.13 +/* */ 1.14 +/* This file is part of the FreeType project, and may only be used, */ 1.15 +/* modified, and distributed under the terms of the FreeType project */ 1.16 +/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 1.17 +/* this file you indicate that you have read the license and */ 1.18 +/* understand and accept it fully. */ 1.19 +/* */ 1.20 +/***************************************************************************/ 1.21 + 1.22 + 1.23 + /*************************************************************************/ 1.24 + /*************************************************************************/ 1.25 + /*************************************************************************/ 1.26 + /*************************************************************************/ 1.27 + /*************************************************************************/ 1.28 + /********* *********/ 1.29 + /********* WARNING, THIS IS ALPHA CODE! THIS API *********/ 1.30 + /********* IS DUE TO CHANGE UNTIL STRICTLY NOTIFIED BY THE *********/ 1.31 + /********* FREETYPE DEVELOPMENT TEAM *********/ 1.32 + /********* *********/ 1.33 + /*************************************************************************/ 1.34 + /*************************************************************************/ 1.35 + /*************************************************************************/ 1.36 + /*************************************************************************/ 1.37 + /*************************************************************************/ 1.38 + 1.39 + 1.40 + /* Main reason for not lifting the functions in this module to a */ 1.41 + /* `standard' API is that the used parameters for emboldening and */ 1.42 + /* slanting are not configurable. Consider the functions as a */ 1.43 + /* code resource which should be copied into the application and */ 1.44 + /* adapted to the particular needs. */ 1.45 + 1.46 + 1.47 +#ifndef __FTSYNTH_H__ 1.48 +#define __FTSYNTH_H__ 1.49 + 1.50 + 1.51 +#include <ft2build.h> 1.52 +#include FT_FREETYPE_H 1.53 + 1.54 +#ifdef FREETYPE_H 1.55 +#error "freetype.h of FreeType 1 has been loaded!" 1.56 +#error "Please fix the directory search order for header files" 1.57 +#error "so that freetype.h of FreeType 2 is found first." 1.58 +#endif 1.59 + 1.60 + 1.61 +FT_BEGIN_HEADER 1.62 + 1.63 + /* Embolden a glyph by a `reasonable' value (which is highly a matter of */ 1.64 + /* taste). This function is actually a convenience function, providing */ 1.65 + /* a wrapper for @FT_Outline_Embolden and @FT_Bitmap_Embolden. */ 1.66 + /* */ 1.67 + /* For emboldened outlines the metrics are estimates only; if you need */ 1.68 + /* precise values you should call @FT_Outline_Get_CBox. */ 1.69 + FT_EXPORT( void ) 1.70 + FT_GlyphSlot_Embolden( FT_GlyphSlot slot ); 1.71 + 1.72 + /* Slant an outline glyph to the right by about 12 degrees. */ 1.73 + FT_EXPORT( void ) 1.74 + FT_GlyphSlot_Oblique( FT_GlyphSlot slot ); 1.75 + 1.76 + /* */ 1.77 + 1.78 +FT_END_HEADER 1.79 + 1.80 +#endif /* __FTSYNTH_H__ */ 1.81 + 1.82 + 1.83 +/* END */