Added copyright messages to all Makefiles.

Added documentation to FT_Get_Sfnt_* stuff (in ftnames.[ch])

minor other doc fixes
This commit is contained in:
Werner Lemberg 2000-10-17 03:38:43 +00:00
parent c1635d44f9
commit 47a5f41de6
47 changed files with 604 additions and 40 deletions

View File

@ -3,6 +3,16 @@
# #
# Copyright 1996-2000 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.
# Project names # Project names
# #
PROJECT := freetype PROJECT := freetype

View File

@ -1,7 +1,18 @@
# #
# configuration rules for a `normal' ANSI system # FreeType 2 configuration rules for a `normal' ANSI system
# #
# Copyright 1996-2000 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.
ifndef TOP ifndef TOP
TOP := . TOP := .
endif endif

View File

@ -2,6 +2,17 @@
# FreeType 2 configuration rules for a `normal' pseudo ANSI compiler/system # FreeType 2 configuration rules for a `normal' pseudo ANSI compiler/system
# #
# Copyright 1996-2000 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.
include $(TOP)/builds/ansi/ansi-def.mk include $(TOP)/builds/ansi/ansi-def.mk
include $(TOP)/builds/compiler/ansi-cc.mk include $(TOP)/builds/compiler/ansi-cc.mk

View File

@ -1,8 +1,18 @@
# Copyright 2000 David Turner
# #
# generic pseudo ANSI compiler # FreeType 2 generic pseudo ANSI compiler
# #
# Copyright 1996-2000 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.
# Compiler command line name # Compiler command line name
# #
CC := cc CC := cc

View File

@ -1,8 +1,18 @@
# Copyright 2000 David Turner
# #
# gcc-specific with NO OPTIMIZATIONS + DEBUGGING # FreeType 2 gcc-specific with NO OPTIMIZATIONS + DEBUGGING
# #
# Copyright 1996-2000 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.
# Compiler command line name # Compiler command line name
# #
CC := gcc CC := gcc

View File

@ -1,8 +1,18 @@
# Copyright 2000 David Turner
# #
# gcc-specific definitions # FreeType 2 gcc-specific definitions
# #
# Copyright 1996-2000 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.
# Compiler command line name # Compiler command line name
# #
CC := gcc CC := gcc

View File

@ -1,7 +1,18 @@
# #
# Visual Age C++ specific definitions # FreeType 2 Visual Age C++ specific definitions
# #
# Copyright 1996-2000 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.
# command line compiler name # command line compiler name
# #
CC := icc CC := icc

View File

@ -1,7 +1,18 @@
# #
# Visual C++ definitions # FreeType 2 Visual C++ definitions
# #
# Copyright 1996-2000 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.
# compiler command line name # compiler command line name
# #
CC := cl CC := cl

View File

@ -1,7 +1,18 @@
# #
# Win32-LCC specific definitions # FreeType 2 Win32-LCC specific definitions
# #
# Copyright 1996-2000 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.
# Command line name # Command line name
# #
CC := lcc CC := lcc

View File

@ -5,6 +5,17 @@
# and no installation # and no installation
# #
# Copyright 1996-2000 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.
include $(TOP)/builds/cygwin/cygwinddef.mk include $(TOP)/builds/cygwin/cygwinddef.mk
include $(TOP)/builds/compiler/gcc-dev.mk include $(TOP)/builds/compiler/gcc-dev.mk
include $(TOP)/builds/link_std.mk include $(TOP)/builds/link_std.mk

View File

@ -1,3 +1,18 @@
#
# FreeType 2 configuration file for CygWin host platform.
#
# Copyright 1996-2000 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.
include $(TOP)/builds/cygwin/cygwin-def.mk include $(TOP)/builds/cygwin/cygwin-def.mk
include $(TOP)/builds/cygwin/cygwin-cc.mk include $(TOP)/builds/cygwin/cygwin-cc.mk

View File

@ -1,8 +1,9 @@
# #
# FreeType 2 configuration rules templates for # FreeType 2 configuration rules templates for
# development under Unix with no configure (gcc only) # development under Unix-like platforms with no configure script (gcc only)
# #
# Copyright 1996-2000 by # Copyright 1996-2000 by
# David Turner, Robert Wilhelm, and Werner Lemberg. # David Turner, Robert Wilhelm, and Werner Lemberg.
# #
@ -12,6 +13,7 @@
# indicate that you have read the license and understand and accept it # indicate that you have read the license and understand and accept it
# fully. # fully.
ifndef TOP ifndef TOP
TOP := . TOP := .
endif endif

