modules/freetype2/include/ftsynth.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /***************************************************************************/
michael@0 2 /* */
michael@0 3 /* ftsynth.h */
michael@0 4 /* */
michael@0 5 /* FreeType synthesizing code for emboldening and slanting */
michael@0 6 /* (specification). */
michael@0 7 /* */
michael@0 8 /* Copyright 2000-2001, 2003, 2006, 2008, 2012, 2013 by */
michael@0 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
michael@0 10 /* */
michael@0 11 /* This file is part of the FreeType project, and may only be used, */
michael@0 12 /* modified, and distributed under the terms of the FreeType project */
michael@0 13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
michael@0 14 /* this file you indicate that you have read the license and */
michael@0 15 /* understand and accept it fully. */
michael@0 16 /* */
michael@0 17 /***************************************************************************/
michael@0 18
michael@0 19
michael@0 20 /*************************************************************************/
michael@0 21 /*************************************************************************/
michael@0 22 /*************************************************************************/
michael@0 23 /*************************************************************************/
michael@0 24 /*************************************************************************/
michael@0 25 /********* *********/
michael@0 26 /********* WARNING, THIS IS ALPHA CODE! THIS API *********/
michael@0 27 /********* IS DUE TO CHANGE UNTIL STRICTLY NOTIFIED BY THE *********/
michael@0 28 /********* FREETYPE DEVELOPMENT TEAM *********/
michael@0 29 /********* *********/
michael@0 30 /*************************************************************************/
michael@0 31 /*************************************************************************/
michael@0 32 /*************************************************************************/
michael@0 33 /*************************************************************************/
michael@0 34 /*************************************************************************/
michael@0 35
michael@0 36
michael@0 37 /* Main reason for not lifting the functions in this module to a */
michael@0 38 /* `standard' API is that the used parameters for emboldening and */
michael@0 39 /* slanting are not configurable. Consider the functions as a */
michael@0 40 /* code resource that should be copied into the application and */
michael@0 41 /* adapted to the particular needs. */
michael@0 42
michael@0 43
michael@0 44 #ifndef __FTSYNTH_H__
michael@0 45 #define __FTSYNTH_H__
michael@0 46
michael@0 47
michael@0 48 #include <ft2build.h>
michael@0 49 #include FT_FREETYPE_H
michael@0 50
michael@0 51 #ifdef FREETYPE_H
michael@0 52 #error "freetype.h of FreeType 1 has been loaded!"
michael@0 53 #error "Please fix the directory search order for header files"
michael@0 54 #error "so that freetype.h of FreeType 2 is found first."
michael@0 55 #endif
michael@0 56
michael@0 57
michael@0 58 FT_BEGIN_HEADER
michael@0 59
michael@0 60 /* Embolden a glyph by a `reasonable' value (which is highly a matter of */
michael@0 61 /* taste). This function is actually a convenience function, providing */
michael@0 62 /* a wrapper for @FT_Outline_Embolden and @FT_Bitmap_Embolden. */
michael@0 63 /* */
michael@0 64 /* For emboldened outlines the height, width, and advance metrics are */
michael@0 65 /* increased by the strength of the emboldening. You can also call */
michael@0 66 /* @FT_Outline_Get_CBox to get precise values. */
michael@0 67 FT_EXPORT( void )
michael@0 68 FT_GlyphSlot_Embolden( FT_GlyphSlot slot );
michael@0 69
michael@0 70 /* Slant an outline glyph to the right by about 12 degrees. */
michael@0 71 FT_EXPORT( void )
michael@0 72 FT_GlyphSlot_Oblique( FT_GlyphSlot slot );
michael@0 73
michael@0 74 /* */
michael@0 75
michael@0 76 FT_END_HEADER
michael@0 77
michael@0 78 #endif /* __FTSYNTH_H__ */
michael@0 79
michael@0 80
michael@0 81 /* END */

mercurial