Formatting.
This commit is contained in:
parent
ba3e230429
commit
cff15b07f3
20
ChangeLog
20
ChangeLog
|
@ -2,19 +2,21 @@
|
|||
|
||||
* src/base/ftbase.h: New file to declare the private utility
|
||||
functions shared by the sources of base modules. Currently,
|
||||
`ft_lookup_PS_in_sfnt' and `open_face_from_buffer' are declared
|
||||
to share between ftobjs.c and ftmac.c.
|
||||
`ft_lookup_PS_in_sfnt' and `open_face_from_buffer' are declared to
|
||||
share between ftobjs.c and ftmac.c.
|
||||
|
||||
* src/base/rule.mk: Add ftbase.h.
|
||||
|
||||
* src/base/ftobjs.c: Include ftbase.h.
|
||||
(memory_stream_close): Build on any platform when old MacOS
|
||||
font support is enabled.
|
||||
(memory_stream_close): Build on any platform when old MacOS font
|
||||
support is enabled.
|
||||
(new_memory_stream): Ditto.
|
||||
(open_face_from_buffer): Build on any platform when old MacOS
|
||||
font support is enabled. The counting of the face in a font
|
||||
file is slightly different between Carbon-dependent parser and
|
||||
Carbon-free parser. They are merged with the platform-specific
|
||||
conditional.
|
||||
(open_face_from_buffer): Build on any platform when old MacOS font
|
||||
support is enabled. The counting of the face in a font file is
|
||||
slightly different between Carbon-dependent parser and Carbon-free
|
||||
parser. They are merged with the platform-specific conditional.
|
||||
(ft_lookup_PS_in_sfnt): Ditto.
|
||||
|
||||
* src/base/ftmac.c: Include ftbase.h.
|
||||
(memory_stream_close): Removed.
|
||||
(new_memory_stream): Ditto.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* The FreeType private functions used in base module (specification). */
|
||||
/* */
|
||||
/* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2008 by */
|
||||
/* Copyright 2008 by */
|
||||
/* David Turner, Robert Wilhelm, Werner Lemberg, and suzuki toshiya. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -35,8 +35,9 @@ FT_BEGIN_HEADER
|
|||
FT_ULong* length,
|
||||
FT_Bool* is_sfnt_cid );
|
||||
|
||||
|
||||
/* Create a new FT_Face given a buffer and a driver name. */
|
||||
/* from ftmac.c */
|
||||
/* From ftmac.c. */
|
||||
FT_LOCAL_DEF( FT_Error )
|
||||
open_face_from_buffer( FT_Library library,
|
||||
FT_Byte* base,
|
||||
|
|
|
@ -1198,9 +1198,9 @@
|
|||
/* we don't really have access to it. */
|
||||
|
||||
|
||||
/* Finalizer for a memory stream; gets called by FT_Done_Face().
|
||||
It frees the memory it uses. */
|
||||
/* from ftmac.c */
|
||||
/* Finalizer for a memory stream; gets called by FT_Done_Face(). */
|
||||
/* It frees the memory it uses. */
|
||||
/* From ftmac.c. */
|
||||
static void
|
||||
memory_stream_close( FT_Stream stream )
|
||||
{
|
||||
|
@ -1216,7 +1216,7 @@
|
|||
|
||||
|
||||
/* Create a new memory stream from a buffer and a size. */
|
||||
/* from ftmac.c */
|
||||
/* From ftmac.c. */
|
||||
static FT_Error
|
||||
new_memory_stream( FT_Library library,
|
||||
FT_Byte* base,
|
||||
|
@ -1370,6 +1370,7 @@
|
|||
|
||||
|
||||
#if !defined( FT_MACINTOSH ) || defined( DARWIN_NO_CARBON )
|
||||
|
||||
/* The resource header says we've got resource_cnt `POST' (type1) */
|
||||
/* resources in this file. They all need to be coalesced into */
|
||||
/* one lump which gets passed on to the type1 driver. */
|
||||
|
|
Loading…
Reference in New Issue