2000-03-28 13:22:31 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* ftglyph.h */
|
|
|
|
/* */
|
2000-07-14 08:16:47 +02:00
|
|
|
/* FreeType convenience functions to handle glyphs (specification). */
|
2000-03-28 13:22:31 +02:00
|
|
|
/* */
|
2000-05-17 01:22:21 +02:00
|
|
|
/* Copyright 1996-2000 by */
|
2000-03-28 13:22:31 +02:00
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
|
|
/* */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* This file is part of the FreeType project, and may only be used, */
|
|
|
|
/* modified, and distributed under the terms of the FreeType project */
|
2000-03-28 13:22:31 +02:00
|
|
|
/* 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. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2000-07-10 02:06:22 +02:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* This file contains the definition of several convenience functions */
|
|
|
|
/* that can be used by client applications to easily retrieve glyph */
|
|
|
|
/* bitmaps and outlines from a given face. */
|
|
|
|
/* */
|
|
|
|
/* These functions should be optional if you are writing a font server */
|
|
|
|
/* or text layout engine on top of FreeType. However, they are pretty */
|
|
|
|
/* handy for many other simple uses of the library. */
|
|
|
|
/* */
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
|
2000-12-01 00:12:33 +01:00
|
|
|
#ifndef __FTGLYPH_H__
|
|
|
|
#define __FTGLYPH_H__
|
2000-03-28 13:22:31 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
|
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_FREETYPE_H
|
|
|
|
|
2000-12-01 00:12:33 +01:00
|
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
2001-01-10 12:15:48 +01:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Section> glyph_management */
|
|
|
|
/* */
|
|
|
|
/* <Title> Glyph Management */
|
|
|
|
/* */
|
|
|
|
/* <Abstract> */
|
|
|
|
/* Generic interface to manage individual glyph data */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* This section contains definitions used to manage glyph data */
|
|
|
|
/* through generic FT_Glyph objects. Each one of them can contain */
|
|
|
|
/* a bitmap, a vector outline, or even images in other formats. */
|
|
|
|
/* */
|
2000-05-22 18:25:14 +02:00
|
|
|
|
2000-07-01 01:12:55 +02:00
|
|
|
/* forward declaration to a private type */
|
|
|
|
typedef struct FT_Glyph_Class_ FT_Glyph_Class;
|
2000-03-28 13:22:31 +02:00
|
|
|
|
2000-07-10 02:06:22 +02:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Struct> */
|
|
|
|
/* FT_GlyphRec */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* The root glyph structure contains a given glyph image plus its */
|
|
|
|
/* advance width in 16.16 fixed float format. */
|
|
|
|
/* */
|
|
|
|
/* <Fields> */
|
|
|
|
/* library :: A handle to the FreeType library object. */
|
|
|
|
/* */
|
|
|
|
/* clazz :: A pointer to the glyph's class. Private. */
|
|
|
|
/* */
|
|
|
|
/* format :: The format of the glyph's image. */
|
|
|
|
/* */
|
|
|
|
/* advance :: A 16.16 vector that gives the glyph's advance width. */
|
|
|
|
/* */
|
|
|
|
typedef struct FT_GlyphRec_
|
2000-03-28 13:22:31 +02:00
|
|
|
{
|
2000-07-01 01:12:55 +02:00
|
|
|
FT_Library library;
|
|
|
|
const FT_Glyph_Class* clazz;
|
|
|
|
FT_Glyph_Format format;
|
|
|
|
FT_Vector advance;
|
2000-05-17 01:44:38 +02:00
|
|
|
|
2000-03-28 13:22:31 +02:00
|
|
|
} FT_GlyphRec, *FT_Glyph;
|
|
|
|
|
|
|
|
|
2000-07-10 02:06:22 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Struct> */
|
|
|
|
/* FT_BitmapGlyphRec */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A structure used for bitmap glyph images. This really is a */
|
|
|
|
/* `sub-class' of `FT_GlyphRec'. */
|
|
|
|
/* */
|
|
|
|
/* <Fields> */
|
|
|
|
/* root :: The root FT_Glyph fields. */
|
|
|
|
/* */
|
|
|
|
/* left :: The left-side bearing, i.e., the horizontal distance */
|
|
|
|
/* from the current pen position to the left border of the */
|
|
|
|
/* glyph bitmap. */
|
|
|
|
/* */
|
|
|
|
/* top :: The top-side bearing, i.e., the vertical distance from */
|
|
|
|
/* the current pen position to the top border of the glyph */
|
|
|
|
/* bitmap. This distance is positive for upwards-y! */
|
|
|
|
/* */
|
|
|
|
/* bitmap :: A descriptor for the bitmap. */
|
|
|
|
/* */
|
|
|
|
/* <Note> */
|
|
|
|
/* You can typecast FT_Glyph to FT_BitmapGlyph if you have */
|
|
|
|
/* glyph->format == ft_glyph_format_bitmap. This lets you access */
|
|
|
|
/* the bitmap's contents easily. */
|
|
|
|
/* */
|
|
|
|
/* The corresponding pixel buffer is always owned by the BitmapGlyph */
|
|
|
|
/* and is thus created and destroyed with it. */
|
|
|
|
/* */
|
|
|
|
typedef struct FT_BitmapGlyphRec_
|
2000-03-28 13:22:31 +02:00
|
|
|
{
|
2000-07-01 01:12:55 +02:00
|
|
|
FT_GlyphRec root;
|
2000-03-28 13:22:31 +02:00
|
|
|
FT_Int left;
|
|
|
|
FT_Int top;
|
|
|
|
FT_Bitmap bitmap;
|
2000-05-17 01:44:38 +02:00
|
|
|
|
2000-07-01 01:12:55 +02:00
|
|
|
} FT_BitmapGlyphRec, *FT_BitmapGlyph;
|
2000-03-28 13:22:31 +02:00
|
|
|
|
|
|
|
|
2000-07-10 02:06:22 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Struct> */
|
|
|
|
/* FT_OutlineGlyphRec */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A structure used for outline (vectorial) glyph images. This */
|
|
|
|
/* really is a `sub-class' of `FT_GlyphRec'. */
|
|
|
|
/* */
|
|
|
|
/* <Fields> */
|
|
|
|
/* root :: The root FT_Glyph fields. */
|
|
|
|
/* */
|
|
|
|
/* outline :: A descriptor for the outline. */
|
|
|
|
/* */
|
|
|
|
/* <Note> */
|
|
|
|
/* You can typecast FT_Glyph to FT_OutlineGlyph if you have */
|
|
|
|
/* glyph->format == ft_glyph_format_outline. This lets you access */
|
|
|
|
/* the outline's content easily. */
|
|
|
|
/* */
|
|
|
|
/* As the outline is extracted from a glyph slot, its coordinates are */
|
|
|
|
/* expressed normally in 26.6 pixels, unless the flag */
|
|
|
|
/* FT_LOAD_NO_SCALE was used in FT_Load_Glyph() or FT_Load_Char(). */
|
|
|
|
/* */
|
|
|
|
/* The outline's tables are always owned by the object and are */
|
|
|
|
/* destroyed with it. */
|
|
|
|
/* */
|
|
|
|
typedef struct FT_OutlineGlyphRec_
|
2000-03-28 13:22:31 +02:00
|
|
|
{
|
2000-07-01 01:12:55 +02:00
|
|
|
FT_GlyphRec root;
|
2000-03-28 13:22:31 +02:00
|
|
|
FT_Outline outline;
|
2000-05-17 01:44:38 +02:00
|
|
|
|
2000-07-01 01:12:55 +02:00
|
|
|
} FT_OutlineGlyphRec, *FT_OutlineGlyph;
|
|
|
|
|
2000-03-28 13:22:31 +02:00
|
|
|
|
2000-07-10 02:06:22 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Function> */
|
|
|
|
/* FT_Get_Glyph */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A function used to extract a glyph image from a slot. */
|
|
|
|
/* */
|
|
|
|
/* <Input> */
|
|
|
|
/* slot :: A handle to the source glyph slot. */
|
|
|
|
/* */
|
|
|
|
/* <Output> */
|
|
|
|
/* aglyph :: A handle to the glyph object. */
|
|
|
|
/* */
|
|
|
|
/* <Return> */
|
|
|
|
/* FreeType error code. 0 means success. */
|
|
|
|
/* */
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( FT_Error ) FT_Get_Glyph( FT_GlyphSlot slot,
|
2000-11-06 05:33:56 +01:00
|
|
|
FT_Glyph *aglyph );
|
2000-07-10 02:06:22 +02:00
|
|
|
|
2000-03-28 13:22:31 +02:00
|
|
|
|
2000-07-10 02:06:22 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Function> */
|
|
|
|
/* FT_Glyph_Copy */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* A function used to copy a glyph image. */
|
|
|
|
/* */
|
|
|
|
/* <Input> */
|
|
|
|
/* source :: A handle to the source glyph object. */
|
|
|
|
/* */
|
|
|
|
/* <Output> */
|
|
|
|
/* target :: A handle to the target glyph object. 0 in case of */
|
|
|
|
/* error. */
|
|
|
|
/* */
|
|
|
|
/* <Return> */
|
|
|
|
/* FreeType error code. 0 means success. */
|
|
|
|
/* */
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( FT_Error ) FT_Glyph_Copy( FT_Glyph source,
|
2000-11-06 05:33:56 +01:00
|
|
|
FT_Glyph *target );
|
2000-05-17 01:44:38 +02:00
|
|
|
|
2000-07-10 02:06:22 +02:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Function> */
|
|
|
|
/* FT_Glyph_Transform */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* Transforms a glyph image if its format is scalable. */
|
|
|
|
/* */
|
2000-11-06 05:33:56 +01:00
|
|
|
/* <InOut> */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* glyph :: A handle to the target glyph object. */
|
|
|
|
/* */
|
2000-11-06 05:33:56 +01:00
|
|
|
/* <Input> */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* matrix :: A pointer to a 2x2 matrix to apply. */
|
|
|
|
/* */
|
|
|
|
/* delta :: A pointer to a 2d vector to apply. Coordinates are */
|
|
|
|
/* expressed in 1/64th of a pixel. */
|
|
|
|
/* */
|
|
|
|
/* <Return> */
|
|
|
|
/* FreeType error code (the glyph format is not scalable if it is */
|
|
|
|
/* not zero). */
|
|
|
|
/* */
|
|
|
|
/* <Note> */
|
|
|
|
/* The 2x2 transformation matrix is also applied to the glyph's */
|
|
|
|
/* advance vector. */
|
|
|
|
/* */
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( FT_Error ) FT_Glyph_Transform( FT_Glyph glyph,
|
|
|
|
FT_Matrix* matrix,
|
|
|
|
FT_Vector* delta );
|
2000-07-10 02:06:22 +02:00
|
|
|
|
2001-01-10 12:15:48 +01:00
|
|
|
/* */
|
|
|
|
|
2000-07-10 02:06:22 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Function> */
|
|
|
|
/* FT_Glyph_Get_CBox */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
2000-11-06 05:33:56 +01:00
|
|
|
/* Returns a glyph's `control box'. The control box encloses all the */
|
|
|
|
/* outline's points, including Bezier control points. Though it */
|
|
|
|
/* coincides with the exact bounding box for most glyphs, it can be */
|
|
|
|
/* slightly larger in some situations (like when rotating an outline */
|
|
|
|
/* which contains Bezier outside arcs). */
|
|
|
|
/* */
|
|
|
|
/* Computing the control box is very fast, while getting the bounding */
|
|
|
|
/* box can take much more time as it needs to walk over all segments */
|
|
|
|
/* and arcs in the outline. To get the latter, you can use the */
|
|
|
|
/* `ftbbox' component which is dedicated to this single task. */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* */
|
|
|
|
/* <Input> */
|
|
|
|
/* glyph :: A handle to the source glyph object. */
|
|
|
|
/* */
|
2000-10-12 01:31:12 +02:00
|
|
|
/* mode :: The mode which indicates how to interpret the returned */
|
|
|
|
/* bounding box values. */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* */
|
|
|
|
/* <Output> */
|
2000-11-06 05:33:56 +01:00
|
|
|
/* acbox :: The glyph coordinate bounding box. Coordinates are */
|
|
|
|
/* expressed in 1/64th of pixels if it is grid-fitted. */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* */
|
|
|
|
/* <Note> */
|
|
|
|
/* Coordinates are relative to the glyph origin, using the Y-upwards */
|
|
|
|
/* convention. */
|
|
|
|
/* */
|
2000-10-12 01:31:12 +02:00
|
|
|
/* If the glyph has been loaded with FT_LOAD_NO_SCALE, `bbox_mode' */
|
|
|
|
/* must be set to `ft_glyph_bbox_unscaled' to get unscaled font */
|
|
|
|
/* units. */
|
|
|
|
/* */
|
|
|
|
/* If `bbox_mode' is set to `ft_glyph_bbox_subpixels' the bbox */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* coordinates are returned in 26.6 pixels (i.e. 1/64th of pixels). */
|
|
|
|
/* */
|
|
|
|
/* Note that the maximum coordinates are exclusive, which means that */
|
|
|
|
/* one can compute the width and height of the glyph image (be it in */
|
|
|
|
/* integer or 26.6 pixels) as: */
|
|
|
|
/* */
|
|
|
|
/* width = bbox.xMax - bbox.xMin; */
|
|
|
|
/* height = bbox.yMax - bbox.yMin; */
|
|
|
|
/* */
|
2000-10-12 01:31:12 +02:00
|
|
|
/* Note also that for 26.6 coordinates, if `bbox_mode' is set to */
|
|
|
|
/* `ft_glyph_bbox_gridfit', the coordinates will also be grid-fitted, */
|
|
|
|
/* which corresponds to: */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* */
|
|
|
|
/* bbox.xMin = FLOOR(bbox.xMin); */
|
|
|
|
/* bbox.yMin = FLOOR(bbox.yMin); */
|
|
|
|
/* bbox.xMax = CEILING(bbox.xMax); */
|
|
|
|
/* bbox.yMax = CEILING(bbox.yMax); */
|
|
|
|
/* */
|
2000-10-12 01:31:12 +02:00
|
|
|
/* To get the bbox in pixel coordinates, set `bbox_mode' to */
|
|
|
|
/* `ft_glyph_bbox_truncate'. */
|
|
|
|
/* */
|
|
|
|
/* To get the bbox in grid-fitted pixel coordinates, set `bbox_mode' */
|
|
|
|
/* to `ft_glyph_bbox_pixels'. */
|
|
|
|
/* */
|
|
|
|
/* The default value for `bbox_mode' is `ft_glyph_bbox_pixels'. */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* */
|
2001-01-10 12:15:48 +01:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
ft_glyph_bbox_unscaled = 0, /* return unscaled font units */
|
|
|
|
ft_glyph_bbox_subpixels = 0, /* return unfitted 26.6 coordinates */
|
|
|
|
ft_glyph_bbox_gridfit = 1, /* return grid-fitted 26.6 coordinates */
|
|
|
|
ft_glyph_bbox_truncate = 2, /* return coordinates in integer pixels */
|
|
|
|
ft_glyph_bbox_pixels = 3 /* return grid-fitted pixel coordinates */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( void ) FT_Glyph_Get_CBox( FT_Glyph glyph,
|
|
|
|
FT_UInt bbox_mode,
|
2000-11-06 05:33:56 +01:00
|
|
|
FT_BBox *acbox );
|
2000-07-10 02:06:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Function> */
|
|
|
|
/* FT_Glyph_To_Bitmap */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* Converts a given glyph object to a bitmap glyph object. */
|
|
|
|
/* */
|
|
|
|
/* <InOut> */
|
2000-11-06 05:33:56 +01:00
|
|
|
/* the_glyph :: A pointer to a handle to the target glyph. */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* */
|
|
|
|
/* <Input> */
|
|
|
|
/* render_mode :: A set of bit flags that describe how the data is */
|
|
|
|
/* */
|
|
|
|
/* */
|
|
|
|
/* origin :: A pointer to a vector used to translate the glyph */
|
|
|
|
/* image before rendering. Can be 0 (if no */
|
|
|
|
/* translation). The origin is expressed in */
|
|
|
|
/* 26.6 pixels. */
|
|
|
|
/* */
|
|
|
|
/* destroy :: A boolean that indicates that the original glyph */
|
|
|
|
/* image should be destroyed by this function. It is */
|
|
|
|
/* never destroyed in case of error. */
|
|
|
|
/* */
|
|
|
|
/* <Return> */
|
|
|
|
/* FreeType error code. 0 means success. */
|
|
|
|
/* */
|
|
|
|
/* <Note> */
|
|
|
|
/* The glyph image is translated with the `origin' vector before */
|
|
|
|
/* rendering. In case of error, it it translated back to its */
|
|
|
|
/* original position and the glyph is left untouched. */
|
|
|
|
/* */
|
|
|
|
/* The first parameter is a pointer to a FT_Glyph handle, that will */
|
|
|
|
/* be replaced by this function. Typically, you would use (omitting */
|
|
|
|
/* error handling): */
|
|
|
|
/* */
|
|
|
|
/* */
|
|
|
|
/* { */
|
|
|
|
/* FT_Glyph glyph; */
|
|
|
|
/* FT_BitmapGlyph glyph_bitmap; */
|
|
|
|
/* */
|
|
|
|
/* */
|
|
|
|
/* // load glyph */
|
|
|
|
/* error = FT_Load_Char( face, glyph_index, FT_LOAD_DEFAUT ); */
|
|
|
|
/* */
|
|
|
|
/* // extract glyph image */
|
|
|
|
/* error = FT_Get_Glyph( face->glyph, &glyph ); */
|
|
|
|
/* */
|
|
|
|
/* // convert to a bitmap (default render mode + destroy old) */
|
|
|
|
/* if ( glyph->format != ft_glyph_format_bitmap ) */
|
|
|
|
/* { */
|
|
|
|
/* error = FT_Glyph_To_Bitmap( &glyph, ft_render_mode_default, */
|
|
|
|
/* 0, 1 ); */
|
|
|
|
/* if ( error ) // glyph unchanged */
|
|
|
|
/* ... */
|
|
|
|
/* } */
|
|
|
|
/* */
|
|
|
|
/* // access bitmap content by typecasting */
|
|
|
|
/* glyph_bitmap = (FT_BitmapGlyph)glyph; */
|
|
|
|
/* */
|
|
|
|
/* // do funny stuff with it, like blitting/drawing */
|
|
|
|
/* ... */
|
|
|
|
/* */
|
|
|
|
/* // discard glyph image (bitmap or not) */
|
|
|
|
/* FT_Done_Glyph( glyph ); */
|
|
|
|
/* } */
|
|
|
|
/* */
|
|
|
|
/* */
|
|
|
|
/* This function will always fail if the glyph's format isn't */
|
|
|
|
/* scalable. */
|
|
|
|
/* */
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( FT_Error ) FT_Glyph_To_Bitmap( FT_Glyph* the_glyph,
|
|
|
|
FT_ULong render_mode,
|
|
|
|
FT_Vector* origin,
|
|
|
|
FT_Bool destroy );
|
2000-07-10 16:24:26 +02:00
|
|
|
|
2000-07-10 02:06:22 +02:00
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Function> */
|
|
|
|
/* FT_Done_Glyph */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* Destroys a given glyph. */
|
|
|
|
/* */
|
|
|
|
/* <Input> */
|
|
|
|
/* glyph :: A handle to the target glyph object. */
|
|
|
|
/* */
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( void ) FT_Done_Glyph( FT_Glyph glyph );
|
2000-07-01 01:12:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* other helpful functions */
|
|
|
|
|
2001-01-10 12:15:48 +01:00
|
|
|
/*****
|
|
|
|
* <Section> base_interface
|
|
|
|
*/
|
2000-07-10 02:06:22 +02:00
|
|
|
|
2000-07-01 01:12:55 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Function> */
|
|
|
|
/* FT_Matrix_Multiply */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* Performs the matrix operation `b = a*b'. */
|
|
|
|
/* */
|
|
|
|
/* <Input> */
|
|
|
|
/* a :: A pointer to matrix `a'. */
|
|
|
|
/* */
|
|
|
|
/* <InOut> */
|
|
|
|
/* b :: A pointer to matrix `b'. */
|
|
|
|
/* */
|
2000-07-10 02:06:22 +02:00
|
|
|
/* <Note> */
|
|
|
|
/* The result is undefined if either `a' or `b' is zero. */
|
|
|
|
/* */
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( void ) FT_Matrix_Multiply( FT_Matrix* a,
|
|
|
|
FT_Matrix* b );
|
2000-07-01 01:12:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Function> */
|
|
|
|
/* FT_Matrix_Invert */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* Inverts a 2x2 matrix. Returns an error if it can't be inverted. */
|
|
|
|
/* */
|
|
|
|
/* <InOut> */
|
|
|
|
/* matrix :: A pointer to the target matrix. Remains untouched in */
|
|
|
|
/* case of error. */
|
|
|
|
/* */
|
|
|
|
/* <Return> */
|
|
|
|
/* FreeType error code. 0 means success. */
|
|
|
|
/* */
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( FT_Error ) FT_Matrix_Invert( FT_Matrix* matrix );
|
2000-07-01 01:12:55 +02:00
|
|
|
|
2000-03-28 13:22:31 +02:00
|
|
|
|
2000-12-01 00:12:33 +01:00
|
|
|
FT_END_HEADER
|
2000-05-22 18:25:14 +02:00
|
|
|
|
2000-12-01 00:12:33 +01:00
|
|
|
#endif /* __FTGLYPH_H__ */
|
2000-07-10 02:06:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|