< prev index next >
src/java.desktop/share/native/libfreetype/src/truetype/ttpload.c
Print this page
*** 1,21 ****
! /***************************************************************************/
! /* */
! /* ttpload.c */
! /* */
! /* TrueType-specific tables loader (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. */
! /* */
! /***************************************************************************/
#include <ft2build.h>
#include FT_INTERNAL_DEBUG_H
#include FT_INTERNAL_OBJECTS_H
--- 1,21 ----
! /****************************************************************************
! *
! * ttpload.c
! *
! * TrueType-specific tables loader (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.
! *
! */
#include <ft2build.h>
#include FT_INTERNAL_DEBUG_H
#include FT_INTERNAL_OBJECTS_H
*** 29,65 ****
#endif
#include "tterrors.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_ttpload
! /*************************************************************************/
! /* */
! /* <Function> */
! /* tt_face_load_loca */
! /* */
! /* <Description> */
! /* Load the locations table. */
! /* */
! /* <InOut> */
! /* face :: A handle to the target face object. */
! /* */
! /* <Input> */
! /* stream :: The input stream. */
! /* */
! /* <Return> */
! /* FreeType error code. 0 means success. */
! /* */
FT_LOCAL_DEF( FT_Error )
tt_face_load_loca( TT_Face face,
FT_Stream stream )
{
FT_Error error;
--- 29,67 ----
#endif
#include "tterrors.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 ttpload
! /**************************************************************************
! *
! * @Function:
! * tt_face_load_loca
! *
! * @Description:
! * Load the locations table.
! *
! * @InOut:
! * face ::
! * A handle to the target face object.
! *
! * @Input:
! * stream ::
! * The input stream.
! *
! * @Return:
! * FreeType error code. 0 means success.
! */
FT_LOCAL_DEF( FT_Error )
tt_face_load_loca( TT_Face face,
FT_Stream stream )
{
FT_Error error;
*** 295,321 ****
face->num_locations = 0;
}
! /*************************************************************************/
! /* */
! /* <Function> */
! /* tt_face_load_cvt */
! /* */
! /* <Description> */
! /* Load the control value table into a face object. */
! /* */
! /* <InOut> */
! /* face :: A handle to the target face object. */
! /* */
! /* <Input> */
! /* stream :: A handle to the input stream. */
! /* */
! /* <Return> */
! /* FreeType error code. 0 means success. */
! /* */
FT_LOCAL_DEF( FT_Error )
tt_face_load_cvt( TT_Face face,
FT_Stream stream )
{
#ifdef TT_USE_BYTECODE_INTERPRETER
--- 297,325 ----
face->num_locations = 0;
}
! /**************************************************************************
! *
! * @Function:
! * tt_face_load_cvt
! *
! * @Description:
! * Load the control value table into a face object.
! *
! * @InOut:
! * face ::
! * A handle to the target face object.
! *
! * @Input:
! * stream ::
! * A handle to the input stream.
! *
! * @Return:
! * FreeType error code. 0 means success.
! */
FT_LOCAL_DEF( FT_Error )
tt_face_load_cvt( TT_Face face,
FT_Stream stream )
{
#ifdef TT_USE_BYTECODE_INTERPRETER
*** 376,402 ****
#endif
}
! /*************************************************************************/
! /* */
! /* <Function> */
! /* tt_face_load_fpgm */
! /* */
! /* <Description> */
! /* Load the font program. */
! /* */
! /* <InOut> */
! /* face :: A handle to the target face object. */
! /* */
! /* <Input> */
! /* stream :: A handle to the input stream. */
! /* */
! /* <Return> */
! /* FreeType error code. 0 means success. */
! /* */
FT_LOCAL_DEF( FT_Error )
tt_face_load_fpgm( TT_Face face,
FT_Stream stream )
{
#ifdef TT_USE_BYTECODE_INTERPRETER
--- 380,408 ----
#endif
}
! /**************************************************************************
! *
! * @Function:
! * tt_face_load_fpgm
! *
! * @Description:
! * Load the font program.
! *
! * @InOut:
! * face ::
! * A handle to the target face object.
! *
! * @Input:
! * stream ::
! * A handle to the input stream.
! *
! * @Return:
! * FreeType error code. 0 means success.
! */
FT_LOCAL_DEF( FT_Error )
tt_face_load_fpgm( TT_Face face,
FT_Stream stream )
{
#ifdef TT_USE_BYTECODE_INTERPRETER
*** 438,464 ****
#endif
}
! /*************************************************************************/
! /* */
! /* <Function> */
! /* tt_face_load_prep */
! /* */
! /* <Description> */
! /* Load the cvt program. */
! /* */
! /* <InOut> */
! /* face :: A handle to the target face object. */
! /* */
! /* <Input> */
! /* stream :: A handle to the input stream. */
! /* */
! /* <Return> */
! /* FreeType error code. 0 means success. */
! /* */
FT_LOCAL_DEF( FT_Error )
tt_face_load_prep( TT_Face face,
FT_Stream stream )
{
#ifdef TT_USE_BYTECODE_INTERPRETER
--- 444,472 ----
#endif
}
! /**************************************************************************
! *
! * @Function:
! * tt_face_load_prep
! *
! * @Description:
! * Load the cvt program.
! *
! * @InOut:
! * face ::
! * A handle to the target face object.
! *
! * @Input:
! * stream ::
! * A handle to the input stream.
! *
! * @Return:
! * FreeType error code. 0 means success.
! */
FT_LOCAL_DEF( FT_Error )
tt_face_load_prep( TT_Face face,
FT_Stream stream )
{
#ifdef TT_USE_BYTECODE_INTERPRETER
*** 499,524 ****
#endif
}
! /*************************************************************************/
! /* */
! /* <Function> */
! /* tt_face_load_hdmx */
! /* */
! /* <Description> */
! /* Load the `hdmx' table into the face object. */
! /* */
! /* <Input> */
! /* face :: A handle to the target face object. */
! /* */
! /* stream :: A handle to the input stream. */
! /* */
! /* <Return> */
! /* FreeType error code. 0 means success. */
! /* */
FT_LOCAL_DEF( FT_Error )
tt_face_load_hdmx( TT_Face face,
FT_Stream stream )
{
--- 507,534 ----
#endif
}
! /**************************************************************************
! *
! * @Function:
! * tt_face_load_hdmx
! *
! * @Description:
! * Load the `hdmx' table into the face object.
! *
! * @Input:
! * face ::
! * A handle to the target face object.
! *
! * stream ::
! * A handle to the input stream.
! *
! * @Return:
! * FreeType error code. 0 means success.
! */
FT_LOCAL_DEF( FT_Error )
tt_face_load_hdmx( TT_Face face,
FT_Stream stream )
{
*** 608,622 ****
FT_FREE( face->hdmx_record_sizes );
FT_FRAME_RELEASE( face->hdmx_table );
}
! /*************************************************************************/
! /* */
! /* Return the advance width table for a given pixel size if it is found */
! /* in the font's `hdmx' table (if any). */
! /* */
FT_LOCAL_DEF( FT_Byte* )
tt_face_get_device_metrics( TT_Face face,
FT_UInt ppem,
FT_UInt gindex )
{
--- 618,632 ----
FT_FREE( face->hdmx_record_sizes );
FT_FRAME_RELEASE( face->hdmx_table );
}
! /**************************************************************************
! *
! * Return the advance width table for a given pixel size if it is found
! * in the font's `hdmx' table (if any).
! */
FT_LOCAL_DEF( FT_Byte* )
tt_face_get_device_metrics( TT_Face face,
FT_UInt ppem,
FT_UInt gindex )
{
< prev index next >