View File

@ -1,8 +1,18 @@
# #
# installation instructions for Unix systems # FreeType 2 installation instructions for Unix-like systems
# this file is FreeType-specific
# #
# Copyright 1996-2000 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.
# Unix installation and deinstallation targets. # Unix installation and deinstallation targets.
install: $(PROJECT_LIBRARY) install: $(PROJECT_LIBRARY)

View File

@ -1,8 +1,17 @@
# #
# Copyright 2000 David Turner <david.turner@freetype.org> # FreeType 2 DOS specific definitions
# #
# DOS specific definitions
# Copyright 1996-2000 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.
DELETE := del DELETE := del
HOSTSEP := $(strip \ ) HOSTSEP := $(strip \ )

View File

@ -2,6 +2,17 @@
# FreeType 2 configuration rules for the DJGPP compiler # FreeType 2 configuration rules for the DJGPP compiler
# #
# Copyright 1996-2000 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.
SEP := / SEP := /
CLEAN_LIBRARY := $(DELETE) $@ CLEAN_LIBRARY := $(DELETE) $@
include $(TOP)/builds/dos/dos-def.mk include $(TOP)/builds/dos/dos-def.mk

View File

@ -2,6 +2,17 @@
# Link instructions for Dos-like systems (Dos, Win32, OS/2) # Link instructions for Dos-like systems (Dos, Win32, OS/2)
# #
# Copyright 1996-2000 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.
ifdef BUILD_PROJECT ifdef BUILD_PROJECT
# Now include the main sub-makefile. It contains all the rules used to # Now include the main sub-makefile. It contains all the rules used to

View File

@ -2,6 +2,17 @@
# Link instructions for standard systems # Link instructions for standard systems
# #
# Copyright 1996-2000 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.
ifdef BUILD_PROJECT ifdef BUILD_PROJECT
# Now include the main sub-makefile. It contains all the rules used to # Now include the main sub-makefile. It contains all the rules used to

View File

@ -2,6 +2,7 @@
# FreeType 2 modules sub-Makefile # FreeType 2 modules sub-Makefile
# #
# Copyright 1996-2000 by # Copyright 1996-2000 by
# David Turner, Robert Wilhelm, and Werner Lemberg. # David Turner, Robert Wilhelm, and Werner Lemberg.
# #

View File

@ -1,8 +1,17 @@
# #
# Copyright 2000 David Turner <david.turner@freetype.org> # FreeType 2 OS/2 specific definitions
# #
# OS/2 specific definitions
# Copyright 1996-2000 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.
DELETE := del DELETE := del
HOSTSEP := $(strip \ ) HOSTSEP := $(strip \ )

View File

@ -2,7 +2,15 @@
# FreeType build system -- top-level sub-Makefile # FreeType build system -- top-level sub-Makefile
# #
# Copyright 2000 by David Turner
# Copyright 1996-2000 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 file is designed for GNU Make, do not use it with another Make tool! # This file is designed for GNU Make, do not use it with another Make tool!

View File

@ -1,8 +1,18 @@
# #
# installation instructions for Unix systems -- # FreeType 2 installation instructions for Unix systems
# this file is FreeType-specific
# #
# Copyright 1996-2000 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.
# Unix installation and deinstallation targets. # Unix installation and deinstallation targets.
install: $(PROJECT_LIBRARY) install: $(PROJECT_LIBRARY)
$(MKINSTALLDIRS) $(libdir) \ $(MKINSTALLDIRS) $(libdir) \

View File

@ -2,9 +2,20 @@
# FreeType 2 Configuration rules for Unix + GCC # FreeType 2 Configuration rules for Unix + GCC
# #
# Development version without optimizations & libtool # Development version without optimizations & libtool
# and no installation.. # and no installation.
# #
# Copyright 1996-2000 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.
include $(TOP)/builds/unix/unixddef.mk include $(TOP)/builds/unix/unixddef.mk
include $(TOP)/builds/compiler/gcc-dev.mk include $(TOP)/builds/compiler/gcc-dev.mk
include $(TOP)/builds/link_std.mk include $(TOP)/builds/link_std.mk

View File

@ -1,3 +1,18 @@
#
# FreeType 2 configuration rules for UNIX platforms
#
# Copyright 1996-2000 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.
include $(TOP)/builds/unix/unix-def.mk include $(TOP)/builds/unix/unix-def.mk
include $(TOP)/builds/unix/unix-cc.mk include $(TOP)/builds/unix/unix-cc.mk

