nuclear@0: /***************************************************************************/ nuclear@0: /* */ nuclear@0: /* ftsynth.h */ nuclear@0: /* */ nuclear@0: /* FreeType synthesizing code for emboldening and slanting */ nuclear@0: /* (specification). */ nuclear@0: /* */ nuclear@0: /* Copyright 2000-2001, 2003, 2006, 2008 by */ nuclear@0: /* David Turner, Robert Wilhelm, and Werner Lemberg. */ nuclear@0: /* */ nuclear@0: /* This file is part of the FreeType project, and may only be used, */ nuclear@0: /* modified, and distributed under the terms of the FreeType project */ nuclear@0: /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ nuclear@0: /* this file you indicate that you have read the license and */ nuclear@0: /* understand and accept it fully. */ nuclear@0: /* */ nuclear@0: /***************************************************************************/ nuclear@0: nuclear@0: nuclear@0: /*************************************************************************/ nuclear@0: /*************************************************************************/ nuclear@0: /*************************************************************************/ nuclear@0: /*************************************************************************/ nuclear@0: /*************************************************************************/ nuclear@0: /********* *********/ nuclear@0: /********* WARNING, THIS IS ALPHA CODE! THIS API *********/ nuclear@0: /********* IS DUE TO CHANGE UNTIL STRICTLY NOTIFIED BY THE *********/ nuclear@0: /********* FREETYPE DEVELOPMENT TEAM *********/ nuclear@0: /********* *********/ nuclear@0: /*************************************************************************/ nuclear@0: /*************************************************************************/ nuclear@0: /*************************************************************************/ nuclear@0: /*************************************************************************/ nuclear@0: /*************************************************************************/ nuclear@0: nuclear@0: nuclear@0: /* Main reason for not lifting the functions in this module to a */ nuclear@0: /* `standard' API is that the used parameters for emboldening and */ nuclear@0: /* slanting are not configurable. Consider the functions as a */ nuclear@0: /* code resource which should be copied into the application and */ nuclear@0: /* adapted to the particular needs. */ nuclear@0: nuclear@0: nuclear@0: #ifndef __FTSYNTH_H__ nuclear@0: #define __FTSYNTH_H__ nuclear@0: nuclear@0: nuclear@0: #include nuclear@0: #include FT_FREETYPE_H nuclear@0: nuclear@0: #ifdef FREETYPE_H nuclear@0: #error "freetype.h of FreeType 1 has been loaded!" nuclear@0: #error "Please fix the directory search order for header files" nuclear@0: #error "so that freetype.h of FreeType 2 is found first." nuclear@0: #endif nuclear@0: nuclear@0: nuclear@0: FT_BEGIN_HEADER nuclear@0: nuclear@0: /* Embolden a glyph by a `reasonable' value (which is highly a matter of */ nuclear@0: /* taste). This function is actually a convenience function, providing */ nuclear@0: /* a wrapper for @FT_Outline_Embolden and @FT_Bitmap_Embolden. */ nuclear@0: /* */ nuclear@0: /* For emboldened outlines the metrics are estimates only; if you need */ nuclear@0: /* precise values you should call @FT_Outline_Get_CBox. */ nuclear@0: FT_EXPORT( void ) nuclear@0: FT_GlyphSlot_Embolden( FT_GlyphSlot slot ); nuclear@0: nuclear@0: /* Slant an outline glyph to the right by about 12 degrees. */ nuclear@0: FT_EXPORT( void ) nuclear@0: FT_GlyphSlot_Oblique( FT_GlyphSlot slot ); nuclear@0: nuclear@0: /* */ nuclear@0: nuclear@0: FT_END_HEADER nuclear@0: nuclear@0: #endif /* __FTSYNTH_H__ */ nuclear@0: nuclear@0: nuclear@0: /* END */