< prev index next >
src/java.desktop/share/native/libfreetype/src/sfnt/ttpost.c
Print this page
*** 1,30 ****
! /***************************************************************************/
! /* */
! /* ttpost.c */
! /* */
! /* PostScript name table processing for TrueType and OpenType fonts */
! /* (body). */
! /* */
! /* Copyright 1996-2018 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 post table is not completely loaded by the core engine. This */
! /* file loads the missing PS glyph names and implements an API to access */
! /* them. */
! /* */
! /*************************************************************************/
#include <ft2build.h>
#include FT_INTERNAL_DEBUG_H
#include FT_INTERNAL_STREAM_H
--- 1,30 ----
! /****************************************************************************
! *
! * ttpost.c
! *
! * PostScript name table processing for TrueType and OpenType fonts
! * (body).
! *
! * Copyright (C) 1996-2019 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 post table is not completely loaded by the core engine. This
! * file loads the missing PS glyph names and implements an API to access
! * them.
! *
! */
#include <ft2build.h>
#include FT_INTERNAL_DEBUG_H
#include FT_INTERNAL_STREAM_H
*** 36,56 ****
#include "ttpost.h"
#include "sferrors.h"
! /*************************************************************************/
! /* */
! /* The macro FT_COMPONENT is used in trace mode. It is an implicit */
! /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */
! /* messages during execution. */
! /* */
#undef FT_COMPONENT
! #define FT_COMPONENT trace_ttpost
! /* If this configuration macro is defined, we rely on the `PSNames' */
/* module to grab the glyph names. */
#ifdef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
--- 36,56 ----
#include "ttpost.h"
#include "sferrors.h"
! /**************************************************************************
! *
! * The macro FT_COMPONENT is used in trace mode. It is an implicit
! * parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
! * messages during execution.
! */
#undef FT_COMPONENT
! #define FT_COMPONENT ttpost
! /* If this configuration macro is defined, we rely on the `psnames' */
/* module to grab the glyph names. */
#ifdef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
*** 60,72 ****
#else /* FT_CONFIG_OPTION_POSTSCRIPT_NAMES */
! /* Otherwise, we ignore the `PSNames' module, and provide our own */
/* table of Mac names. Thus, it is possible to build a version of */
! /* FreeType without the Type 1 driver & PSNames module. */
#define MAC_NAME( x ) (FT_String*)tt_post_default_names[x]
/* the 258 default Mac PS glyph names; see file `tools/glnames.py' */
--- 60,72 ----
#else /* FT_CONFIG_OPTION_POSTSCRIPT_NAMES */
! /* Otherwise, we ignore the `psnames' module, and provide our own */
/* table of Mac names. Thus, it is possible to build a version of */
! /* FreeType without the Type 1 driver & psnames module. */
#define MAC_NAME( x ) (FT_String*)tt_post_default_names[x]
/* the 258 default Mac PS glyph names; see file `tools/glnames.py' */
*** 457,488 ****
}
names->loaded = 0;
}
! /*************************************************************************/
! /* */
! /* <Function> */
! /* tt_face_get_ps_name */
! /* */
! /* <Description> */
! /* Get the PostScript glyph name of a glyph. */
! /* */
! /* <Input> */
! /* face :: A handle to the parent face. */
! /* */
! /* idx :: The glyph index. */
! /* */
! /* <InOut> */
! /* PSname :: The address of a string pointer. Undefined in case of */
! /* error, otherwise it is a pointer to the glyph name. */
! /* */
! /* You must not modify the returned string! */
! /* */
! /* <Output> */
! /* FreeType error code. 0 means success. */
! /* */
FT_LOCAL_DEF( FT_Error )
tt_face_get_ps_name( TT_Face face,
FT_UInt idx,
FT_String** PSname )
{
--- 457,491 ----
}
names->loaded = 0;
}
! /**************************************************************************
! *
! * @Function:
! * tt_face_get_ps_name
! *
! * @Description:
! * Get the PostScript glyph name of a glyph.
! *
! * @Input:
! * face ::
! * A handle to the parent face.
! *
! * idx ::
! * The glyph index.
! *
! * @InOut:
! * PSname ::
! * The address of a string pointer. Undefined in case of
! * error, otherwise it is a pointer to the glyph name.
! *
! * You must not modify the returned string!
! *
! * @Output:
! * FreeType error code. 0 means success.
! */
FT_LOCAL_DEF( FT_Error )
tt_face_get_ps_name( TT_Face face,
FT_UInt idx,
FT_String** PSname )
{
< prev index next >