View File

@ -3,6 +3,7 @@
# development under Unix with no configure script (gcc only) # development under Unix with no configure script (gcc only)
# #
# Copyright 1996-2000 by # Copyright 1996-2000 by
# David Turner, Robert Wilhelm, and Werner Lemberg. # David Turner, Robert Wilhelm, and Werner Lemberg.
# #

View File

@ -1,5 +1,5 @@
# #
# FreeType 2 Configuration rules for Win32 + GCC # FreeType 2 configuration rules for Win32 + GCC
# #
# Development version without optimizations. # Development version without optimizations.
# #
@ -13,7 +13,8 @@
# LICENSE.TXT. By continuing to use, modify, or distribute this file you # LICENSE.TXT. By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it # indicate that you have read the license and understand and accept it
# fully. # fully.
#
# NOTE: This version requires that GNU Make is invoked from the Windows # NOTE: This version requires that GNU Make is invoked from the Windows
# Shell (_not_ Cygwin BASH)! # Shell (_not_ Cygwin BASH)!
# #

View File

@ -1,7 +1,18 @@
# #
# FreeType 2 Configuration rules for Win32 + GCC # FreeType 2 configuration rules for Win32 + GCC
# #
# Copyright 1996-2000 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.
# the separator must be set before including win32-def # the separator must be set before including win32-def
# as it defaults to "\" on Win32 # as it defaults to "\" on Win32
SEP := / SEP := /

View File

@ -1,7 +1,18 @@
# #
# FreeType 2 Configuration rules for Win32 + IBM Visual Age C++ # FreeType 2 configuration rules for Win32 + IBM Visual Age C++
# #
# Copyright 1996-2000 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.
include $(TOP)/builds/win32/win32-def.mk include $(TOP)/builds/win32/win32-def.mk
include $(TOP)/builds/compiler/visualage.mk include $(TOP)/builds/compiler/visualage.mk

View File

@ -1,7 +1,18 @@
# #
# Configuration rules for Win32 + LCC # FreeType 2 configuration rules for Win32 + LCC
# #
# Copyright 1996-2000 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.
SEP := / SEP := /
include $(TOP)/builds/win32/win32-def.mk include $(TOP)/builds/win32/win32-def.mk
include $(TOP)/builds/compiler/win-lcc.mk include $(TOP)/builds/compiler/win-lcc.mk

View File

@ -1,7 +1,18 @@
# #
# Visual C++ on Win32 # FreeType 2 Visual C++ on Win32
# #
# Copyright 1996-2000 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.
SEP := / SEP := /
include $(TOP)/builds/win32/win32-def.mk include $(TOP)/builds/win32/win32-def.mk
include $(TOP)/builds/compiler/visualc.mk include $(TOP)/builds/compiler/visualc.mk

View File

@ -1,8 +1,18 @@
# Copyright 2000 David Turner <david.turner@freetype.org>
# #
# Win32 specific definitions # FreeType 2 Win32 specific definitions
# #
# Copyright 1996-2000 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.
DELETE := del DELETE := del
HOSTSEP := $(strip \ ) HOSTSEP := $(strip \ )
BUILD := $(TOP)$(SEP)config$(SEP)win32 BUILD := $(TOP)$(SEP)config$(SEP)win32

View File

