/***************************************************************************/
/* */
/*ftmac.h*/
/* */
/*Additional Mac-specific API. */
/* */
/*Copyright 1996-2015 by */
/*Just van Rossum, 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.*/
/* */
/***************************************************************************/
/***************************************************************************/
/* */
/* NOTE: Include this file after FT_FREETYPE_H and after any */
/* Mac-specific headers (because this header uses Mac types such as*/
/* Handle, FSSpec, FSRef, etc.)*/
/* */
/***************************************************************************/
#ifndef __FTMAC_H__
#define __FTMAC_H__
#include
FT_BEGIN_HEADER
/* gcc-3.4.1 and later can warn about functions tagged as deprecated */
#ifndef FT_DEPRECATED_ATTRIBUTE
#if defined(__GNUC__) &&
((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
#define FT_DEPRECATED_ATTRIBUTE__attribute__((deprecated))
#else
#define FT_DEPRECATED_ATTRIBUTE
#endif
#endif
/*************************************************************************/
/* */
/*
/*mac_specific */
/* */
/*
/*Mac Specific Interface */
/* */
/*
/*Only available on the Macintosh. */
/* */
/*
/*The following definitions are only available if FreeType is*/
/*compiled on a Macintosh. */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/*
/*FT_New_Face_From_FOND*/
/* */
/*
/*Create a new face object from a FOND resource. */
/* */
/*
/*library:: A handle to the library resource.*/
/* */
/* */
/*fond :: A FOND resource. */
/* */
/*face_index :: Only supported for the -1 `sanity check special */
/*case.*/
/* */
/*
/*************************************************************************/
/* */
/*
/*FT_GetFile_From_Mac_Name */
/* */
/*
/*Return an FSSpec for the disk file containing the named font.*/
/* */
/**/
/*fontName :: Mac OS name of the font (e.g., Times New Roman */
/*Bold). */
/* */
/*
/*************************************************************************/
/* */
/*
/*FT_GetFile_From_Mac_ATS_Name */
/* */
/*
/*Return an FSSpec for the disk file containing the named font.*/
/* */
/**/
/*fontName :: Mac OS name of the font in ATS framework.*/
/* */
/*
/*************************************************************************/
/* */
/*
/*FT_GetFilePath_From_Mac_ATS_Name */
/* */
/*
/*Return a pathname of the disk file and face index for given font */
/*name that is handled by ATS framework. */
/* */
/**/
/*fontName:: Mac OS name of the font in ATS framework. */
/* */
/*
/*************************************************************************/
/* */
/*
/*FT_New_Face_From_FSSpec*/
/* */
/*
/*Create a new face object from a given resource and typeface index*/
/*using an FSSpec to the font file.*/
/* */
/*
/*library:: A handle to the library resource.*/
/* */
/* */
/*spec :: FSSpec to the font file. */
/* */
/*face_index :: The index of the face within the resource.The*/
/*first face has index~0.*/
/*
/*************************************************************************/
/* */
/*
/*FT_New_Face_From_FSRef */
/* */
/*
/*Create a new face object from a given resource and typeface index*/
/*using an FSRef to the font file. */
/* */
/*
/*library:: A handle to the library resource.*/
/* */
/* */
/*spec :: FSRef to the font file.*/
/* */
/*face_index :: The index of the face within the resource.The*/
/*first face has index~0.*/
/*
/* */
FT_END_HEADER
#endif /* __FTMAC_H__ */
/* END */
Reviews
There are no reviews yet.