From 6087a930449344934d7120814c8041b57e67cab6 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Fri, 28 Jul 2000 01:08:32 +0000 Subject: [PATCH] Header for one Mac-specific additional API call. --- include/freetype/ftmac.h | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 include/freetype/ftmac.h diff --git a/include/freetype/ftmac.h b/include/freetype/ftmac.h new file mode 100644 index 000000000..edb34910c --- /dev/null +++ b/include/freetype/ftmac.h @@ -0,0 +1,64 @@ +/***************************************************************************/ +/* */ +/* ftmac.h */ +/* */ +/* Additional Mac-specific API. */ +/* */ +/* Copyright 1996-2000 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 and after the + Mac-specific header (or any other Mac header that includes + ); we use Handle type. */ + + +#ifndef FT_MAC_H +#define FT_MAC_H + + + /*************************************************************************/ + /* */ + /* */ + /* FT_New_Face_From_FOND */ + /* */ + /* */ + /* Creates a new face object from an FOND resource. */ + /* */ + /* */ + /* library :: A handle to the library resource. */ + /* */ + /* */ + /* fond :: An 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 abjects from fonts */ + /* that are installed in the system like so: */ + /* fond = GetResource( 'FOND', fontName ); */ + /* error = FT_New_Face_From_FOND( library, fond, 0, &face ); */ + /* */ + FT_EXPORT_FUNC( FT_Error ) FT_New_Face_From_FOND( + FT_Library library, + Handle fond, + FT_Long face_index, + FT_Face* aface ); + + +#endif /* FT_MAC_H */