@ -3,7 +3,7 @@
/* ftnames.h */ /* ftnames.h */
/* */ /* */
/* Simple interface to access SFNT name tables (which are used */ /* Simple interface to access SFNT name tables (which are used */
/* to hold font names, copyright info, notices, etc.). */ /* to hold font names, copyright info, notices, etc.) (specification). */
/* */ /* */
/* This is _not_ used to retrieve glyph names! */ /* This is _not_ used to retrieve glyph names! */
/* */ /* */
@ -31,6 +31,34 @@
#endif #endif
/*************************************************************************/
/* */
/* <Struct> */
/* FT_SfntName */
/* */
/* <Description> */
/* A structure used to model an SFNT `name' table entry. */
/* */
/* <Fields> */
/* platform_id :: The platform ID for `string'. */
/* */
/* encoding_id :: The encoding ID for `string'. */
/* */
/* language_id :: The language ID for `string'. */
/* */
/* name_id :: An identifier for `string'. */
/* */
/* string :: The `name' string. Note that this string is in */
/* Pascal convention, i.e., the string hasn't a final */
/* null byte. */
/* */
/* string_len :: The length of `string' in bytes. */
/* */
/* <Note> */
/* Possible values for `platform_id', `encoding_id', `language_id', */
/* and `name_id' are given in the file `ttnameid.h'. For details */
/* please refer to the TrueType or OpenType specification. */
/* */
typedef struct FT_SfntName_ typedef struct FT_SfntName_
{ {
FT_UShort platform_id; FT_UShort platform_id;
@ -38,14 +66,56 @@
FT_UShort language_id; FT_UShort language_id;
FT_UShort name_id; FT_UShort name_id;
FT_Byte* string; FT_Byte* string; /* this string is *not* null-terminated! */
FT_UInt string_len; /* in bytes */ FT_UInt string_len; /* in bytes */
} FT_SfntName; } FT_SfntName;
/*************************************************************************/
/* */
/* <Function> */
/* FT_Get_Sfnt_Name_Count */
/* */
/* <Description> */
/* Retrieves the number of name strings in the SFNT `name' table. */
/* */
/* <Input> */
/* face :: A handle to the source face. */
/* */
/* <Return> */
/* The number of strings in the `name' table. */
/* */
FT_EXPORT_DEF( FT_UInt ) FT_Get_Sfnt_Name_Count( FT_Face face ); FT_EXPORT_DEF( FT_UInt ) FT_Get_Sfnt_Name_Count( FT_Face face );
/*************************************************************************/
/* */
/* <Function> */
/* FT_Get_Sfnt_Name */
/* */
/* <Description> */
/* Retrieves a string of the SFNT `name' table for a given index. */
/* */
/* <Input> */
/* face :: A handle to the source face. */
/* */
/* index :: The index of the `name' string. */
/* */
/* <Output> */
/* aname :: The indexed FT_SfntName structure. */
/* */
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
/* <Note> */
/* The `string' array returned in the `aname' structure is not */
/* null-terminated. */
/* */
/* Use FT_Get_Sfnt_Name_Count() to get the total number of available */
/* `name' table entries, then do a loop until you get the right */
/* platform, encoding, and name ID. */
/* */
FT_EXPORT_DEF( FT_Error ) FT_Get_Sfnt_Name( FT_Face face, FT_EXPORT_DEF( FT_Error ) FT_Get_Sfnt_Name( FT_Face face,
FT_UInt index, FT_UInt index,
FT_SfntName* aname ); FT_SfntName* aname );

View File

@ -174,10 +174,10 @@
/* */ /* */
/* This doesn't change the current renderer for other formats. */ /* This doesn't change the current renderer for other formats. */
/* */ /* */
FT_EXPORT_DEF(FT_Error) FT_Set_Renderer( FT_Library library, FT_EXPORT_DEF( FT_Error ) FT_Set_Renderer( FT_Library library,
FT_Renderer renderer, FT_Renderer renderer,
FT_UInt num_params, FT_UInt num_params,
FT_Parameter* parameters ); FT_Parameter* parameters );
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* ttmakeid.h */ /* ttnameid.h */
/* */ /* */
/* TrueType name ID definitions (specification only). */ /* TrueType name ID definitions (specification only). */
/* */ /* */

View File

@ -1,3 +1,21 @@
#
# FreeType 2 auto-hinter module definition
#
# Copyright 2000 Catharon Productions Inc.
# Author: David Turner
#
# This file is part of the Catharon Typography Project and shall only
# be used, modified, and distributed under the terms of the Catharon
# Open Source License that should come with this file under the name
# `CatharonLicense.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 that this license is compatible with the FreeType license.
make_module_list: add_autohint_module make_module_list: add_autohint_module
add_autohint_module: add_autohint_module:

View File

