Edit

kc3-lang/freetype/include/freetype/ftbbox.h

Branch :

  • Show log

    Commit

  • Author : Werner Lemberg
    Date : 2008-06-26 19:56:51
    Hash : 8a9b6391
    Message : Improve navigation in API reference. * src/tools/docmaker/tohtml.py (html_header_3): Renamed to... (html_header_6): This. (html_header_3, html_header_3i, html_header_4, html_header_5, html_header_5t): New strings. (toc_footer_start, toc_footer_end): New strings. (HtmlFormatter::html_header): Updated. (HtmlFormatter::html_index_header, HtmlFormatter::html_toc_header): New strings. (HtmlFormatter::index_enter): Use `html_index_header'. (HtmlFormatter::index_exit): Print `html_footer'. (HtmlFormatter::toc_enter): Use `html_toc_header'. (HtmlFormatter::toc_exit): Print proper footer. Convert ~ to non-breakable space. * src/tools/docmaker/tohtml.py (make_html_para): Implement it. Update header files accordingly. Many other minor documentation fixes.

  • include/freetype/ftbbox.h
  • /***************************************************************************/
    /*                                                                         */
    /*  ftbbox.h                                                               */
    /*                                                                         */
    /*    FreeType exact bbox computation (specification).                     */
    /*                                                                         */
    /*  Copyright 1996-2001, 2003, 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.                                        */
    /*                                                                         */
    /***************************************************************************/
    
    
      /*************************************************************************/
      /*                                                                       */
      /* This component has a _single_ role: to compute exact outline bounding */
      /* boxes.                                                                */
      /*                                                                       */
      /* It is separated from the rest of the engine for various technical     */
      /* reasons.  It may well be integrated in `ftoutln' later.               */
      /*                                                                       */
      /*************************************************************************/
    
    
    #ifndef __FTBBOX_H__
    #define __FTBBOX_H__
    
    
    #include <ft2build.h>
    #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>                                                             */
      /*    outline_processing                                                 */
      /*                                                                       */
      /*************************************************************************/
    
    
      /*************************************************************************/
      /*                                                                       */
      /* <Function>                                                            */
      /*    FT_Outline_Get_BBox                                                */
      /*                                                                       */
      /* <Description>                                                         */
      /*    Compute the exact bounding box of an outline.  This is slower      */
      /*    than computing the control box.  However, it uses an advanced      */
      /*    algorithm which returns _very_ quickly when the two boxes          */
      /*    coincide.  Otherwise, the outline Bézier arcs are traversed to     */
      /*    extract their extrema.                                             */
      /*                                                                       */
      /* <Input>                                                               */
      /*    outline :: A pointer to the source outline.                        */
      /*                                                                       */
      /* <Output>                                                              */
      /*    abbox   :: The outline's exact bounding box.                       */
      /*                                                                       */
      /* <Return>                                                              */
      /*    FreeType error code.  0~means success.                             */
      /*                                                                       */
      FT_EXPORT( FT_Error )
      FT_Outline_Get_BBox( FT_Outline*  outline,
                           FT_BBox     *abbox );
    
    
      /* */
    
    
    FT_END_HEADER
    
    #endif /* __FTBBOX_H__ */
    
    
    /* END */
    
    
    /* Local Variables: */
    /* coding: utf-8    */
    /* End:             */