[SOLVED] CS代考计算机代写 /***************************************************************************/

30 $

File Name: CS代考计算机代写_/***************************************************************************/.zip
File Size: 951.42 KB

SKU: 4639808886 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


/***************************************************************************/
/* */
/*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 */
/* */
/* */<br />/*Mac Specific Interface */<br />/* */<br />/*<abstract> */ <br /> /*Only available on the Macintosh. */ <br /> /* */ <br /> /* <description>*/<br />/*The following definitions are only available if FreeType is*/<br />/*compiled on a Macintosh. */<br />/* */<br />/*************************************************************************/ </description></abstract>

/*************************************************************************/
/* */
/* */
/*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.*/
/* */
/* */
/*aface:: A handle to a new face object. */
/* */
/* */
/*FreeType error code.0~means success. */
/* */
/* */
/*This function can be used to create @FT_Face objects from fonts*/
/*that are installed in the system as follows. */
/* */
/*{*/
/*fond = GetResource( ‘FOND’, fontName );*/
/*error = FT_New_Face_From_FOND( library, fond, 0, &face );*/
/*}*/
/* */
FT_EXPORT( FT_Error )
FT_New_Face_From_FOND( FT_Librarylibrary,
Handlefond,
FT_Long face_index,
FT_Face*aface )
FT_DEPRECATED_ATTRIBUTE;

/*************************************************************************/
/* */
/* */
/*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). */
/* */
/* */
/*pathSpec :: FSSpec to the file.For passing to*/
/*@FT_New_Face_From_FSSpec.*/
/* */
/*face_index :: Index of the face.For passing to */
/*@FT_New_Face_From_FSSpec.*/
/* */
/* */
/*FreeType error code.0~means success. */
/* */
FT_EXPORT( FT_Error )
FT_GetFile_From_Mac_Name( const char*fontName,
FSSpec*pathSpec,
FT_Long* face_index )
FT_DEPRECATED_ATTRIBUTE;

/*************************************************************************/
/* */
/* */
/*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.*/
/* */
/* */
/*pathSpec :: FSSpec to the file. For passing to */
/*@FT_New_Face_From_FSSpec.*/
/* */
/*face_index :: Index of the face. For passing to*/
/*@FT_New_Face_From_FSSpec.*/
/* */
/* */
/*FreeType error code.0~means success. */
/* */
FT_EXPORT( FT_Error )
FT_GetFile_From_Mac_ATS_Name( const char*fontName,
FSSpec*pathSpec,
FT_Long* face_index )
FT_DEPRECATED_ATTRIBUTE;

/*************************************************************************/
/* */
/* */
/*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. */
/* */
/* */
/*path:: Buffer to store pathname of the file.For passing*/
/* to @FT_New_Face.The client must allocate this */
/* buffer before calling this function.*/
/* */
/*maxPathSize :: Lengths of the buffer `path’ that client allocated. */
/* */
/*face_index:: Index of the face.For passing to @FT_New_Face.*/
/* */
/* */
/*FreeType error code.0~means success. */
/* */
FT_EXPORT( FT_Error )
FT_GetFilePath_From_Mac_ATS_Name( const char*fontName,
UInt8* path,
UInt32 maxPathSize,
FT_Long* face_index )
FT_DEPRECATED_ATTRIBUTE;

/*************************************************************************/
/* */
/* */
/*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.*/
/* */
/*aface:: A handle to a new face object. */
/* */
/* */
/*FreeType error code.0~means success. */
/* */
/* */
/*@FT_New_Face_From_FSSpec is identical to @FT_New_Face except */
/*it accepts an FSSpec instead of a path.*/
/* */
FT_EXPORT( FT_Error )
FT_New_Face_From_FSSpec( FT_Library library,
const FSSpec*spec,
FT_Longface_index,
FT_Face *aface )
FT_DEPRECATED_ATTRIBUTE;

/*************************************************************************/
/* */
/* */
/*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.*/
/* */
/*aface:: A handle to a new face object. */
/* */
/* */
/*FreeType error code.0~means success. */
/* */
/* */
/*@FT_New_Face_From_FSRef is identical to @FT_New_Face except*/
/*it accepts an FSRef instead of a path. */
/* */
FT_EXPORT( FT_Error )
FT_New_Face_From_FSRef( FT_Librarylibrary,
const FSRef*ref,
FT_Long face_index,
FT_Face*aface )
FT_DEPRECATED_ATTRIBUTE;

/* */

FT_END_HEADER

#endif /* __FTMAC_H__ */

/* END */

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS代考计算机代写 /***************************************************************************/
30 $