@ -3,7 +3,7 @@
/* ftnames.c */ /* ftnames.c */
/* */ /* */
/* Simple interface to access SFNT name tables (which are used */ /* Simple interface to access SFNT name tables (which are used */
/* to hold font names, copyright info, notices, etc.). */ /* to hold font names, copyright info, notices, etc.) (body). */
/* */ /* */
/* This is _not_ used to retrieve glyph names! */ /* This is _not_ used to retrieve glyph names! */
/* */ /* */
@ -26,12 +26,53 @@
#ifdef TT_CONFIG_OPTION_SFNT_NAMES #ifdef TT_CONFIG_OPTION_SFNT_NAMES
/*************************************************************************/
/* */
/* <Function> */
/* FT_Get_Sfnt_Name_Count */
/* */
/* <Description> */
/* Retrieves the number of name strings in the SFNT `name' table. */
/* */
/* <Input> */
/* face :: A handle to the source face. */
/* */
/* <Return> */
/* The number of strings in the `name' table. */
/* */
FT_EXPORT_FUNC( FT_UInt ) FT_Get_Sfnt_Name_Count( FT_Face face ) FT_EXPORT_FUNC( FT_UInt ) FT_Get_Sfnt_Name_Count( FT_Face face )
{ {
return face && ( FT_IS_SFNT( face ) ? ((TT_Face)face)->num_names : 0 ); return face && ( FT_IS_SFNT( face ) ? ((TT_Face)face)->num_names : 0 );
} }
/*************************************************************************/
/* */
/* <Function> */
/* FT_Get_Sfnt_Name */
/* */
/* <Description> */
/* Retrieves a string of the SFNT `name' table for a given index. */
/* */
/* <Input> */
/* face :: A handle to the source face. */
/* */
/* index :: The index of the `name' string. */
/* */
/* <Output> */
/* aname :: The indexed FT_SfntName structure. */
/* */
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
/* <Note> */
/* The `string' array returned in the `aname' structure is not */
/* null-terminated. */
/* */
/* Use FT_Get_Sfnt_Name_Count() to get the total number of available */
/* `name' table entries, then do a loop until you get the right */
/* platform, encoding, and name ID. */
/* */
FT_EXPORT_FUNC( FT_Error ) FT_Get_Sfnt_Name( FT_Face face, FT_EXPORT_FUNC( FT_Error ) FT_Get_Sfnt_Name( FT_Face face,
FT_UInt index, FT_UInt index,
FT_SfntName* aname ) FT_SfntName* aname )

View File

@ -1,3 +1,18 @@
#
# FreeType 2 CFF module definition
#
# Copyright 1996-2000 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.
make_module_list: add_cff_driver make_module_list: add_cff_driver
add_cff_driver: add_cff_driver:

View File

@ -1,3 +1,18 @@
#
# FreeType 2 CID module definition
#
# Copyright 1996-2000 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.
make_module_list: add_type1cid_driver make_module_list: add_type1cid_driver
add_type1cid_driver: add_type1cid_driver:

View File

@ -1,3 +1,18 @@
#
# FreeType 2 PSaux module definition
#
# Copyright 1996-2000 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.
make_module_list: add_psaux_module make_module_list: add_psaux_module
add_psaux_module: add_psaux_module:

View File

@ -1,5 +1,5 @@
# #
# FreeType 2 PSAUX driver configuration rules # FreeType 2 PSaux driver configuration rules
# #

View File

@ -1,3 +1,18 @@
#
# FreeType 2 PSnames module definition
#
# Copyright 1996-2000 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.
make_module_list: add_psnames_module make_module_list: add_psnames_module
add_psnames_module: add_psnames_module:

View File

@ -1,3 +1,18 @@
#
# FreeType 2 renderer module definition
#
# Copyright 1996-2000 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.
make_module_list: add_raster1_module make_module_list: add_raster1_module
add_raster1_module: add_raster1_module:

View File

@ -1,3 +1,18 @@
#
# FreeType 2 SFNT module definition
#
# Copyright 1996-2000 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.
make_module_list: add_sfnt_module make_module_list: add_sfnt_module
add_sfnt_module: add_sfnt_module:

View File

@ -1,3 +1,18 @@
#
# FreeType 2 smooth renderer module definition
#
# Copyright 1996-2000 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.
make_module_list: add_smooth_renderer make_module_list: add_smooth_renderer
add_smooth_renderer: add_smooth_renderer:

View File

@ -1,5 +1,5 @@
# #
# FreeType 2 renderer module build rules # FreeType 2 smooth renderer module build rules
# #

View File

@ -1,3 +1,18 @@
#
# FreeType 2 TrueType module definition
#
# Copyright 1996-2000 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.
make_module_list: add_truetype_driver make_module_list: add_truetype_driver
add_truetype_driver: add_truetype_driver:

View File

@ -1,3 +1,18 @@
#
# FreeType 2 Type1z module definition
#
# Copyright 1996-2000 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.
make_module_list: add_type1_driver make_module_list: add_type1_driver
add_type1_driver: add_type1_driver:

View File

@ -1,3 +1,18 @@
#
# FreeType 2 Windows FNT/FON module definition
#
# Copyright 1996-2000 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.
make_module_list: add_windows_driver make_module_list: add_windows_driver
add_windows_driver: add_windows_driver: