Fixed a bug in `glnames.py' that prevented it from generating

correct glyph names tables.  This resulted in the unavailability of
certain glyphs like `Cacute', `cacute' and `lslash' in Unicode
charmaps, even if these were present in the font (causing problems
for Polish users).

* src/tools/glnames.py (mac_standard_names): Fixed.
(t1_standard_strings): Some fixes and renamed to ...
(sid_standard_names): This.
(t1_expert_encoding): Fixed.
(the_adobe_glyph_list): Renamed to ...
(adobe_glyph_names): This.
(the_adobe_glyphs): Renamed to ...
(adobe_glyph_values): This.
(dump_mac_indices, dump_glyph_list, dump_unicode_values, main):
Updated.
* src/psnames/pstables.h: Regenerated.
* src/psnames/psmodule.c (PS_Unicode_Value): Fix offset.
Fix return value.
Use `sid_standard_table' and `ps_names_to_unicode' instead of
`t1_standard_glyphs' and `names_to_unicode'.
(PS_Macintosh_Name): Use `ps_glyph_names' instead of
`standard_glyph_names'.
(PS_Standard_Strings): Use `sid_standard_names' instead of
`t1_standard_glyphs'.
* doc/BUGS, doc/TODO: New documents.
* src/cache/ftlru.c (FT_Lru_Lookup_Node): Fixed a bug that prevented
correct LRU behaviour.
setjmp() and longjmp() are now used for rollback (i.e. when memory
pool overflow occurs).
Function names are now all uniformly prefixed with `gray_'.

* src/smooth/ftgrays.c: Include <setjmp.h>.
(ErrRaster_MemoryOverflow): New macro.
(TArea): New type to store area values in each cell (using `int' was
too small on 16-bit systems).  <limits.h> is included to properly
get the needed data type.
(TCell, TRaster): Use it.
(TRaster): New element `jump_buffer'.
(gray_compute_cbox): Use `RAS_ARG' as the only parameter and get
`outline' from it.
(gray_record_cell): Use longjmp().
(gray_set_cell): Use gray_record_cell() for error handling.
(gray_render_line, gray_render_conic, gray_render_cubic): Simplify.
(gray_convert_glyph_inner): New function, using setjmp().
(gray_convert_glyph): Use it.


Provide a public API to manage multiple size objects for a given
FT_Face in the new header file `ftsizes.h'.

* include/freetype/ftsizes.h: New header file,
* include/freetype/internal/ftobjs.h: Use it.
Remove declarations of FT_New_Size and FT_Done_Size (moved to
ftsizes.h).
* include/freetype/config/ftheader.h (FT_SIZES_H): New macro.
* src/base/ftobjs.c (FT_Activate_Size): New function.
* src/cache/ftcmanag.c: Include ftsizes.h.
(ftc_manager_init_size, ftc_manager_flush_size): Use
FT_Activate_Size.
This commit is contained in:
Werner Lemberg 2001-10-10 19:56:42 +00:00
parent 05e3ed907c
commit 6a36a6db05
39 changed files with 244 additions and 20397 deletions

View File

@ -1,28 +1,74 @@
2001-10-08 David Turner <david@freetype.org>
* src/psnames/pstables.h, src/psnames/psmodule.c, src/tools/glnames.py:
fixed a bug in 'glnames.py' that prevented it from generating correct
glyph names table. This resulted in the unavailability of certain glyphs
like "Cacute", "cacute" and "lslash" in Unicode charmaps, even if these
were present in the font (causing problems for Polish users).
Fixed a bug in `glnames.py' that prevented it from generating
correct glyph names tables. This resulted in the unavailability of
certain glyphs like `Cacute', `cacute' and `lslash' in Unicode
charmaps, even if these were present in the font (causing problems
for Polish users).
* src/tools/glnames.py (mac_standard_names): Fixed.
(t1_standard_strings): Some fixes and renamed to ...
(sid_standard_names): This.
(t1_expert_encoding): Fixed.
(the_adobe_glyph_list): Renamed to ...
(adobe_glyph_names): This.
(the_adobe_glyphs): Renamed to ...
(adobe_glyph_values): This.
(dump_mac_indices, dump_glyph_list, dump_unicode_values, main):
Updated.
* src/psnames/pstables.h: Regenerated.
* src/psnames/psmodule.c (PS_Unicode_Value): Fix offset.
Fix return value.
Use `sid_standard_table' and `ps_names_to_unicode' instead of
`t1_standard_glyphs' and `names_to_unicode'.
(PS_Macintosh_Name): Use `ps_glyph_names' instead of
`standard_glyph_names'.
(PS_Standard_Strings): Use `sid_standard_names' instead of
`t1_standard_glyphs'.
2001-10-07 Richard Barber <rich@solutionuk.com>
* doc/BUGS, doc/TODO: New documents.
* src/cache/ftlru.c (FT_Lru_Lookup_Node): fixed a bug that prevented
correct LRU behaviour
2001-10-07 Richard Barber <rich@solutionuk.com>
* src/cache/ftlru.c (FT_Lru_Lookup_Node): Fixed a bug that prevented
correct LRU behaviour.
2001-10-07 David Turner <david@freetype.org>
* src/smooth/ftgrays: "setjmp/longjmp" is now used for rollback (i.e.
when memory pool overflow occurs), function names are now all prefixed
with "gray_", and a new type (TArea) is defined to store area value in
each cell (using "int" was too small on 16-bit systems)..
setjmp() and longjmp() are now used for rollback (i.e. when memory
pool overflow occurs).
* include/freetype/ftsizes.h, src/base/ftobjs.c, src/cache/ftcmanag.c:
added a new header, named "ftsizes.h" (FT_SIZES_H) to provide a public
API to manage multiple size objects for a given FT_Face.
Function names are now all uniformly prefixed with `gray_'.
* src/smooth/ftgrays.c: Include <setjmp.h>.
(ErrRaster_MemoryOverflow): New macro.
(TArea): New type to store area values in each cell (using `int' was
too small on 16-bit systems). <limits.h> is included to properly
get the needed data type.
(TCell, TRaster): Use it.
(TRaster): New element `jump_buffer'.
(gray_compute_cbox): Use `RAS_ARG' as the only parameter and get
`outline' from it.
(gray_record_cell): Use longjmp().
(gray_set_cell): Use gray_record_cell() for error handling.
(gray_render_line, gray_render_conic, gray_render_cubic): Simplify.
(gray_convert_glyph_inner): New function, using setjmp().
(gray_convert_glyph): Use it.
2001-10-07 David Turner <david@freetype.org>
Provide a public API to manage multiple size objects for a given
FT_Face in the new header file `ftsizes.h'.
* include/freetype/ftsizes.h: New header file,
* include/freetype/internal/ftobjs.h: Use it.
Remove declarations of FT_New_Size and FT_Done_Size (moved to
ftsizes.h).
* include/freetype/config/ftheader.h (FT_SIZES_H): New macro.
* src/base/ftobjs.c (FT_Activate_Size): New function.
* src/cache/ftcmanag.c: Include ftsizes.h.
(ftc_manager_init_size, ftc_manager_flush_size): Use
FT_Activate_Size.
2001-09-20 Detlef Würkner <TetiSoft@apg.lahn.de>

View File

@ -1,458 +0,0 @@
## FreeType specific autoconf tests
AC_DEFUN(FT_MUNMAP_DECL,
[AC_MSG_CHECKING([whether munmap must be declared])
AC_CACHE_VAL(ft_cv_munmap_decl,
[AC_TRY_COMPILE([
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/mman.h>],
[char *(*pfn) = (char *(*))munmap],
ft_cv_munmap_decl=no,
ft_cv_munmap_decl=yes)])
AC_MSG_RESULT($ft_cv_munmap_decl)
if test $ft_cv_munmap_decl = yes; then
AC_DEFINE(NEED_MUNMAP_DECL)
fi])
AC_DEFUN(FT_MUNMAP_PARAM,
[AC_MSG_CHECKING([for munmap's first parameter type])
AC_TRY_COMPILE([
#include <unistd.h>
#include <sys/mman.h>
int munmap(void *, size_t);],,
AC_MSG_RESULT([void *]);AC_DEFINE(MUNMAP_USES_VOIDP),
AC_MSG_RESULT([char *]))
])
## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
## Copyright (C) 1996-1999 Free Software Foundation, Inc.
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
## As a special exception to the GNU General Public License, if you
## distribute this file as part of a program that contains a
## configuration script generated by Autoconf, you may include it under
## the same distribution terms that you use for the rest of that program.
# serial 40 AC_PROG_LIBTOOL
AC_DEFUN(AC_PROG_LIBTOOL,
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
# Save cache, so that ltconfig can load it
AC_CACHE_SAVE
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| AC_MSG_ERROR([libtool configure failed])
# Reload cache, that may have been modified by ltconfig
AC_CACHE_LOAD
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
])
AC_DEFUN(AC_LIBTOOL_SETUP,
[AC_PREREQ(2.13)dnl
AC_REQUIRE([AC_ENABLE_SHARED])dnl
AC_REQUIRE([AC_ENABLE_STATIC])dnl
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([AC_PROG_RANLIB])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
dnl
case "$target" in
NONE) lt_target="$host" ;;
*) lt_target="$target" ;;
esac
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
[libtool_flags="$libtool_flags --enable-dlopen"])
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
[libtool_flags="$libtool_flags --enable-win32-dll"])
AC_ARG_ENABLE(libtool-lock,
[ --disable-libtool-lock avoid locking (might break parallel builds)])
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$lt_target" in
*-*-irix6*)
# Find out which ABI we are using.
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then
case "`/usr/bin/file conftest.o`" in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
[AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
[*-*-cygwin* | *-*-mingw*)
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
AC_CHECK_TOOL(AS, as, false)
AC_CHECK_TOOL(OBJDUMP, objdump, false)
;;
])
esac
])
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
# AC_ENABLE_SHARED - implement the --enable-shared flag
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_SHARED, [dnl
define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(shared,
changequote(<<, >>)dnl
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
])
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_SHARED(no)])
# AC_ENABLE_STATIC - implement the --enable-static flag
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_STATIC, [dnl
define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(static,
changequote(<<, >>)dnl
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
])
# AC_DISABLE_STATIC - set the default static flag to --disable-static
AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_STATIC(no)])
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(fast-install,
changequote(<<, >>)dnl
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
])
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_FAST_INSTALL(no)])
# AC_PROG_LD - find the path to the GNU or non-GNU linker
AC_DEFUN(AC_PROG_LD,
[AC_ARG_WITH(gnu-ld,
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
AC_MSG_CHECKING([for ld used by GCC])
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
changequote(,)dnl
[\\/]* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
changequote([,])dnl
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
AC_MSG_CHECKING([for GNU ld])
else
AC_MSG_CHECKING([for non-GNU ld])
fi
AC_CACHE_VAL(ac_cv_path_LD,
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ac_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
fi
fi
done
IFS="$ac_save_ifs"
else
ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi])
LD="$ac_cv_path_LD"
if test -n "$LD"; then
AC_MSG_RESULT($LD)
else
AC_MSG_RESULT(no)
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_PROG_LD_GNU
])
AC_DEFUN(AC_PROG_LD_GNU,
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
ac_cv_prog_gnu_ld=yes
else
ac_cv_prog_gnu_ld=no
fi])
])
# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN(AC_PROG_NM,
[AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(ac_cv_path_NM,
[if test -n "$NM"; then
# Let the user override the test.
ac_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -B"
break
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -p"
break
else
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
fi
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi])
NM="$ac_cv_path_NM"
AC_MSG_RESULT([$NM])
])
# AC_CHECK_LIBM - check for math library
AC_DEFUN(AC_CHECK_LIBM,
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
LIBM=
case "$lt_target" in
*-*-beos* | *-*-cygwin*)
# These system don't have libm
;;
*-ncr-sysv4.3*)
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
;;
*)
AC_CHECK_LIB(m, main, LIBM="-lm")
;;
esac
])
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library, adds --enable-ltdl-convenience to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
case "$enable_ltdl_convenience" in
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
"") enable_ltdl_convenience=yes
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
])
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library, and adds --enable-ltdl-install to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_CHECK_LIB(ltdl, main,
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
[if test x"$enable_ltdl_install" = xno; then
AC_MSG_WARN([libltdl not installed, but installation disabled])
else
enable_ltdl_install=yes
fi
])
if test x"$enable_ltdl_install" = x"yes"; then
ac_configure_args="$ac_configure_args --enable-ltdl-install"
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
else
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
LIBLTDL="-lltdl"
INCLTDL=
fi
])
dnl old names
AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
dnl This is just to silence aclocal about the macro not being used
ifelse([AC_DISABLE_FAST_INSTALL])dnl

File diff suppressed because it is too large Load Diff

1324
builds/cygwin/config.sub vendored

File diff suppressed because it is too large Load Diff

2585
builds/cygwin/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,87 +0,0 @@
dnl This file is part of the FreeType project.
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
AC_INIT(ftconfig.in)
dnl configuration file -- stay in 8.3 limit
AC_CONFIG_HEADER(ftconfig.h:ftconfig.in)
version_info='6:1:0'
AC_SUBST(version_info)
dnl checks for system type
AC_CANONICAL_SYSTEM
dnl checks for programs
AC_PROG_CC
AC_PROG_CPP
dnl get Compiler flags right.
if test "x$CC" = xgcc; then
XX_CFLAGS="-Wall"
XX_ANSIFLAGS="-pedantic -ansi"
else
case "$host" in
*-dec-osf*)
CFLAGS=
XX_CFLAGS="-std1 -g3"
XX_ANSIFLAGS=
;;
*)
XX_CFLAGS=
XX_ANSIFLAGS=
;;
esac
fi
AC_SUBST(XX_CFLAGS)
AC_SUBST(XX_ANSIFLAGS)
AC_CHECK_PROG(RMF, rm, rm -f)
AC_CHECK_PROG(RMDIR, rmdir, rmdir)
dnl Since this file will be finally moved to another directory we make
dnl the path of the install script absolute. This small code snippet has
dnl been taken from automake's `ylwrap' script.
AC_PROG_INSTALL
case "$INSTALL" in
/*)
;;
*/*)
INSTALL="`pwd`/$INSTALL" ;;
esac
dnl checks for header files
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h unistd.h)
dnl checks for typedefs, structures, and compiler characteristics
AC_C_CONST
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
dnl checks for library functions
dnl Here we check whether we can use our mmap file component.
AC_FUNC_MMAP
if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
FTSYS_SRC='$(BASE_)ftsystem.c'
else
FTSYS_SRC='$(BUILD)/ftsystem.c'
FT_MUNMAP_DECL
FT_MUNMAP_PARAM
fi
AC_SUBST(FTSYS_SRC)
AC_CHECK_FUNCS(memcpy memmove)
AM_PROG_LIBTOOL
dnl create the CygWin-specific sub-Makefile `builds/cygwin/cygwin-def.mk'
dnl and 'builds/cygwin/cygwin-cc.mk' that will be used by the build system
dnl
AC_OUTPUT(cygwin-cc.mk:cygwin-cc.in cygwin-def.mk:cygwin-def.in freetype-config)
dnl end of configure.in

View File

@ -1,79 +0,0 @@
# template for Unix-specific compiler definitions
#
CC := @CC@
LIBTOOL := $(BUILD)/libtool
# The object file extension (for standard and static libraries). This can be
# .o, .tco, .obj, etc., depending on the platform.
#
O := lo
SO := o
# The library file extension (for standard and static libraries). This can
# be .a, .lib, etc., depending on the platform.
#
A := la
SA := a
# The name of the final library file. Note that the DOS-specific Makefile
# uses a shorter (8.3) name.
#
LIBRARY := lib$(PROJECT)
# Path inclusion flag. Some compilers use a different flag than `-I' to
# specify an additional include path. Examples are `/i=' or `-J'.
#
I := -I
# C flag used to define a macro before the compilation of a given source
# object. Usually is `-D' like in `-DDEBUG'.
#
D := -D
# The link flag used to specify a given library file on link. Note that
# this is only used to compile the demo programs, not the library itself.
#
L := -l
# Target flag.
#
T := -o # Don't remove this comment line! We need the space after `-o'.
# C flags
#
# These should concern: debug output, optimization & warnings.
#
# Use the ANSIFLAGS variable to define the compiler flags used to enfore
# ANSI compliance.
#
CFLAGS := -c @XX_CFLAGS@ @CFLAGS@
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
ANSIFLAGS := @XX_ANSIFLAGS@
# C compiler to use -- we use libtool!
#
#
CCraw := $(CC)
CC := $(LIBTOOL) --mode=compile $(CCraw)
# Linker flags.
#
LDFLAGS := @LDFLAGS@
# Library linking
#
LINK_LIBRARY = $(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
-rpath $(libdir) -version-info $(version_info)
# EOF

View File

@ -1,86 +0,0 @@
#
# FreeType 2 configuration rules templates for Unix + configure
#
# 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
TOP := .
endif
TOP := $(shell cd $(TOP); pwd)
DELETE := @RMF@
DELDIR := @RMDIR@
SEP := /
HOSTSEP := $(SEP)
BUILD := $(TOP)/builds/cygwin
PLATFORM := cygwin
# don't use `:=' here since the path stuff will be included after this file
#
FTSYS_SRC = @FTSYS_SRC@
INSTALL := @INSTALL@
INSTALL_DATA := @INSTALL_DATA@
INSTALL_PROGRAM := @INSTALL_PROGRAM@
INSTALL_SCRIPT := @INSTALL_SCRIPT@
MKINSTALLDIRS := $(BUILD)/mkinstalldirs
DISTCLEAN += $(BUILD)/config.cache \
$(BUILD)/config.log \
$(BUILD)/config.status \
$(BUILD)/cygwin-def.mk \
$(BUILD)/cygwin-cc.mk \
$(BUILD)/ftconfig.h \
$(BUILD)/freetype-config \
$(LIBTOOL)
# Standard installation variables.
#
prefix := @prefix@
exec_prefix := @exec_prefix@
libdir := @libdir@
bindir := @bindir@
includedir := @includedir@
version_info := @version_info@
# The directory where all object files are placed.
#
# This lets you build the library in your own directory with something like
#
# set TOP=.../path/to/freetype2/top/dir...
# set OBJ_DIR=.../path/to/obj/dir
# make -f $TOP/Makefile setup [options]
# make -f $TOP/Makefile
#
ifndef OBJ_DIR
OBJ_DIR := $(shell cd $(TOP)/objs; pwd)
endif
# The directory where all library files are placed.
#
# By default, this is the same as $(OBJ_DIR); however, this can be changed
# to suit particular needs.
#
LIB_DIR := $(OBJ_DIR)
# The NO_OUTPUT macro is appended to command lines in order to ignore
# the output of some programs.
#
NO_OUTPUT := 2> /dev/null
# EOF

View File

@ -1,25 +0,0 @@
#
# FreeType 2 Configuration rules for Cygwin
#
# Development version without optimizations & libtool
# 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
BUILD := $(TOP)/builds/devel
include $(TOP)/builds/compiler/gcc-dev.mk
include $(TOP)/builds/link_std.mk
# EOF

View File

@ -1,46 +0,0 @@
#
# 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-cc.mk
ifdef BUILD_PROJECT
# Now include the main sub-makefile. It contains all the rules used to
# build the library with the previous variables defined.
#
include $(TOP)/builds/$(PROJECT).mk
# The cleanup targets.
#
clean_project: clean_project_cygwin
distclean_project: distclean_project_cygwin
# This final rule is used to link all object files into a single library.
# this is compiler-specific
#
$(PROJECT_LIBRARY): $(OBJECTS_LIST)
ifdef CLEAN_LIBRARY
-$(CLEAN_LIBRARY) $(NO_OUTPUT)
endif
$(LINK_LIBRARY)
endif
include $(TOP)/builds/cygwin/install.mk
# EOF

View File

@ -1,56 +0,0 @@
#
# FreeType 2 configuration rules templates for
# development under Unix with no configure script (gcc only)
#
# 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
TOP := .
endif
TOP := $(shell cd $(TOP); pwd)
DELETE := rm -f
SEP := /
HOSTSEP := $(SEP)
# we use a special devel ftoption.h
BUILD := $(TOP)/builds/devel
# do not set the platform to `unix', or libtool will trick you
PLATFORM := unixdev
# The directory where all object files are placed.
#
ifndef OBJ_DIR
OBJ_DIR := $(shell cd $(TOP)/objs; pwd)
endif
# library file name
#
LIBRARY := lib$(PROJECT)
# The directory where all library files are placed.
#
# By default, this is the same as $(OBJ_DIR); however, this can be changed
# to suit particular needs.
#
LIB_DIR := $(OBJ_DIR)
#
NO_OUTPUT := 2> /dev/null
# EOF

View File

@ -1,80 +0,0 @@
#
# FreeType 2 configuration file to detect a 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.
ifeq ($(PLATFORM),ansi)
# Detecting Windows NT is easy, as the OS variable must be defined and
# contains `Windows_NT'. Untested with Windows 2K, but I guess it should
# work...
#
ifeq ($(OS),Windows_NT)
# Check if we are running on a CygWin system by checking the OSTYPE
# variable.
ifeq ($(OSTYPE),cygwin)
is_cygwin := 1
endif
# We test for the COMSPEC environment variable, then run the `ver'
# command-line program to see if its output contains the word `Windows'.
#
# If this is true, we are running a win32 platform (or an emulation).
#
else
ifeq ($(OSTYPE),cygwin)
ifdef COMSPEC
is_cygwin := $(findstring Windows,$(strip $(shell ver)))
endif
endif # test CygWin
endif # test NT
ifdef is_cygwin
PLATFORM := cygwin
COPY := cp
DELETE := rm -f
# If `devel' is the requested target, we use a special configuration
# file named `cygwin-dev.mk'. It disables optimization and libtool.
#
ifneq ($(findstring devel,$(MAKECMDGOALS)),)
CONFIG_FILE := cygwin-dev.mk
CC := gcc
devel: setup
else
# If a CygWin platform is detected, the configure script is called and
# `cygwin.mk' is created.
#
# Arguments to `configure' should be in the CFG variable. Example:
#
# make CFG="--prefix=/usr --disable-static"
#
# If you need to set CFLAGS or LDFLAGS, do it here also.
#
CONFIG_FILE := cygwin.mk
setup: cygwin-def.mk
cygwin: setup
endif
setup: std_setup
cygwin-def.mk: builds/cygwin/cygwin-def.in
cd builds/cygwin; \
$(USE_CFLAGS) CONFIG_SHELL=/bin/bash ./configure $(CFG)
endif # test CygWin
endif # test PLATFORM
# EOF

View File

@ -1,400 +0,0 @@
/***************************************************************************/
/* */
/* ftoption.h */
/* */
/* User-selectable configuration macros (specification only). */
/* */
/* 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 __FTOPTION_H__
#define __FTOPTION_H__
#ifdef __cplusplus
extern "C" {
#endif
/*************************************************************************/
/* */
/* USER-SELECTABLE CONFIGURATION MACROS */
/* */
/* These macros can be toggled by developers to enable or disable */
/* certain aspects of FreeType. This is a default file, where all major */
/* options are enabled. */
/* */
/* Note that if some modifications are required for your build, we */
/* advise you to put a modified copy of this file in your build */
/* directory, rather than modifying it in-place. */
/* */
/* The build directory is normally `freetype/builds/<system>' and */
/* contains build or system-specific files that are included in */
/* priority when building the library. */
/* */
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
/**** ****/
/**** G E N E R A L F R E E T Y P E 2 C O N F I G U R A T I O N ****/
/**** ****/
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
/* */
/* Convenience functions support */
/* */
/* Some functions of the FreeType 2 API are provided as a convenience */
/* for client applications and developers. However, they are not */
/* required to build and run the library itself. */
/* */
/* By defining this configuration macro, you'll disable the */
/* compilation of these functions at build time. This can be useful */
/* to reduce the library's code size when you don't need any of */
/* these functions. */
/* */
/* All convenience functions are declared as such in their */
/* documentation. */
/* */
#undef FT_CONFIG_OPTION_NO_CONVENIENCE_FUNCS
/*************************************************************************/
/* */
/* Alternate Glyph Image Format support */
/* */
/* By default, the glyph images returned by the FreeType glyph loader */
/* can either be a pixmap or a vectorial outline defined through */
/* Bezier control points. When defining the following configuration */
/* macro, some font drivers will be able to register alternate */
/* glyph image formats. */
/* */
/* Unset this macro if you are sure that you will never use a font */
/* driver with an alternate glyph format; this will reduce the size of */
/* the base layer code. */
/* */
/* Note that a few Type 1 fonts, as well as Windows `vector' fonts */
/* use a vector `plotter' format that isn't supported when this */
/* macro is undefined. */
/* */
#define FT_CONFIG_OPTION_ALTERNATE_GLYPH_FORMATS
/*************************************************************************/
/* */
/* Glyph Postscript Names handling */
/* */
/* By default, FreeType 2 is compiled with the `PSNames' module. This */
/* This module is in charge of converting a glyph name string into a */
/* Unicode value, or return a Macintosh standard glyph name for the */
/* use with the TrueType `post' table. */
/* */
/* Undefine this macro if you do not want `PSNames' compiled in your */
/* build of FreeType. This has the following effects: */
/* */
/* - The TrueType driver will provide its own set of glyph names, */
/* if you build it to support postscript names in the TrueType */
/* `post' table. */
/* */
/* - The Type 1 driver will not be able to synthetize a Unicode */
/* charmap out of the glyphs found in the fonts. */
/* */
/* You would normally undefine this configuration macro when building */
/* a version of FreeType that doesn't contain a Type 1 or CFF driver. */
/* */
#define FT_CONFIG_OPTION_POSTSCRIPT_NAMES
/*************************************************************************/
/* */
/* Postscript Names to Unicode Values support */
/* */
/* By default, FreeType 2 is built with the `PSNames' module compiled */
/* in. Among other things, the module is used to convert a glyph name */
/* into a Unicode value. This is especially useful in order to */
/* synthetize on the fly a Unicode charmap from the CFF/Type 1 driver */
/* through a big table named the `Adobe Glyph List' (AGL). */
/* */
/* Undefine this macro if you do not want the Adobe Glyph List */
/* compiled in your `PSNames' module. The Type 1 driver will not be */
/* able to synthetize a Unicode charmap out of the glyphs found in the */
/* fonts. */
/* */
#define FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
/*************************************************************************/
/* */
/* Many compilers provide the non-ANSI `long long' 64-bit type. You can */
/* activate it by defining the FTCALC_USE_LONG_LONG macro. Note that */
/* this will produce many -ansi warnings during library compilation, and */
/* that in many cases the generated code will not be smaller or faster! */
/* */
#undef FTCALC_USE_LONG_LONG
/*************************************************************************/
/* */
/* DLL export compilation */
/* */
/* When compiling FreeType as a DLL, some systems/compilers need a */
/* special keyword in front OR after the return type of function */
/* declarations. */
/* */
/* Two macros are used within the FreeType source code to define */
/* exported library functions: FT_EXPORT and FT_EXPORT_DEF. */
/* */
/* FT_EXPORT( return_type ) */
/* */
/* is used in a function declaration, as in */
/* */
/* FT_EXPORT( FT_Error ) */
/* FT_Init_FreeType( FT_Library* alibrary ); */
/* */
/* */
/* FT_EXPORT_DEF( return_type ) */
/* */
/* is used in a function definition, as in */
/* */
/* FT_EXPORT_DEF( FT_Error ) */
/* FT_Init_FreeType( FT_Library* alibrary ) */
/* { */
/* ... some code ... */
/* return FT_Err_Ok; */
/* } */
/* */
/* You can provide your own implementation of FT_EXPORT and */
/* FT_EXPORT_DEF here if you want. If you leave them undefined, they */
/* will be later automatically defined as `extern return_type' to */
/* allow normal compilation. */
/* */
#undef FT_EXPORT
#undef FT_EXPORT_DEF
/*************************************************************************/
/* */
/* Debug level */
/* */
/* FreeType can be compiled in debug or trace mode. In debug mode, */
/* errors are reported through the `ftdebug' component. In trace */
/* mode, additional messages are sent to the standard output during */
/* execution. */
/* */
/* Define FT_DEBUG_LEVEL_ERROR to build the library in debug mode. */
/* Define FT_DEBUG_LEVEL_TRACE to build it in trace mode. */
/* */
/* Don't define any of these macros to compile in `release' mode! */
/* */
#define FT_DEBUG_LEVEL_ERROR
#define FT_DEBUG_LEVEL_TRACE
/*************************************************************************/
/* */
/* Computation Algorithms */
/* */
/* Used for debugging, this configuration macro should disappear */
/* soon. */
/* */
#define FT_CONFIG_OPTION_OLD_CALCS
/*************************************************************************/
/* */
/* The size in bytes of the render pool used by the scan-line converter */
/* to do all of its work. */
/* */
/* This must be greater than 4kByte. */
/* */
#define FT_RENDER_POOL_SIZE 16384
/*************************************************************************/
/* */
/* FT_MAX_MODULES */
/* */
/* The maximum number of modules that can be registered in a single */
/* FreeType library object. 16 is the default. */
/* */
#define FT_MAX_MODULES 16
/*************************************************************************/
/* */
/* FT_MAX_EXTENSIONS */
/* */
/* The maximum number of extensions that can be registered in a single */
/* font driver. 8 is the default. */
/* */
/* If you don't know what this means, you certainly do not need to */
/* change this value. */
/* */
#define FT_MAX_EXTENSIONS 8
/*************************************************************************/
/*************************************************************************/
/**** ****/
/**** S F N T D R I V E R C O N F I G U R A T I O N ****/
/**** ****/
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
/* */
/* Define TT_CONFIG_OPTION_EMBEDDED_BITMAPS if you want to support */
/* embedded bitmaps in all formats using the SFNT module (namely */
/* TrueType & OpenType). */
/* */
#define TT_CONFIG_OPTION_EMBEDDED_BITMAPS
/*************************************************************************/
/* */
/* Define TT_CONFIG_OPTION_POSTSCRIPT_NAMES if you want to be able to */
/* load and enumerate the glyph Postscript names in a TrueType or */
/* OpenType file. */
/* */
/* Note that when you do not compile the `PSNames' module by undefining */
/* the above FT_CONFIG_OPTION_POSTSCRIPT_NAMES, the `sfnt' module will */
/* contain additional code used to read the PS Names table from a font. */
/* */
/* (By default, the module uses `PSNames' to extract glyph names.) */
/* */
#define TT_CONFIG_OPTION_POSTSCRIPT_NAMES
/*************************************************************************/
/* */
/* Define TT_CONFIG_OPTION_SFNT_NAMES if your applications need to */
/* access the internal name table in a SFNT-based format like TrueType */
/* or OpenType. The name table contains various strings used to */
/* describe the font, like family name, copyright, version, etc. It */
/* does not contain any glyph name though. */
/* */
/* Accessing SFNT names is done through the functions declared in */
/* `freetype/ftnames.h'. */
/* */
#define TT_CONFIG_OPTION_SFNT_NAMES
/*************************************************************************/
/*************************************************************************/
/**** ****/
/**** T R U E T Y P E D R I V E R C O N F I G U R A T I O N ****/
/**** ****/
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
/* */
/* Define TT_CONFIG_OPTION_BYTECODE_INTERPRETER if you want to compile */
/* a bytecode interpreter in the TrueType driver. Note that there are */
/* important patent issues related to the use of the interpreter. */
/* */
/* By undefining this, you will only compile the code necessary to load */
/* TrueType glyphs without hinting. */
/* */
#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
/*************************************************************************/
/* */
/* Define TT_CONFIG_OPTION_INTERPRETER_SWITCH to compile the TrueType */
/* bytecode interpreter with a huge switch statement, rather than a call */
/* table. This results in smaller and faster code for a number of */
/* architectures. */
/* */
/* Note however that on some compiler/processor combinations, undefining */
/* this macro will generate faster, though larger, code. */
/* */
#define TT_CONFIG_OPTION_INTERPRETER_SWITCH
/*************************************************************************/
/*************************************************************************/
/**** ****/
/**** T Y P E 1 D R I V E R C O N F I G U R A T I O N ****/
/**** ****/
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
/* */
/* T1_MAX_DICT_DEPTH is the maximal depth of nest dictionaries and */
/* arrays in the Type 1 stream (see t1load.c). A minimum of 4 is */
/* required. */
/* */
#define T1_MAX_DICT_DEPTH 5
/*************************************************************************/
/* */
/* T1_MAX_SUBRS_CALLS details the maximum number of nested sub-routine */
/* calls during glyph loading. */
/* */
#define T1_MAX_SUBRS_CALLS 16
/*************************************************************************/
/* */
/* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity. A */
/* minimum of 16 is required. */
/* */
/* The Chinese font MingTiEG-Medium (CNS 11643 character set) needs 256. */
/* */
#define T1_MAX_CHARSTRINGS_OPERANDS 256
/*************************************************************************/
/* */
/* Define T1_CONFIG_OPTION_DISABLE_HINTER if you want to generate a */
/* driver with no hinter. This can be useful to debug the parser. */
/* */
#undef T1_CONFIG_OPTION_DISABLE_HINTER
/*************************************************************************/
/* */
/* Define this configuration macro if you want to prevent the */
/* compilation of `t1afm', which is in charge of reading Type 1 AFM */
/* files into an existing face. Note that if set, the T1 driver will be */
/* unable to produce kerning distances. */
/* */
#undef T1_CONFIG_OPTION_NO_AFM
/*************************************************************************/
/* */
/* Define this configuration macro if you want to prevent the */
/* compilation of the Multiple Masters font support in the Type 1 */
/* driver. */
/* */
#undef T1_CONFIG_OPTION_NO_MM_SUPPORT
#ifdef __cplusplus
}
#endif
#endif /* __FTOPTION_H__ */
/* END */

View File

@ -1,90 +0,0 @@
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage()
{
cat <<EOF
Usage: freetype-config [OPTIONS] [LIBRARIES]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
[--version]
[--libs]
[--libtool]
[--cflags]
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
;;
--prefix)
echo_prefix=yes
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo_exec_prefix=yes
;;
--version)
echo @version_info@
exit 0
;;
--cflags)
echo_cflags=yes
;;
--libs)
echo_libs=yes
;;
--libtool)
echo_libtool=yes
;;
*)
usage 1 1>&2
;;
esac
shift
done
if test "$exec_prefix_set" = "no"; then
exec_prefix=$prefix
fi
if test "$echo_prefix" = "yes"; then
echo $prefix
fi
if test "$echo_exec_prefix" = "yes"; then
echo $exec_prefix
fi
if test "$echo_cflags" = "yes"; then
cflags="-I@includedir@/freetype2"
echo $cflags $includes
fi
if test "$echo_libs" = "yes"; then
libs="-lfreetype"
echo -L@libdir@ $libs
fi
if test "$echo_libtool" = "yes"; then
convlib="libfreetype.la"
echo @libdir@/$convlib
fi
# EOF

View File

@ -1,254 +0,0 @@
/***************************************************************************/
/* */
/* ftconfig.in */
/* */
/* UNIX-specific configuration file (specification only). */
/* */
/* 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 header file contains a number of macro definitions that are used */
/* by the rest of the engine. Most of the macros here are automatically */
/* determined at compile time, and you should not need to change it to */
/* port FreeType, except to compile the library with a non-ANSI */
/* compiler. */
/* */
/* Note however that if some specific modifications are needed, we */
/* advise you to place a modified copy in your build directory. */
/* */
/* The build directory is usually `freetype/builds/<system>', and */
/* contains system-specific files that are always included first when */
/* building the library. */
/* */
/*************************************************************************/
#ifndef __FTCONFIG_H__
#define __FTCONFIG_H__
#include <ft2build.h>
#include FT_CONFIG_OPTIONS_H
FT_BEGIN_HEADER
/*************************************************************************/
/* */
/* PLATFORM-SPECIFIC CONFIGURATION MACROS */
/* */
/* These macros can be toggled to suit a specific system. The current */
/* ones are defaults used to compile FreeType in an ANSI C environment */
/* (16bit compilers are also supported). Copy this file to your own */
/* `freetype/builds/<system>' directory, and edit it to port the engine. */
/* */
/*************************************************************************/
#define HAVE_UNISTD_H 0
#define HAVE_FCNTL_H 0
#define SIZEOF_INT 2
#define SIZEOF_LONG 2
#define FT_SIZEOF_INT SIZEOF_INT
#define FT_SIZEOF_LONG SIZEOF_LONG
/* Preferred alignment of data */
#define FT_ALIGNMENT 8
/* UNUSED is a macro used to indicate that a given parameter is not used */
/* -- this is only used to get rid of unpleasant compiler warnings */
#ifndef FT_UNUSED
#define FT_UNUSED( arg ) ( (arg) = (arg) )
#endif
/*************************************************************************/
/* */
/* AUTOMATIC CONFIGURATION MACROS */
/* */
/* These macros are computed from the ones defined above. Don't touch */
/* their definition, unless you know precisely what you are doing. No */
/* porter should need to mess with them. */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/* IntN types */
/* */
/* Used to guarantee the size of some specific integers. */
/* */
typedef signed short FT_Int16;
typedef unsigned short FT_UInt16;
#if FT_SIZEOF_INT == 4
typedef signed int FT_Int32;
typedef unsigned int FT_UInt32;
#elif FT_SIZEOF_LONG == 4
typedef signed long FT_Int32;
typedef unsigned long FT_UInt32;
#else
#error "no 32bit type found -- please check your configuration files"
#endif
#if FT_SIZEOF_LONG == 8
/* FT_LONG64 must be defined if a 64-bit type is available */
#define FT_LONG64
#define FT_INT64 long
#else
/*************************************************************************/
/* */
/* Many compilers provide the non-ANSI `long long' 64-bit type. You can */
/* activate it by defining the FTCALC_USE_LONG_LONG macro in */
/* `ftoption.h'. */
/* */
/* Note that this will produce many -ansi warnings during library */
/* compilation, and that in many cases, the generated code will be */
/* neither smaller nor faster! */
/* */
#ifdef FTCALC_USE_LONG_LONG
#define FT_LONG64
#define FT_INT64 long long
#endif /* FTCALC_USE_LONG_LONG */
#endif /* FT_SIZEOF_LONG == 8 */
#ifdef FT_MAKE_OPTION_SINGLE_OBJECT
#define FT_LOCAL static
#define FT_LOCAL_DEF static
#else
#ifdef __cplusplus
#define FT_LOCAL extern "C"
#define FT_LOCAL_DEF extern "C"
#else
#define FT_LOCAL extern
#define FT_LOCAL_DEF extern
#endif
#endif /* FT_MAKE_OPTION_SINGLE_OBJECT */
#ifndef FT_BASE
#ifdef __cplusplus
#define FT_BASE( x ) extern "C" x
#else
#define FT_BASE( x ) extern x
#endif
#endif /* !FT_BASE */
#ifndef FT_BASE_DEF
#ifdef __cplusplus
#define FT_BASE_DEF( x ) extern "C" x
#else
#define FT_BASE_DEF( x ) extern x
#endif
#endif /* !FT_BASE_DEF */
#ifndef FT_EXPORT
#ifdef __cplusplus
#define FT_EXPORT( x ) extern "C" x
#else
#define FT_EXPORT( x ) extern x
#endif
#endif /* !FT_EXPORT */
#ifndef FT_EXPORT_DEF
#ifdef __cplusplus
#define FT_EXPORT_DEF( x ) extern "C" x
#else
#define FT_EXPORT_DEF( x ) extern x
#endif
#endif /* !FT_EXPORT_DEF */
#ifndef FT_EXPORT_VAR
#ifdef __cplusplus
#define FT_EXPORT_VAR( x ) extern "C" x
#else
#define FT_EXPORT_VAR( x ) extern x
#endif
#endif /* !FT_EXPORT_VAR */
/* The following macros are needed to compile the library with a */
/* C++ compiler. Note that we do this for convenience -- please */
/* don't ask for more C++ features. */
/* */
/* This is special. Within C++, you must specify `extern "C"' for */
/* functions which are used via function pointers, and you also */
/* must do that for structures which contain function pointers to */
/* assure C linkage -- it's not possible to have (local) anonymous */
/* functions which are accessed by (global) function pointers. */
/* */
/* */
/* FT_CALLBACK_DEF is used to _define_ a callback function. */
/* */
/* FT_CALLBACK_TABLE is used to _declare_ a constant variable that */
/* contains pointers to callback functions. */
/* */
/* FT_CALLBACK_TABLE_DEF is used to _define_ a constant variable */
/* that contains pointers to callback functions. */
/* */
#ifdef __cplusplus
#define FT_CALLBACK_DEF extern "C"
#define FT_CALLBACK_TABLE extern "C"
#define FT_CALLBACK_TABLE_DEF extern "C"
#else
#define FT_CALLBACK_DEF static
#define FT_CALLBACK_TABLE extern
#define FT_CALLBACK_TABLE_DEF /* nothing */
#endif /* __cplusplus */
FT_END_HEADER
#endif /* __FTCONFIG_H__ */
/* END */

View File

@ -1,334 +0,0 @@
/***************************************************************************/
/* */
/* ftsystem.c */
/* */
/* Unix-specific FreeType low-level system interface (body). */
/* */
/* 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 <ftconfig.h>
#include <freetype/internal/ftdebug.h>
#include <freetype/ftsystem.h>
#include <freetype/fterrors.h>
#include <freetype/fttypes.h>
#include <freetype/internal/ftobjs.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* memory-mapping includes and definitions */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/mman.h>
#ifndef MAP_FILE
#define MAP_FILE 0x00
#endif
#ifdef MUNMAP_USES_VOIDP
#define MUNMAP_ARG_CAST void *
#else
#define MUNMAP_ARG_CAST char *
#endif
#ifdef NEED_MUNMAP_DECL
#ifdef __cplusplus
extern "C"
#else
extern
#endif
int munmap( char* addr,
int len );
#define MUNMAP_ARG_CAST char *
#endif /* NEED_DECLARATION_MUNMAP */
#include <sys/stat.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*************************************************************************/
/* */
/* MEMORY MANAGEMENT INTERFACE */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/* <Function> */
/* ft_alloc */
/* */
/* <Description> */
/* The memory allocation function. */
/* */
/* <Input> */
/* memory :: A pointer to the memory object. */
/* size :: The requested size in bytes. */
/* */
/* <Return> */
/* block :: The address of newly allocated block. */
/* */
FT_CALLBACK_DEF
void* ft_alloc( FT_Memory memory,
long size )
{
FT_UNUSED( memory );
return malloc( size );
}
/*************************************************************************/
/* */
/* <Function> */
/* ft_realloc */
/* */
/* <Description> */
/* The memory reallocation function. */
/* */
/* <Input> */
/* memory :: A pointer to the memory object. */
/* */
/* cur_size :: The current size of the allocated memory block. */
/* */
/* new_size :: The newly requested size in bytes. */
/* */
/* block :: The current address of the block in memory. */
/* */
/* <Return> */
/* The address of the reallocated memory block. */
/* */
FT_CALLBACK_DEF
void* ft_realloc( FT_Memory memory,
long cur_size,
long new_size,
void* block )
{
FT_UNUSED( memory );
FT_UNUSED( cur_size );
return realloc( block, new_size );
}
/*************************************************************************/
/* */
/* <Function> */
/* ft_free */
/* */
/* <Description> */
/* The memory release function. */
/* */
/* <Input> */
/* memory :: A pointer to the memory object. */
/* */
/* block :: The address of block in memory to be freed. */
/* */
FT_CALLBACK_DEF
void ft_free( FT_Memory memory,
void* block )
{
FT_UNUSED( memory );
free( block );
}
/*************************************************************************/
/* */
/* RESOURCE MANAGEMENT INTERFACE */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/* 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_io
/* We use the macro STREAM_FILE for convenience to extract the */
/* system-specific stream handle from a given FreeType stream object */
#define STREAM_FILE( stream ) ( (FILE*)stream->descriptor.pointer )
/*************************************************************************/
/* */
/* <Function> */
/* ft_close_stream */
/* */
/* <Description> */
/* The function to close a stream. */
/* */
/* <Input> */
/* stream :: A pointer to the stream object. */
/* */
FT_CALLBACK_DEF
void ft_close_stream( FT_Stream stream )
{
munmap( (MUNMAP_ARG_CAST)stream->descriptor.pointer, stream->size );
stream->descriptor.pointer = NULL;
stream->size = 0;
stream->base = 0;
}
/*************************************************************************/
/* */
/* <Function> */
/* FT_New_Stream */
/* */
/* <Description> */
/* Creates a new stream object. */
/* */
/* <Input> */
/* filepathname :: The name of the stream (usually a file) to be */
/* opened. */
/* */
/* stream :: A pointer to the stream object. */
/* */
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
FT_EXPORT_DEF( FT_Error ) FT_New_Stream( const char* filepathname,
FT_Stream stream )
{
int file;
struct stat stat_buf;
if ( !stream )
return FT_Err_Invalid_Stream_Handle;
/* open the file */
file = open( filepathname, O_RDONLY );
if ( file < 0 )
{
FT_ERROR(( "FT_New_Stream:" ));
FT_ERROR(( " could not open `%s'\n", filepathname ));
return FT_Err_Cannot_Open_Resource;
}
if ( fstat( file, &stat_buf ) < 0 )
{
FT_ERROR(( "FT_New_Stream:" ));
FT_ERROR(( " could not `fstat' file `%s'\n", filepathname ));
goto Fail_Map;
}
stream->size = stat_buf.st_size;
stream->pos = 0;
stream->base = (unsigned char *)mmap( NULL,
stream->size,
PROT_READ,
MAP_FILE | MAP_PRIVATE,
file,
0 );
if ( (long)stream->base == -1 )
{
FT_ERROR(( "FT_New_Stream:" ));
FT_ERROR(( " could not `mmap' file `%s'\n", filepathname ));
goto Fail_Map;
}
close( file );
stream->descriptor.pointer = stream->base;
stream->pathname.pointer = (char*)filepathname;
stream->close = ft_close_stream;
stream->read = 0;
FT_TRACE1(( "FT_New_Stream:" ));
FT_TRACE1(( " opened `%s' (%d bytes) successfully\n",
filepathname, stream->size ));
return FT_Err_Ok;
Fail_Map:
close( file );
stream->base = NULL;
stream->size = 0;
stream->pos = 0;
return FT_Err_Cannot_Open_Stream;
}
/*************************************************************************/
/* */
/* <Function> */
/* FT_New_Memory */
/* */
/* <Description> */
/* Creates a new memory object. */
/* */
/* <Return> */
/* A pointer to the new memory object. 0 in case of error. */
/* */
FT_EXPORT_DEF( FT_Memory ) FT_New_Memory( void )
{
FT_Memory memory;
memory = (FT_Memory)malloc( sizeof ( *memory ) );
if ( memory )
{
memory->user = 0;
memory->alloc = ft_alloc;
memory->realloc = ft_realloc;
memory->free = ft_free;
}
return memory;
}
/*************************************************************************/
/* */
/* <Function> */
/* FT_Done_Memory */
/* */
/* <Description> */
/* Discards memory manager. */
/* */
/* <Input> */
/* memory :: A handle to the memory manager. */
/* */
FT_EXPORT_DEF( void ) FT_Done_Memory( FT_Memory memory )
{
free( memory );
}
/* END */

View File

@ -1,250 +0,0 @@
#! /bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission. M.I.T. makes no representations about the
# suitability of this software for any purpose. It is provided "as is"
# without express or implied warranty.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch. It can only install one file at a time, a restriction
# shared with many OS's install programs.
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
else
true
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d $dst ]; then
instcmd=:
else
instcmd=mkdir
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
then
true
else
echo "install: $src does not exist"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
else
true
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
else
true
fi
fi
## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS="${oIFS}"
pathcomp=''
while [ $# -ne 0 ] ; do
pathcomp="${pathcomp}${1}"
shift
if [ ! -d "${pathcomp}" ] ;
then
$mkdirprog "${pathcomp}"
else
true
fi
pathcomp="${pathcomp}/"
done
fi
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
# If we're going to rename the final executable, determine the name now.
if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
true
fi
# Make a temp file name in the proper directory.
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name
$doit $instcmd $src $dsttmp &&
trap "rm -f ${dsttmp}" 0 &&
# and set any options; do chmod last to preserve setuid bits
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
# Now rename the file to the real destination.
$doit $rmcmd -f $dstdir/$dstfile &&
$doit $mvcmd $dsttmp $dstdir/$dstfile
fi &&
exit 0

View File

@ -1,68 +0,0 @@
#
# FreeType 2 installation instructions for Unix 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.
# Unix installation and deinstallation targets.
install: $(PROJECT_LIBRARY)
$(MKINSTALLDIRS) $(libdir) \
$(includedir)/freetype2/freetype/config \
$(includedir)/freetype2/freetype/internal \
$(includedir)/freetype2/freetype/cache \
$(bindir)
$(LIBTOOL) --mode=install $(INSTALL) $(PROJECT_LIBRARY) $(libdir)
-for P in $(PUBLIC_H) ; do \
$(INSTALL_DATA) $$P $(includedir)/freetype2/freetype ; \
done
-for P in $(BASE_H) ; do \
$(INSTALL_DATA) $$P $(includedir)/freetype2/freetype/internal ; \
done
-for P in $(CONFIG_H) ; do \
$(INSTALL_DATA) $$P $(includedir)/freetype2/freetype/config ; \
done
-for P in $(CACHE_H) ; do \
$(INSTALL_DATA) $$P $(includedir)/freetype2/freetype/cache ; \
done
$(INSTALL_DATA) $(BUILD)/ft2unix.h $(includedir)/ft2build.h
$(INSTALL_SCRIPT) -m 755 $(BUILD)/freetype-config \
$(bindir)/freetype-config
uninstall:
-$(LIBTOOL) --mode=uninstall $(RM) $(libdir)/$(PROJECT_LIBRARY)
-$(DELETE) $(includedir)/freetype2/freetype/cache/*
-$(DELDIR) $(includedir)/freetype2/freetype/cache
-$(DELETE) $(includedir)/freetype2/freetype/config/*
-$(DELDIR) $(includedir)/freetype2/freetype/config
-$(DELETE) $(includedir)/freetype2/freetype/internal/*
-$(DELDIR) $(includedir)/freetype2/freetype/internal
-$(DELETE) $(includedir)/freetype2/freetype/*
-$(DELDIR) $(includedir)/freetype2/freetype
-$(DELDIR) $(includedir)/freetype2
-$(DELETE) $(bindir)/freetype-config
# Unix cleaning and distclean rules.
#
clean_project_unix:
-$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
-$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \
$(CLEAN)
distclean_project_unix: clean_project_unix
-$(DELETE) $(PROJECT_LIBRARY)
-$(DELETE) $(OBJ_DIR)/.libs/*
-$(DELDIR) $(OBJ_DIR)/.libs
-$(DELETE) *.orig *~ core *.core $(DISTCLEAN)
# EOF

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,40 +0,0 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id$
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp" 1>&2
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
fi
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# mkinstalldirs ends here

35
debian/README.Debian vendored
View File

@ -1,35 +0,0 @@
FreeType 2 for Debian
---------------------
Hurray! FreeType 2 is finally here! :-) The "7" in the package name
"libfreetype7" is the major soname of FreeType 2's libfreetype.
According to the FreeType 2 FAQ,
The FreeType 2 API is a lot simpler than the one in 1.x while being
much more powerful. We thus encourage you to adapt your source code
to it as this should not involve much work.
So please try your best to help migrate your software to FreeType 2.
FreeType 2.0.x can co-exist peacefully with FreeType 1.x with no namespace
conflicts. However, the source package names must be distinguished in
Debian. So, to truly conform with the library naming convention outlined
in the Debian Policy, I've decided the following names for the FreeType
packages in Debian 2.3:
FreeType 2.0.x:
Source package: freetype_2.0.x.orig.tar.gz (current version)
library package: libfreetype7_2.0.x-x (libfreetype, soname 7)
devel package: libfreetype7-dev_2.0.x-x (libfreetype, soname 7)
FreeType 1.x:
Source package: freetype1_1.x.orig.tar.gz (for FreeType 1)
library package: libttf2_1.x-? (libttf, soname 2)
devel package: libttf-dev_1.x-? (libttf, soname 2)
Simple, non?
Enjoy! :-)
-- Anthony Fok <foka@debian.org>, Mon, 23 Apr 2001 23:07:16 -0600

474
debian/changelog vendored
View File

@ -1,474 +0,0 @@
freetype (2.0.3-1) unstable; urgency=low
* New upstream release.
* Renamed /usr/bin/memtest to /usr/bin/ftmemtest to avoid
namespace conflict with /usr/sbin/memtest of the sysutils package.
-- Anthony Fok <foka@debian.org> Thu, 31 May 2001 22:11:05 -0600
freetype (2.0.2.20010514-1) unstable; urgency=low
* New upstream snapshot, post-2.0.2 freetype2-current as of 2001-05-14.
* Silly me! I fixed the `missing "xlibs-dev" in Build-Depends'
in 2.0.2.20010422-2, but closed the wrong bug report!?
Thanks to Martin Schmitz for the bug report. (Closes: Bug#95328)
* libtool-1.4 is not 100% compatible with the libtool-1.3.5 included
in the upstream source. Also, it seems to be unnecessary to
Build-Depends on libtool, therefore removed.
Thanks to Laurent Bonnaud for the bug report. (Closes: Bug#97552)
* [ftoption.h]: #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
-- Anthony Fok <foka@debian.org> Tue, 15 May 2001 16:49:26 -0600
freetype (2.0.2.20010422-2) unstable; urgency=medium
* Hehe, silly me, I forgot to add "xlibs-dev" to Build-Depends
when I merged in freetype2-demos. Thanks to Martin Michlmayr
for the notice. Closes: Bug#94569.
-- Anthony Fok <foka@debian.org> Thu, 26 Apr 2001 21:20:17 -0600
freetype (2.0.2.20010422-1) unstable; urgency=low
* Updated to post-2.0.2 freetype2-current as of 2001-04-22.
* On i386, freetype2-demos is rebuilt with xlibs_4.0.2-13 instead of the
pre-release xlibs_4.0.3. My apologies.
* Replaced "tetex-dev" with "libkpathsea-dev" in Build-Depends.
Thanks to Michael Schmitz for the bug report. Closes: Bug#91897.
* Updated README.Debian to reflect the FreeType 1.x package name
change from freetype2{,-dev} [sic] to libttf{2,-dev}.
-- Anthony Fok <foka@debian.org> Mon, 23 Apr 2001 23:08:51 -0600
freetype (2.0.2.20010412-1) unstable; urgency=low
* New upstream release, post-2.0.2 freetype2-current as of 2001-04-12.
* Arnd Bergmann, Tom Kacvinsky et al. pinpointed and fixed a bug
in FreeType-2.0.2 which caused KDE and "xterm -fa" to segfault.
Thanks guys! :-) Closes: Bug#89326.
* New binary package: freetype2-demos.
* The source package reorganized to include three upstream tarballs
(freetype, ftdocs, ft2demos) in one *.orig.tar.gz.
-- Anthony Fok <foka@debian.org> Fri, 13 Apr 2001 02:02:42 -0600
freetype (2.0.1.20010317-1) unstable; urgency=low
* Updated to freetype2-current as of 2001-03-17.
* [builds/unix/install.mk]:
- IMHO, the current upstream source caters too much to broken
compilers that the Unix build suffers somewhat.
- Use sed to replace all instances of
<freetype/{,config/,internal/}*.h>
with FT2_{PUBLIC,CONFIG,INTERNAL}_FILE(*.h), which currently
expands to <freetype2/freetype/{,config/,internal/}*.h>
in freetype/config/ftheader.h and freetype/internal/internal.h.
- This fix, without sacrificing compatibility on some brain-dead
compilers on other platforms, may mean that
"-I/usr/include/freetype2" is no longer needed on Unix/Linux/Hurd
platforms.
- But it would be very foolish to remove "-I/usr/include/freetype2".
Thou shalt always use $(shell freetype-config --cflags).
- Thanks to Gordon Sadler for the suggestion. :-)
Closes: Bug#79951.
* [builds/unix/ft2unix.h]:
- Removed the FT2_{PUBLIC,CONFIG,INTERNAL}_FILE macros because
they are already defined in freetype/config/ftheader.h.
- Use FT2_ROOT instead. Afterall, cpp on Unix is not broken. ;-)
- Thanks to Takuo Kitame for reporting the conflicting #define's.
Closes: Bug#89363.
* [debian/rules]: Moved out some old cruft to rules.museum.
-- Anthony Fok <foka@debian.org> Mon, 19 Mar 2001 03:27:14 -0700
freetype (2.0.1.20010312-1) unstable; urgency=low
* Updated to freetype2-current as of 2001-03-12.
* [debian/control]:
- Build-Depends: debhelper (>= 3.0.0), ...
- Standards-Version: 3.5.2
-- Anthony Fok <foka@debian.org> Fri, 16 Mar 2001 02:21:31 -0700
freetype (2.0.1.20010308-1) unstable; urgency=low
* Updated to freetype2-current as of 2001-03-08.
* Corrected platform detection on Hurd. Thanks to Jeff Bailey,
Werner and David for the fix. Closes: Bug#87691.
-- Anthony Fok <foka@debian.org> Fri, 9 Mar 2001 00:50:12 -0700
freetype (2.0.1-1) unstable; urgency=low
* New upstream release.
-- Anthony Fok <foka@debian.org> Fri, 1 Dec 2000 17:58:32 -0700
freetype (2.0-1) unstable; urgency=low
* New upstream FreeType 2 official release.
- Source package: freetype
- Binary packages: libfreetype6 and libfreetype6-dev.
The source package of FreeType 1.3.1 has been renamed to freetype1.
* [README.Debian]: Documents the source and binary package names,
and recommends users to migrate to FreeType 2.
-- Anthony Fok <foka@debian.org> Mon, 20 Nov 2000 05:16:13 -0700
freetype (1.3.1-1) unstable; urgency=low
* New official upstream release.
* [contrib/ttf2pfb/ttf2pfb.c]: Applied patch by fellow Debian developer
Daniel Jacobowitz to fix a va_arg problem that prevents it from
building on powerpc. Thanks a million! :-) (closes: Bug#54539)
-- Anthony Fok <foka@debian.org> Mon, 10 Jan 2000 06:12:51 -0700
freetype (1.3.1-0) unstable; urgency=low
* New upstream release candidate (1999-12-08).
* [debian/rules]: Uses "dh_makeshlibs -V 'freetype2 (>= 1.3.1)'"
because 1.3 have some new APIs not in 1.2. Thanks to suggestion
by ISHIKAWA Mutsumi <ishikawa@linux.or.jp> (closes: Bug#52319).
* Added new entries for Arphic PL fonts in /etc/ttf2pk/ttfonts.map
* Modified UBig5.sfd to suit the Big5 Arphic PL fonts.
-- Anthony Fok <foka@debian.org> Sun, 12 Dec 1999 11:13:20 -0700
freetype (1.3-2) unstable; urgency=low
* Corrected the symlink
/usr/share/doc/freetype2/changelog.gz -> docs/changes.txt
to -> docs/changes.txt.gz. (Hehe, major oversight. :-)
Thanks to Michael Osamu Shiobara for the bug report.
(closes: Bug#50428)
-- Anthony Fok <foka@debian.org> Wed, 17 Nov 1999 04:10:41 -0700
freetype (1.3-1) unstable; urgency=low
* New upstream release (libttf.so.2.2.0) with patches as of 1999-10-21.
* Standards-Version: 3.1.0
* Removed debian/freetype2-dev.compress because debhelper-2.0.69
no longer compresses *.png.
* Backed out the patch applied by Anthony Wong <ypwong@debian.org> to
contrib/ttf2pfb/configure in freetype_1.2-6.1 because upstream fixed
ttf2pfb.c to #include "extend/ftxpost.h" rather than "ftxpost.h".
Nonetheless, thanks for the NMU! :-)
* [debian/rules]: FHS-compliancy and general clean-up
- s/pre-binary/install/g; and removed install-stamp.
- s!usr/doc!usr/share/doc!g;
- Referred to the latest /usr/doc/debhelper/examples/rules*
and used DH_OPTIONS to reduce clutter.
- Oops! I used bashism but set "SHELL = /bin/sh". Changed to
"SHELL = /bin/bash". :-)
- Install upstream docs/changes.txt as changelog.gz in the
freetype2 (shared library) package.
-- Anthony Fok <foka@debian.org> Sun, 14 Nov 1999 01:15:21 -0700
freetype (1.2-6.1) unstable; urgency=low
* Non-maintainer upload (see bug #38813)
* Added 'CPPFLAGS= ... -I$srcdir/../../lib/extend' to
contrib/ttf2pfb/configure, otherwise compile will fail for
ftxpost.h cannot be found.
* license.txt.gz is not shipped (lintian complains)
-- Anthony Wong <ypwong@debian.org> Thu, 3 Jun 1999 02:04:44 +0800
freetype (1.2-6) unstable; urgency=low
* Copied debian/postinst to debian/freetype-tools.postinst
so mktexlsr is (only) run for the freetype-tools package.
Thanks to Andrew for reporting this bug. (closes: Bug#36502)
* Added some more font entries to /etc/ttf2pk/ttfonts.map.
-- Anthony Fok <foka@debian.org> Thu, 22 Apr 1999 17:54:53 -0600
freetype (1.2-5) unstable; urgency=low
* Applied upstream freetype-1.2-current.diff.gz as of 1999-04-09.
* [contrib/ttf2pfb/t1asm.c]: Incorporated patch for glibc 2.1
donated by Hartmut Koptein <koptein@et-inf.fho-emden.de>.
(Taken from the t1utils package. :-) (closes: Bug#35742)
* [contrib/ttf2pk/filesrch.c]: Changed "DllImport" to "KPSEDLL"
(changes between kpathsea 3.2 and 3.3). Thanks Werner! :-)
* [debian/rules]:
- Replaced the for loop with a more verbose alternative to ensure
make stops when it encounters an error when building one of the
contrib programs.
- Renamed t1asm to t1asm-freetype, and getafm to getafm-freetype,
until they are merged with the ones in t1utils and psutils.
* freetype-tools now also Suggests: psutils (>= 1.17-7)
-- Anthony Fok <foka@debian.org> Mon, 12 Apr 1999 01:08:23 -0600
freetype (1.2-4) unstable; urgency=low
* Rebuilt with glibc-2.1 and tetex-lib (shared kpathsea library).
* [debian/rules]: Changed usr/share/texmf to usr/lib/texmf
for the new FHS-compliant directory layout in teTeX.
* [debian/control]: freetype-tools now Suggests: tetex-bin
(>= 0.9.990310-1), t1utils (>= 1.2-2)
-- Anthony Fok <foka@debian.org> Mon, 5 Apr 1999 16:39:08 -0600
freetype (1.2-3) frozen unstable; urgency=low
* Applied the upstream freetype-1.2-current.diff.gz as of 1999-01-18
which fixes a nasty Raster bug occurs only when clipping very large
outlines to a small target bitmap or pixmap.
-- Anthony Fok <foka@debian.org> Tue, 19 Jan 1999 22:04:32 -0700
freetype (1.2-2) frozen unstable; urgency=low
* Applied the upstream freetype-1.2-current.diff.gz as of 1998-12-27
Mostly bug fixes.
* Added configure.in and Makefile.in for contrib/{ttf2pfb,ttfbanner},
so these tools are now included in the freetype-tools package.
* [debian/control]:
- Removed the "<" and ">", and added a suggestion
to Debian-JP's X server with X-TT support in freetype2's
package description.
- Now freetype-tools also Suggests: t1utils, which contains
/usr/bin/t1asm that helps ttf2pfb create real .pfa and .pfb
files. (Also added a note in README.Debian.)
* Updated the upstream authors' e-mail addresses in "control" and
"copyright."
* [debian/changelog]: Add the changelog of the freetype (1.1-0.1)
non-maintainer release done by Marcelo E. Magallon
<mmagallo@debian.org> in June 1998. I forgot to do so back
then. Sorry! :-)
* Renamed debian/compress to debian/freetype2-dev.compress, so *.png
are no longer compressed to *.png.gz.
-- Anthony Fok <foka@debian.org> Tue, 29 Dec 1998 02:16:07 -0700
freetype (1.2-1) frozen unstable; urgency=low
* New upstream release.
* Recompiled with libc6 (2.0.7u-7).
* [debian/control]: Updated to standards version 2.5.0.0 (no changes).
* [contrib/ttf2pk/configure.in]: Modified the order of the header
include paths to ensure that "-I./../../lib" is placed before
"-I/usr/include". Thanks to Roman.Hodek@informatik.uni-erlangen.de
for the bug report (forwarded upstream). (Fixes: #27920)
-- Anthony Fok <foka@debian.org> Sat, 5 Dec 1998 15:13:48 -0700
freetype (1.1-1998-09-12-2) unstable; urgency=low
* [debian/postinst]: Oops, the command "ldconfig" somehow disappeared
in the last upload. Fixed. :-)
-- Anthony Fok <foka@debian.org> Sun, 11 Oct 1998 19:58:32 -0600
freetype (1.1-1998-09-12-1) unstable; urgency=low
* New upstream development snapshot.
* Added "--with-kpathsea-dir=/usr" to ttf2pk's configure.
* [debian/rules]:
- TTF2PKINPUTS = usr/lib/texmf/ttf2pk
- TTF2TFMINPUTS = usr/lib/texmf/ttf2tfm
- *.sfd are now installed in $(TTF2PKINPUTS) and $(TTF2TFMINPUTS).
- $(TTF2PKINPUTS)/ttfonts.map is a symlink to /etc/ttf2pk/ttfonts.map.
* [debian/freetype-tools.conffiles]: Added /etc/ttf2pk/ttfonts.map.
* [debian/postinst]: Added #DEBHELPER#.
* [debian/freetype-tools.postinst]: Runs /usr/bin/mktexlsr if it exists.
* [debian/control]: freetype-tools now Suggests: tetex-bin (>= 0.9-1).
-- Anthony Fok <foka@debian.org> Sat, 12 Sep 1998 19:55:17 -0600
freetype (1.1-1998-08-29-1) unstable; urgency=low
* New upstream development snapshot.
* Now installs ttf2bdf and ttf2pk's documentation.
ttf2pk/ttf2tfm's *.sfd files are now placed in /usr/lib/ttf2tfm.
* changelog.gz now points to the re-added commitlog.gz.
* Changed "numGlymphId" to "cmap4->numGlyphId" in lib/extend/ftxcmap.c.
-- Anthony Fok <foka@debian.org> Mon, 31 Aug 1998 04:37:57 -0600
freetype (1.1-1) unstable; urgency=low
* New upstream release. The old freetype-1.0 source package has been
renamed to "freetype1" and is now obsolete.
* Upgraded to standards version 2.4.1.0 (no changes).
* The package soname has been upgraded from 1 to 2. (libttf.2)
* Updated the package descriptions according to freetype.spec.
* Since teTeX 0.9 and the new <kpathsea/kpathsea.h> is in Debian,
ttf2pk is now compiled and included in freetype-tools.
* Added postinst to run ldconfig as per Debian Policy. (Lintian)
* [debian/control]: Added some package relationships w.r.t. freetype1:
- freetype2 -- Replaces: freetype1
- freetype2-dev -- Conflicts: freetype1-dev
* [debian/rules]:
- /usr/lib/libttf.la is now installed in the freetype2-dev package.
- Moved the developer's documentation into the freetype2-dev package.
Thanks to "Marcelo E. Magallon" <mmagallo@debian.org> for suggestion.
- Added "--dpkg-shlibdeps-params=-Ldebian/tmp/DEBIAN/shlibs" to
dh_shlibdeps when packaging freetype-tools.
- Added patch from /usr/doc/lintian/libtool-workarounds.txt
to solve the -rpath problem. Debian's libtool-1.2 handles the -lc
problem quite nicely already, so that part of the patch is not used.
- Added a GNU GPL copyright statement at the top. :-)
* Ran libtoolize from the Debian libtool-1.2 package. This solves the
-lc problem. :-) config.guess and config.sub are taken from the ones
in /usr/share/automake/ though because they are newer. (Thanks to
the libtool bug report filed by Jim Pick <jim@jimpick.com> for hints.)
* Removed debian/README.Debian.
-- Anthony Fok <foka@debian.org> Fri, 28 Aug 1998 03:49:21 -0600
freetype (1.1-0.1) unstable; urgency=low
* New upstream version. Non-maintainer upload (I need this in order to
build new upstream version of gltt!)
* Applied patches from previous version.
* Applied libtool rpath fix patch and removed rpath from compilation
parameters. Changed ltconfig to provide inter-library dependencies.
* Upgraded to Standards 2.4.1
* Changed package name to freetype2 and other control fields accordingly
(this could be a problem... what about packages that depend on
freetype1?)
* Added "Conflitcs: freetype1 (<= 1.0.0.1998-03-22-1)" to freetype-tools
because of the mo files freetype1 contains and that are now in
freetype-tools, alogn-side the programs that use the files.
-- Marcelo E. Magallon <mmagallo@debian.org> Sat, 27 Jun 1998 15:59:36 -0600
freetype (1.0.0.1998-03-22-1) frozen unstable; urgency=low
* New upstream snapshot bugfix release as of 1998-03-22.
- ttobjs.c: The storage area is now freed in Instance_Destroy,
because it's the place it should have been from the very start.
A very sick bug spotted by Ram. Thanks again !! - DavidT
- fixed a nasty allocation bug in ttf2tfm.c
- corrected a spelling error (strcpy->strcmp) in ttf2pk.c
- new email address for Werner Lemberg (wl@gnu.org)
- (again) a stupid error fixed in ttf2pk.c
- Some fixes to make the package compile smoothless with the make
program of Solaris.
- too much fixed in po/Makefile.in.in :-)
* /usr/doc/freetype/README.gz and /usr/lib/libttf.la are now installed.
-- Anthony Fok <foka@debian.org> Wed, 25 Mar 1998 16:18:50 -0700
freetype (1.0.0.1998-03-13-1) unstable; urgency=low
* New upstream snapshot including upstream patch as of 1998-03-13.
-- Anthony Fok <foka@debian.org> Sun, 15 Mar 1998 15:04:10 -0700
freetype (1.0-1) unstable; urgency=low
* New upstream release (including upstream patch as of 1998-02-17).
* Updated copyright and README.Debian.
* Upgraded to standards version 2.4.0.0 (no changes).
* Enabled gettext support.
* Added .PHONY targets in Makefile.in's.
* Added -lc for linking libttf.so* (Reported by Lintian).
* Various FreeType test programs now have man pages linked to
/usr/man/man7/undocumented.7.gz (Reported by Lintian).
* debian/control: Revised package description.
* debian/rules: Commented out dh_du.
* Moved /usr/include/freetype/freetype.h to /usr/include/freetype.h.
-- Anthony Fok <foka@debian.org> Wed, 18 Feb 1998 01:12:03 -0700
freetype (0.beta.1998.01.06-1) unstable; urgency=low
* New upstream snapshot release.
* Thanks to the libtool patch posted by Hirotsugu Kakugawa
<h.kakugawa@computer.org> on the freetype-devel mailing list
(and some local tweaking), the Debian freetype package finally
provides the library and header files! Hurray! (Fixes Bug#16365)
* Splitted the package into freetype0, freetype0-dev and freetype-tools.
* Added debian/compress to ensure that /usr/doc/freetype0/image/*.png
are not compressed.
* Revised README.Debian.
-- Anthony Fok <foka@debian.org> Thu, 8 Jan 1998 20:46:14 -0700
freetype (0.beta.1997.12.25-1) unstable; urgency=low
* New upstream snapshot release.
* Modified /usr/doc/freetype/copyright to include the new license.txt.
(Yes, FreeType's license has changed.)
* Have a blessed Merry Christmas!
-- Anthony Fok <foka@debian.org> Fri, 26 Dec 1997 11:26:25 -0700
freetype (0.beta.1997.12.16-1) unstable; urgency=low
* New upstream release.
* /usr/bin/ttf_{lint,timer,view,zoom} no longer exists. The upstream
authors have renamed them as /usr/bin/{ftlint,fttimer,ftview,ftzoom}
and have also added other nifty test programs! :)
* debian/rules: Switched to debhelper.
* debian/control: Upgraded Standards-Version to 2.3.0.1 and increased
Priority to optional. :)
* Revised /usr/doc/freetype/copyright. FreeType is now truly DFSG-free!
(Fixes Bug#16030)
* Revised README.Debian.
* Changed my maintainer e-mail address to <foka@debian.org>. :)
* Sorry, the library and header files are not yet included.
I have yet to learn how. :)
-- Anthony Fok <foka@debian.org> Wed, 17 Dec 1997 03:02:49 -0700
freetype (0.4-4) unstable; urgency=low
* Corrected the freetype mailing-list server's address from
"@lists.tu-muenchen.de" to "@lists.lrz-muenchen.de" in the files
/usr/doc/freetype/readme.1st and license.txt.
* Improved the package description and added a URL link to the
FreeType Project Home Page
* Removed "Keywords", "Primary-site" and "Original-site" from the package's
description, but kept "Authors" and "Maintained-by" (Closed bug #12510).
-- Anthony Fok <foka@gpu.srv.ualberta.ca> Sun, 21 Sep 1997 18:24:42 -0600
freetype (0.4-3) unstable; urgency=low
* Rebuilt with both libc6 and xlib6g (Fixes bug #12784).
* Updated to Standards-Version: 2.3.0.0.
-- Anthony Fok <foka@gpu.srv.ualberta.ca> Wed, 10 Sep 1997 21:57:20 -0600
freetype (0.4-2) unstable; urgency=low
* Renamed /usr/bin/{lint,timer,view,zoom} to
/usr/bin/ttf_{lint,timer,view,zoom} to avoid name conflicts with other
programs (Fixes bugs #12096, #12136).
* Closed bug #11193 (freetype AR4 available).
-- Anthony Fok <foka@gpu.srv.ualberta.ca> Tue, 19 Aug 1997 17:53:32 -0600
freetype (0.4-1) unstable; urgency=low
* New maintainer.
* New upstream release.
* Updated to Standards-Version: 2.2.0.0.
-- Anthony Fok <foka@gpu.srv.ualberta.ca> Mon, 11 Aug 1997 08:26:17 -0600
freetype (0.3-1) unstable; urgency=low
* Upstream update. Sadly the envisioned Christmas target of an X truetype
rasterizer has been abandoned.
-- Christoph Lameter <clameter@waterf.org> Tue, 24 Dec 1996 12:52:24 -0800
freetype (0.1-1) unstable; urgency=low
* Initial Release.
-- Christoph Lameter <clameter@waterf.org> Thu, 7 Nov 1996 11:51:45 -0800
Local variables:
mode: debian-changelog
add-log-mailing-address: "foka@debian.org"
End:

90
debian/control vendored
View File

@ -1,90 +0,0 @@
Source: freetype
Section: libs
Priority: optional
Maintainer: Anthony Fok <foka@debian.org>
Build-Depends: debhelper (>= 3.0.5), bzip2, gettext (>= 0.10.36-2), libkpathsea-dev, xlibs-dev
Standards-Version: 3.5.4
Package: libfreetype7
Architecture: any
Section: libs
Depends: ${shlibs:Depends}
Suggests: libfreetype7-dev
Conflicts: freetype
Replaces: freetype0, freetype1
Description: FreeType 2 font engine, shared library files.
The FreeType project is a team of volunteers who develop free,
portable and high-quality software solutions for digital typography.
They specifically target embedded systems and focus on bringing small,
efficient and ubiquitous products.
.
The FreeType 2 library is their new software font engine. It has been
designed to provide the following important features:
* A universal and simple API to manage font files
* Support for several font formats through loadable modules
* High-quality anti-aliasing
* High portability & performance
.
Supported font formats include:
* TrueType files (.ttf) and collections (.ttc)
* Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
* Type 1 Multiple Master fonts. The FreeType 2 API also provides
routines to manage design instances easily
* Type 1 CID-keyed fonts
* OpenType/CFF (.otf) fonts
* CFF/Type 2 fonts
* Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
the Adobe SVG viewer plugin.
* Windows FNT/FON bitmap fonts
.
This package contains the files needed to run programs that use the
FreeType 2 library.
.
Home Page: http://www.freetype.org/
Authors: David Turner <david.turner@freetype.org>
Robert Wilhelm <robert.wilhelm@freetype.org>
Werner Lemberg <werner.lemberg@freetype.org>
Package: libfreetype7-dev
Architecture: any
Section: devel
Depends: libfreetype7 (= ${Source-Version}), libc6-dev
Conflicts: freetype0-dev, freetype1 (<= 1.0.0.1998-03-22-1), freetype1-dev
Replaces: freetype0-dev, freetype1-dev
Description: FreeType 2 font engine, development files
The FreeType project is a team of volunteers who develop free,
portable and high-quality software solutions for digital typography.
They specifically target embedded systems and focus on bringing small,
efficient and ubiquitous products.
.
The FreeType 2 library is their new software font engine. It has been
designed to provide the following important features:
* A universal and simple API to manage font files
* Support for several font formats through loadable modules
* High-quality anti-aliasing
* High portability & performance
.
Supported font formats include:
* TrueType files (.ttf) and collections (.ttc)
* Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
* Type 1 Multiple Master fonts. The FreeType 2 API also provides
routines to manage design instances easily
* Type 1 CID-keyed fonts
* OpenType/CFF (.otf) fonts
* CFF/Type 2 fonts
* Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
the Adobe SVG viewer plugin.
* Windows FNT/FON bitmap fonts
.
This package contains all supplementary files (static library, headers
and documentation) you need to develop your own programs using the
FreeType 2 library.
Package: freetype2-demos
Architecture: any
Section: utils
Depends: ${shlibs:Depends}
Replaces: freetype-tools
Description: FreeType 2 demonstration programs.
This package contains some demonstration programs and utilities
which showcase the features of the FreeType 2 font engine.

View File

@ -1,5 +0,0 @@
usr/bin/freetype-config
usr/include/
usr/lib/*.so
usr/lib/*.la
usr/lib/*.a

View File

@ -1,331 +0,0 @@
This package was Debianized by Christoph Lameter <clameter@waterf.org> on
Thu, 7 Nov 1996 11:51:45 -0800. It was then picked up by
Anthony Fok <foka@debian.org> on Mon, 11 Aug 1997 08:10:02 -0600
It was downloaded from
ftp://ftp.freetype.org/pub/freetype2/
freetype-2.0.4.tar.bz2
ft2demos-2.0.4.tar.bz2
ftdocs-2.0.4.tar.bz2
Home Page:
http://www.freetype.org/
Upstream Authors:
The FreeType Project
David Turner <david.turner@freetype.org>
Robert Wilhelm <robert.wilhelm@freetype.org>
Werner Lemberg <werner.lemberg@freetype.org>
The FreeType 2 auto-hinter
Designed and implemented by David Turner under contract
for Catharon Productions, Inc. http://www.catharon.com/
Copyright:
FreeType comes with two licenses from which you can choose the one which
fits your needs best:
. The FreeType License, in file `FTL.txt'.
. The GNU General Public License, in file `/usr/share/common-licenses/GPL'.
The FreeType 2 auto-hinter was initially designed and implemented under
contract for Catharon Productions, Inc. which gladly accepted to release
it under an open-source license compatible with the FreeType one:
. The Catharon Open Source License, in file 'CatharonLicense.txt'.
The FreeType License and the Catharon Open Source License are listed below:
The FreeType Project LICENSE
----------------------------
2000-Feb-08
Copyright 1996-2000 by
David Turner, Robert Wilhelm, and Werner Lemberg
Introduction
============
The FreeType Project is distributed in several archive packages;
some of them may contain, in addition to the FreeType font engine,
various tools and contributions which rely on, or relate to, the
FreeType Project.
This license applies to all files found in such packages, and
which do not fall under their own explicit license. The license
affects thus the FreeType font engine, the test programs,
documentation and makefiles, at the very least.
This license was inspired by the BSD, Artistic, and IJG
(Independent JPEG Group) licenses, which all encourage inclusion
and use of free software in commercial and freeware products
alike. As a consequence, its main points are that:
o We don't promise that this software works. However, we will be
interested in any kind of bug reports. (`as is' distribution)
o You can use this software for whatever you want, in parts or
full form, without having to pay us. (`royalty-free' usage)
o You may not pretend that you wrote this software. If you use
it, or only parts of it, in a program, you must acknowledge
somewhere in your documentation that you have used the
FreeType code. (`credits')
We specifically permit and encourage the inclusion of this
software, with or without modifications, in commercial products.
We disclaim all warranties covering The FreeType Project and
assume no liability related to The FreeType Project.
Legal Terms
===========
0. Definitions
--------------
Throughout this license, the terms `package', `FreeType Project',
and `FreeType archive' refer to the set of files originally
distributed by the authors (David Turner, Robert Wilhelm, and
Werner Lemberg) as the `FreeType Project', be they named as alpha,
beta or final release.
`You' refers to the licensee, or person using the project, where
`using' is a generic term including compiling the project's source
code as well as linking it to form a `program' or `executable'.
This program is referred to as `a program using the FreeType
engine'.
This license applies to all files distributed in the original
FreeType Project, including all source code, binaries and
documentation, unless otherwise stated in the file in its
original, unmodified form as distributed in the original archive.
If you are unsure whether or not a particular file is covered by
this license, you must contact us to verify this.
The FreeType Project is copyright (C) 1996-2000 by David Turner,
Robert Wilhelm, and Werner Lemberg. All rights reserved except as
specified below.
1. No Warranty
--------------
THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO
USE, OF THE FREETYPE PROJECT.
2. Redistribution
-----------------
This license grants a worldwide, royalty-free, perpetual and
irrevocable right and license to use, execute, perform, compile,
display, copy, create derivative works of, distribute and
sublicense the FreeType Project (in both source and object code
forms) and derivative works thereof for any purpose; and to
authorize others to exercise some or all of the rights granted
herein, subject to the following conditions:
o Redistribution of source code must retain this license file
(`LICENSE.TXT') unaltered; any additions, deletions or changes
to the original files must be clearly indicated in
accompanying documentation. The copyright notices of the
unaltered, original files must be preserved in all copies of
source files.
o Redistribution in binary form must provide a disclaimer that
states that the software is based in part of the work of the
FreeType Team, in the distribution documentation. We also
encourage you to put an URL to the FreeType web page in your
documentation, though this isn't mandatory.
These conditions apply to any software derived from or based on
the FreeType Project, not just the unmodified files. If you use
our work, you must acknowledge us. However, no fee need be paid
to us.
3. Advertising
--------------
Neither the FreeType authors and contributors nor you shall use
the name of the other for commercial, advertising, or promotional
purposes without specific prior written permission.
We suggest, but do not require, that you use one or more of the
following phrases to refer to this software in your documentation
or advertising materials: `FreeType Project', `FreeType Engine',
`FreeType library', or `FreeType Distribution'.
As you have not signed this license, you are not required to
accept it. However, as the FreeType Project is copyrighted
material, only this license, or another one contracted with the
authors, grants you the right to use, distribute, and modify it.
Therefore, by using, distributing, or modifying the FreeType
Project, you indicate that you understand and accept all the terms
of this license.
4. Contacts
-----------
There are two mailing lists related to FreeType:
o freetype@freetype.org
Discusses general use and applications of FreeType, as well as
future and wanted additions to the library and distribution.
If you are looking for support, start in this list if you
haven't found anything to help you in the documentation.
o devel@freetype.org
Discusses bugs, as well as engine internals, design issues,
specific licenses, porting, etc.
o http://www.freetype.org
Holds the current FreeType web page, which will allow you to
download our latest development version and read online
documentation.
You can also contact us individually at:
David Turner <david.turner@freetype.org>
Robert Wilhelm <robert.wilhelm@freetype.org>
Werner Lemberg <werner.lemberg@freetype.org>
--- end of LICENSE.TXT ---
The Catharon Open Source LICENSE
----------------------------
2000-Jul-04
Copyright (C) 2000 by Catharon Productions, Inc.
Introduction
============
This license applies to source files distributed by Catharon
Productions, Inc. in several archive packages. This license
applies to all files found in such packages which do not fall
under their own explicit license.
This license was inspired by the BSD, Artistic, and IJG
(Independent JPEG Group) licenses, which all encourage inclusion
and use of free software in commercial and freeware products
alike. As a consequence, its main points are that:
o We don't promise that this software works. However, we are
interested in any kind of bug reports. (`as is' distribution)
o You can use this software for whatever you want, in parts or
full form, without having to pay us. (`royalty-free' usage)
o You may not pretend that you wrote this software. If you use
it, or only parts of it, in a program, you must acknowledge
somewhere in your documentation that you have used the
Catharon Code. (`credits')
We specifically permit and encourage the inclusion of this
software, with or without modifications, in commercial products.
We disclaim all warranties covering the packages distributed by
Catharon Productions, Inc. and assume no liability related to
their use.
Legal Terms
===========
0. Definitions
--------------
Throughout this license, the terms `Catharon Package', `package',
and `Catharon Code' refer to the set of files originally
distributed by Catharon Productions, Inc.
`You' refers to the licensee, or person using the project, where
`using' is a generic term including compiling the project's source
code as well as linking it to form a `program' or `executable'.
This program is referred to as `a program using one of the
Catharon Packages'.
This license applies to all files distributed in the original
Catharon Package(s), including all source code, binaries and
documentation, unless otherwise stated in the file in its
original, unmodified form as distributed in the original archive.
If you are unsure whether or not a particular file is covered by
this license, you must contact us to verify this.
The Catharon Packages are copyright (C) 2000 by Catharon
Productions, Inc. All rights reserved except as specified below.
1. No Warranty
--------------
THE CATHARON PACKAGES ARE PROVIDED `AS IS' WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OF OR THE INABILITY TO
USE THE CATHARON PACKAGE.
2. Redistribution
-----------------
This license grants a worldwide, royalty-free, perpetual and
irrevocable right and license to use, execute, perform, compile,
display, copy, create derivative works of, distribute and
sublicense the Catharon Packages (in both source and object code
forms) and derivative works thereof for any purpose; and to
authorize others to exercise some or all of the rights granted
herein, subject to the following conditions:
o Redistribution of source code must retain this license file
(`license.txt') unaltered; any additions, deletions or changes
to the original files must be clearly indicated in
accompanying documentation. The copyright notices of the
unaltered, original files must be preserved in all copies of
source files.
o Redistribution in binary form must provide a disclaimer that
states that the software is based in part on the work of
Catharon Productions, Inc. in the distribution documentation.
These conditions apply to any software derived from or based on
the Catharon Packages, not just the unmodified files. If you use
our work, you must acknowledge us. However, no fee need be paid
to us.
3. Advertising
--------------
Neither Catharon Productions, Inc. and contributors nor you shall
use the name of the other for commercial, advertising, or
promotional purposes without specific prior written permission.
We suggest, but do not require, that you use the following phrase
to refer to this software in your documentation: 'this software is
based in part on the Catharon Typography Project'.
As you have not signed this license, you are not required to
accept it. However, as the Catharon Packages are copyrighted
material, only this license, or another one contracted with the
authors, grants you the right to use, distribute, and modify it.
Therefore, by using, distributing, or modifying the Catharon
Packages, you indicate that you understand and accept all the
terms of this license.
--- end of license.txt ---

View File

@ -1 +0,0 @@
usr/lib/*.so.*

View File

@ -1,8 +0,0 @@
#!/bin/sh
set -e
if [ "$1" = "configure" ] ; then
/sbin/ldconfig
fi
#DEBHELPER#

190
debian/rules vendored
View File

@ -1,190 +0,0 @@
#!/usr/bin/make -f
# Made with the aid of debhelper by by Joey Hess,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
#
# This is free software; see the GNU General Public Licence
# version 2 or later for copying conditions. There is NO warranty.
#
# Currently maintained by Anthony Fok <foka@debian.org>
# for Debian GNU/Linux.
SHELL = /bin/bash
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
export DH_COMPAT=3
# This has to be exported to make some magic below work.
export DH_OPTIONS
srcpkg = freetype2
# Remember to update the following for each release.
freetype_u := freetype-2.0.4
ftdocs_u := ftdocs-2.0.4
ftdocs_d := freetype-2.0.4
ft2demos_u := ft2demos-2.0.4
# ver := $(shell ( head -1 | sed -e 's/^.*(\(.\+\)-.*).*/\1/' ) < debian/changelog)
libpkg := libfreetype7
devpkg := $(libpkg)-dev
docpkg := $(libpkg)-doc
demospkg := freetype2-demos
docdir := usr/share/doc
# These files are general documentation and should go into the lib package.
libdoc = FTL.txt GPL.txt license.txt CHANGES todo
TMP = $(PWD)/debian/tmp
build: build-stamp
build-stamp:
dh_testdir
@for i in $(freetype_u) $(ftdocs_u) $(ft2demos_u); do \
if [ -f $$i.tar.bz2 ]; then \
echo "Unpacking $$i.tar.bz2 ..."; \
tar -x --bzip2 -f $$i.tar.bz2; \
elif [ -f $$i.tar.gz ]; then \
echo "Unpacking $$i.tar.gz ..."; \
tar -x --gzip -f $$i.tar.gz; \
else \
echo "Error! $$i.tar.{bz2,gz} not found!"; \
exit 1; \
fi \
done
# Apple's so-called patents are bogus, says me.
# Let's turn on the bytecode interpreter.
perl -pi -e 's/^#undef(?=\s+TT_CONFIG_OPTION_BYTECODE_INTERPRETER)/#define/' \
$(freetype_u)/include/freetype/config/ftoption.h
$(MAKE) -C $(freetype_u) setup CFG="--prefix=/usr"
$(MAKE) -C $(freetype_u)
$(MAKE) -C $(ft2demos_u) TOP=../$(freetype_u) X11_PATH=/usr/X11R6
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# -$(MAKE) distclean
rm -rf $(freetype_u) $(ft2demos_u) $(ftdocs_d)
dh_clean
install: DH_OPTIONS=
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) -C $(freetype_u) prefix=$(TMP)/usr install
dh_movefiles
@if [ "`find debian/tmp ! -type d`" ]; then \
echo "Error! Not all files are moved out of debian/tmp!"; \
echo "Please fix your debian/*.files."; \
exit 1; \
fi
dh_installdirs -p$(demospkg)/usr/bin
$(freetype_u)/builds/unix/libtool --mode=install \
cp -av `find $(ft2demos_u)/bin -type f -perm +a=x -maxdepth 1` \
$(PWD)/debian/$(demospkg)/usr/bin/
cd debian/$(demospkg)/usr/bin && mv memtest ftmemtest
# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
binary-indep: DH_OPTIONS=-i
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
# Pass -a to all debhelper commands in this target to reduce clutter.
binary-arch: DH_OPTIONS=-a
binary-arch: build $(libpkg) $(devpkg) $(demospkg)
$(libpkg): DH_OPTIONS=-p$(libpkg)
$(libpkg): build install
dh_testdir
dh_testroot
dh_installdirs
dh_installdocs $(addprefix $(freetype_u)/docs/,$(libdoc)) \
$(freetype_u)/src/autohint/CatharonLicense.txt \
$(ftdocs_d)/docs/ft2faq.html
ln -sf ../../common-licenses/GPL debian/$(libpkg)/$(docdir)/$(libpkg)/GPL.txt
mkdir debian/$(libpkg)/$(docdir)/$(libpkg)/pcf
cp -a $(freetype_u)/src/pcf/readme debian/$(libpkg)/$(docdir)/$(libpkg)/pcf/
dh_installexamples
# dh_installmenu
# dh_undocumented
dh_installchangelogs -k $(freetype_u)/ChangeLog
dh_strip
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs -V $(dependency)
dh_makeshlibs
dh_md5sums
dh_builddeb
$(devpkg): DH_OPTIONS=-p$(devpkg)
$(devpkg): build install
dh_testdir
dh_testroot
dh_installdirs $(docdir)/$(libpkg)
ln -s $(libpkg) debian/$(devpkg)/$(docdir)/$(devpkg)
dh_installdocs $(ftdocs_d)/docs/* $(freetype_u)/docs/*
cd debian/$(devpkg)/usr/share/doc/$(devpkg)/ \
&& rm -f $(libdoc) BUILD ft2faq.html
# dh_installexamples
# dh_installmenu
# dh_installmanpages
# dh_undocumented
# dh_installchangelogs
dh_strip
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
dh_md5sums
dh_builddeb
$(demospkg): DH_OPTIONS=-p$(demospkg)
$(demospkg): build install
dh_testdir
dh_testroot
dh_installdirs $(docdir)/$(libpkg)
ln -s $(libpkg) debian/$(demospkg)/$(docdir)/$(demospkg)
# dh_installdocs
# dh_installexamples
# dh_installmenu
# dh_installmanpages
# dh_undocumented
# dh_installchangelogs
dh_strip
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary \
$(libpkg) $(devpkg) install

84
debian/rules.museum vendored
View File

@ -1,84 +0,0 @@
# These are some bits and pieces from freetype1 debian/rules.
# They are moved here to get rid of the clutter in the current debian/rules.
# Who knows? Perhaps we will need the following some day.
# dependency = '$(libpkg) (>= 1.3.1)'
# TTF2PKINPUTS = usr/share/texmf/ttf2pk
# TTF2TFMINPUTS = usr/share/texmf/ttf2tfm
build:
# ( cd contrib/ttf2bdf && ./configure --prefix=/usr --mandir='$${prefix}/share/man' )
# $(MAKE) -C contrib/ttf2bdf
# ( cd contrib/ttf2pk && ./configure --prefix=/usr \
# --mandir='$${prefix}/share/man' --with-kpathsea-dir=/usr )
# $(MAKE) -C contrib/ttf2pk
# ( cd contrib/ttf2pfb && ./configure --prefix=/usr --mandir='$${prefix}/share/man' )
# $(MAKE) -C contrib/ttf2pfb
# ( cd contrib/ttfbanner && ./configure --prefix=/usr --mandir='$${prefix}/share/man' )
# $(MAKE) -C contrib/ttfbanner
clean:
# -for i in ttf2bdf ttf2pfb ttf2pk ttfbanner; do \
# $(MAKE) -C contrib/$$i distclean; \
# done
# The following target is not used for FreeType 2:
$(binpkg): DH_OPTIONS=-p$(binpkg)
$(binpkg): build install
dh_testdir
dh_testroot
dh_installdirs $(docdir)/$(libpkg)/ttf2pk \
$(TTF2PKINPUTS) $(TTF2TFMINPUTS) etc/ttf2pk \
$(docdir)/$(libpkg)/ttf2bdf \
$(docdir)/$(libpkg)/ttf2pfb \
$(docdir)/$(libpkg)/ttfbanner
ln -s $(libpkg) debian/$(binpkg)/$(docdir)/$(binpkg)
for i in ttf2bdf ttf2pfb ttf2pk ttfbanner; do \
$(MAKE) -C contrib/$$i prefix=`pwd`/debian/$(binpkg)/usr install; \
done
# Temporary measure. Remove the following in the future after
# both versions (from t1utils and freetype) are merged.
( cd debian/$(binpkg)/usr/bin && \
mv t1asm t1asm-freetype && \
mv getafm getafm-freetype )
# ttf2tfm and ttf2pk both need the *.sfd, *.enc and *.rpl
# in their own directory. (?) Hmm...
cp -av contrib/ttf2pk/data/*.{sfd,enc,rpl} debian/$(binpkg)/$(TTF2PKINPUTS)
ln debian/$(binpkg)/$(TTF2PKINPUTS)/*.{sfd,enc,rpl} debian/$(binpkg)/$(TTF2TFMINPUTS)
cp -av contrib/ttf2pk/data/ttfonts.map debian/$(binpkg)/etc/ttf2pk
ln -s /etc/ttf2pk/ttfonts.map debian/$(binpkg)/$(TTF2PKINPUTS)
dh_installdocs
cp -av contrib/ttf2bdf/README \
debian/$(binpkg)/$(docdir)/$(binpkg)/ttf2bdf/
cp -av contrib/ttf2pfb/TODO \
debian/$(binpkg)/$(docdir)/$(binpkg)/ttf2pfb/
( cd contrib/ttf2pk && cp -av *.doc README TODO BUGS \
../../debian/$(binpkg)/$(docdir)/$(binpkg)/ttf2pk/ )
cp -av contrib/ttfbanner/README \
debian/$(binpkg)/$(docdir)/$(binpkg)/ttfbanner/
# dh_installexamples tools/ttf2bdf/iso8859.2 tools/ttf2pk/
# dh_installmenu
# dh_installmanpages
# dh_undocumented ftview.1 fttimer.1 ftlint.1 ftdump.1 \
# ftzoom.1 ftstring.1 ftstrpnm.1 fterror.1 \
# ttf2pfb.1 ttfbanner.1
# dh_installchangelogs
dh_strip
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps --dpkg-shlibdeps-params=-Ldebian/$(libpkg)/DEBIAN/shlibs
dh_gencontrol
# dh_makeshlibs
dh_md5sums
dh_builddeb

149
docs/BUGS
View File

@ -1,30 +1,30 @@
List of known FreeType 2 Bugs
-----------------------------
"Identifier" is a unique string used to uniquely identify the bug
A more complete description of the bug is found below the table of
opened bugs..
"Identifier" is a string to uniquely identify the bug. A more detailed
description of the bug is found below the table of opened bugs.
"Date" is the date where the bug was first reported or entered
in this document. Dates are in _european_ format, i.e day/month/year
"Date" is the date when the bug was first reported or entered in this
document. Dates are in _European_ format, i.e day/month/year.
"Opened By" is the name of the people who first spotted the bug.
Note that we can use abbreviations here, like:
"Opened By" is the name of the person who first spotted the bug. Note that
we can use abbreviations here, like:
"David" for David Turner
"Werner" for Werner Lemberg
etc..
"David" for David Turner
"Werner" for Werner Lemberg
etc.
"Reproducable" indicates wether the bug could be reproduced by the
development team or not (it can be specific to a given platform),
wether it always happen, or only sporadically, etc..
"Reproduceable" indicates whether the bug could be reproduced by the
development team or not (it can be specific to a given platform), whether it
always happens, or only sporadically, etc.
I. Opened bugs:
===============
I. Opened bugs
==============
Identifier Date Opened by Reproducable
Identifier Date Opened by Reproduceable
------------------------------------------------------------------------------
NO-CID-CMAPS 13-09-2001 David always
AUTOHINT-NO-SBITS 13-09-2001 David always
@ -36,8 +36,9 @@ NOT-WINDOWS-METRICS 07-10-2001 David always
II. Table of closed bugs:
=========================
II. Table of closed bugs
========================
Identifier Date Closed by Closure date
------------------------------------------------------------------------------
@ -48,70 +49,76 @@ BAD-TTNAMEID.H 12-09-2001 Antoine N/A
II. Bug descriptions:
III. Bug descriptions
=====================
NO-CID-CMAPS:
Not exactly a bug, but the CFF font driver doesn't build a Unicode
charmap from the content of font files, which prevents efficiently
using fonts in this format..
BAD-TTNAMEID.H
the file "ttnameid.h" contains various constant macro definitions
corresponding to important values defined by the TrueType specification.
Joe Man <trmetal@yahoo.com.hk> reports that:
According to the information from
TrueType v1.66
Platform ID = 3 (Microsoft)
the Encoding ID of GB2312 = 4
the Encoding ID of big5 = 3
However, I have found that
in ttnameid.h
TT_MS_ID_GB2312 = 3
TT_MS_ID_BIG_5 = 4
Which one is correct?
Antoine replied that this was a bug in the TT 1.66 specification, and
that FreeType followed the most recent TrueType/OpenType specification
here !!
NO-CID-CMAPS
Not exactly a bug, but the CFF font driver doesn't build a Unicode charmap
from the contents of font files, which prevents efficiently using fonts in
this format.
BAD-TTNAMEID.H
The file "ttnameid.h" contains various constant macro definitions
corresponding to important values defined by the TrueType specification.
Joe Man <trmetal@yahoo.com.hk> reports that:
According to the information from TrueType v1.66:
Platform ID = 3 (Microsoft)
the Encoding ID of GB2312 = 4
the Encoding ID of big5 = 3
However, I have found that in ttnameid.h:
TT_MS_ID_GB2312 = 3
TT_MS_ID_BIG_5 = 4
Which one is correct?
Antoine replied that this was a bug in the TT 1.66 specification, and that
FreeType followed the most recent TrueType/OpenType specification here!
AUTOHINT-SBITS
when trying to load a glyph, with the auto-hinter activated (i.e.
when using FT_LOAD_FORCE_AUTOHINT, or when the font driver doesn't
provide its own hinter), embedded bitmaps are _never_ loaded, unlike
the default behaviour described by the API specification.
this seems to be a bug in FT_Load_Glyph, but there is no way to solve it
efficiently without making a few important internal changes to the library's
design (more importantly, to the font driver interface)
When trying to load a glyph, with the auto-hinter activated (i.e., when
using FT_LOAD_FORCE_AUTOHINT, or when the font driver doesn't provide its
own hinter), embedded bitmaps are _never_ loaded, unlike the default
behaviour described by the API specification.
This seems to be a bug in FT_Load_Glyph(), but there is no way to solve it
efficiently without making a few important internal changes to the
library's design (more importantly, to the font driver interface).
BAD-TT-RENDERING
according to Paul Pedriana <PPedriana@maxis.com>, there is a rather
important difference between the rendering of TrueType-hinted glyphs
of current FT2 and old betas..
Tests and comparisons show a _major_ discrepancy of monochrome truetype
bytecode-hinted glyphs !! Something seems to be really fucked here !!
According to Paul Pedriana <PPedriana@maxis.com>, there is a rather
important difference between the rendering of TrueType-hinted glyphs of
current FT2 and old betas.
Tests and comparisons show a _major_ discrepancy of monochrome truetype
bytecode-hinted glyphs! Something seems to be really broken here!
BAD-THIN-LINES
it seems that the anti-aliased renderer in FreeType has problems
rendering extremely thin straight lines correctly, at least when using
the FT_Outline_Render functions..
It seems that the anti-aliased renderer in FreeType has problems rendering
extremely thin straight lines correctly, at least when using the
FT_Outline_Render() function.
NOT-WINDOWS-METRICS
FreeType doesn't always return the same metrics as Windows for ascender,
descender and text height, depending on character pixel sizes. A lot of
testing on Windows is needed to debug this properly. It might be due to
a rounding bug when computing the "x_scale" and "y_scale" values.
FreeType doesn't always return the same metrics as Windows for ascender,
descender, and text height, depending on character pixel sizes. A lot of
testing on Windows is needed to debug this properly. It might be due to a
rounding bug when computing the "x_scale" and "y_scale" values.
=== end of file ===

View File

@ -1,45 +1,43 @@
LATEST CHANGES BETWEEN 2.0.5 and 2.0.4
NOTE THAT 2.0.5 DOES NOT CONTAIN THE POSTSCRIPT HINTER. THIS MODULE WILL
NOTE THAT 2.0.5 DOES NOT CONTAIN THE POSTSCRIPT HINTER. THIS MODULE WILL
BE PART OF THE NEXT RELEASE (EITHER 2.0.6 or 2.1)
- Fixed a bug that made certain glyphs, like "Cacute", "cacute" and
"lslash" unavailable from Unicode charmaps of Postscript fonts. This
prevented the correct display of Polish text, for example.
- fixed a bug that made certain glyphs, like "Cacute", "cacute" and "lslash"
unavailable from Unicode charmaps of Postscript fonts. This prevented the
correct display of Polish text, for example.
- The kerning table of Type 1 fonts was loaded by FreeType, when its AFM
file was attached to its face, but the FT_FACE_FLAG_HAS_KERNING bit
flags was not set correctly, preventing FT_Get_Kerning to return
meaningful values.
- the kerning table of Type 1 fonts was loaded by FreeType, when its AFM
file was attached to its face, but the FT_FACE_FLAG_HAS_KERNING bit flags
was not set correctly, preventing FT_Get_Kerning to return meaningful
values..
- improved SFNT (TrueType & OpenType) charmap support. Slightly better
- Improved SFNT (TrueType & OpenType) charmap support. Slightly better
performance, as well as support for the new formats defined by the
OpenType 1.3 specification (8, 10 and 12)
- fixed a serious typo in "src/base/ftcalc.c" which caused invalid
computations in certain rare cases, producing ugly artefacts..
- the size of the EM square is computed with a more accurate algorithm
for Postscript fonts. The old one caused slight errors with embedded
fonts found in PDF documents..
OpenType 1.3 specification (8, 10, and 12)
- fixed a bug in the cache manager that prevented normal LRU behaviour
within the cache manager, causing unecessary reloads (for FT_Face and
FT_Size objects only)
- added a new function named "FT_Get_Name_Index" to retrieve the glyph
- Fixed a serious typo in "src/base/ftcalc.c" which caused invalid
computations in certain rare cases, producing ugly artefacts.
- The size of the EM square is computed with a more accurate algorithm
for Postscript fonts. The old one caused slight errors with embedded
fonts found in PDF documents.
- Fixed a bug in the cache manager that prevented normal LRU behaviour
within the cache manager, causing unnecessary reloads (for FT_Face and
FT_Size objects only).
- Added a new function named "FT_Get_Name_Index" to retrieve the glyph
index of a given glyph name, when found in a face.
- fixed a reallocation bug that generated a dangling pointer (and possibly
memory leaks) with Postscript fonts (in src/psaux/psobjs.c)
- many 16-bit correctness fixes
- removed many pedantic compiler warnings from the sources
- Fixed a reallocation bug that generated a dangling pointer (and possibly
memory leaks) with Postscript fonts (in src/psaux/psobjs.c).
- added an Amiga build directory in "builds/amiga"
- Many fixes for 16-bit correctness.
- Removed many pedantic compiler warnings from the sources.
- Added an Amiga build directory in "builds/amiga".
============================================================================
@ -48,17 +46,17 @@ LATEST CHANGES BETWEEN 2.0.4 and 2.0.3
- Fixed a rather annoying bug that was introduced in 2.0.3. Namely, the
font transformation set through FT_Set_Transform was applied twice to
auto-hinted glyphs, resulting in incorrectly rotated text output.
- Fixed _many_ compiler warnings. FT2 should now compile cleanly with
Visual C++'s most pedantic warning level (/W4). It already compiled
fine with GCC and a few other compilers.
- fixed a bug that prevented the linear advance width of composite
TrueType glyphs to be correctly returned
- Fixed a bug that prevented the linear advance width of composite
TrueType glyphs to be correctly returned.
- Fixed the Visual C++ project files located in "builds/win32/visualc"
(previous versions used older names of the library).
- Many 32-bit constants have an "L" appended to their value, in order
to improve the 16-bitness of the code. Someone is actually trying to
use FT2 on an Atari ST machine!
@ -67,7 +65,7 @@ LATEST CHANGES BETWEEN 2.0.4 and 2.0.3
FT2 on AIX systems. AIX uses "/usr/sbin/init" instead of "/sbin/init"
and wasn't previously detected as a Unix platform by the FreeType build
system.
- Updated the Unix-specific portions of the build system (new libtool
version, etc.).
@ -79,21 +77,21 @@ LATEST CHANGES BETWEEN 2.0.4 and 2.0.3
LATEST CHANGES BETWEEN 2.0.3 and 2.0.2
I. CHANGES TO THE MODULES / FONT DRIVERS
- THE AUTO-HINTER HAS BEEN SLIGHTLY IMPROVED, in order to fix several
annoying artefacts, mainly:
- Blue zone alignement of horizontal stems wasn't performed
correctly, resulting in artefacts like the "d" being placed one
pixel below the "b" in some fonts like Time New Roman.
- Overshoot thresholding wasn't performed correctly, creating
unpleasant artefacts at large character pixel sizes.
- Composite glyph loading has been simplified. This gets rid
of various artefacts where the components of a composite glyphs
were not correctly spaced.
These are the last changes to the current auto-hinting module. A new
hinting sub-system is currently in the work in order to support native
hints in Type 1 / CFF / OpenType fonts, as well as globally improve
@ -101,7 +99,7 @@ LATEST CHANGES BETWEEN 2.0.3 and 2.0.2
- The PCF driver has been fixed. It reported invalid glyph dimensions
for the fonts available on Solaris.
- The Type 1, CID and CFF drivers have been modified to fix the
computation of the EM size.
@ -115,20 +113,20 @@ LATEST CHANGES BETWEEN 2.0.3 and 2.0.2
II. HIGH-LEVEL API CHANGES
- The error code enumeration values have been changed. An error value
is decomposed in a generic error code, and a module number. see
<freetype/fterrors.h> for details.
- A new public header file has been introduced, named FT_TRIGONOMETRY_H
(include/freetype/fttrig.h), providing trigonometric functions to
compute sines, cosines, arctangents, etc. with 16.16 fixed precision.
compute sines, cosines, arctangents, etc. with 16.16 fixed precision.
The implementation is based on the CORDIC algorithm and is very fast
while being sufficiently accurate.
III. INTERNALS
- Added BeOS-specific files in the old build sub-system. Note that
no changes were required to compile the library with Jam.
@ -139,7 +137,7 @@ LATEST CHANGES BETWEEN 2.0.3 and 2.0.2
- A small memory leak that happened when opening 0-sized files (duh!)
have been fixed.
- Fixed bezier stack depth bug in the routines provided by the
FT_BBOX_H header file. Also fixed similar bugs in the rasterizers.
@ -150,25 +148,25 @@ LATEST CHANGES BETWEEN 2.0.3 and 2.0.2
- The build system has been improved and fixed, mainly to support "make"
on Windows 2000 correctly, avoid problems with "make distclean" on non
Unix systems, etc.
- Hexadecimal constants have been suffixed with "U" to avoid problems
with certain compilers on 64-bit platforms.
- A new directory named "src/tools" has been created. It contains
Python scripts and simple unit test programs used to develop the
library.
- The DocMaker tool has been moved from "docs" to "src/tools" and
has been updated with the following:
- Now accepts the "--title=XXXX" or "-t XXXX" option from the
command line to set the project's name in the generated API
reference.
- Now accepts the "--output=DIR" or "-o DIR" option from the
command line to set the output directory for all generated HTML
files.
- Now accepts the "--prefix=XXXX" or "-p XXX" option from the
command line to set the file prefix to use for all generated HTML
files.
@ -178,7 +176,7 @@ LATEST CHANGES BETWEEN 2.0.3 and 2.0.2
DocMaker can be used with other projects now, not only FT2 (e.g. MLib,
FTLayout, etc.).
===========================================================================
LATEST CHANGES BETWEEN 2.0.2 and 2.0.1

View File

@ -255,8 +255,7 @@
/* A macro used in #include statements to name the file containing */
/* the API used to manage multiple @FT_Size objects per face. */
/* */
#define FT_SIZES_H <freetype/ftsizes.h>
#define FT_SIZES_H <freetype/ftsizes.h>
/*************************************************************************/

View File

@ -18,9 +18,9 @@
/*************************************************************************/
/* */
/* Typical application would normally not need to use these functions */
/* however, they've been placed in a public API for the rare cases */
/* where they're needed.. */
/* Typical application would normally not need to use these functions. */
/* However, they have been placed in a public API for the rare cases */
/* where they are needed. */
/* */
/*************************************************************************/
@ -48,25 +48,26 @@ FT_BEGIN_HEADER
/* Managing multiple sizes per face */
/* */
/* <Description> */
/* When creating a new face object (e.g. with @FT_New_Face), a */
/* When creating a new face object (e.g. with @FT_New_Face), an */
/* @FT_Size object is automatically created and used to store all */
/* pixel-size dependent information, available in the "face->size" */
/* field. */
/* */
/* It is however possible to create more sizes for a given face, */
/* mostly in order to manage several character pixel sizes of the */
/* same font family and style. See @FT_New_Size and @FT_Done_Size */
/* same font family and style. See @FT_New_Size and @FT_Done_Size. */
/* */
/* note that @FT_Set_Pixel_Sizes and @FT_Set_Character_Size only */
/* modify the content of the current "active" size, you'll thus need */
/* to use @FT_Activate_Size to change it.. */
/* Note that @FT_Set_Pixel_Sizes and @FT_Set_Character_Size only */
/* modify the contents of the current "active" size; you thus need */
/* to use @FT_Activate_Size to change it. */
/* */
/* 99% of applications won't need the functions provided here, */
/* especially if they use the caching sub-system, so be cautious */
/* when using these.. */
/* when using these. */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/* <Function> */
@ -85,9 +86,9 @@ FT_BEGIN_HEADER
/* FreeType error code. 0 means success. */
/* */
/* <Note> */
/* You need to call FT_Activate_Size in order to select the new */
/* size for upcoming calls to @FT_Set_Pixel_Sizes, @FT_Set_Char_Size, */
/* @FT_Load_Glyph, @FT_Load_Char, etc.. */
/* You need to call @FT_Activate_Size in order to select the new size */
/* for upcoming calls to @FT_Set_Pixel_Sizes, @FT_Set_Char_Size, */
/* @FT_Load_Glyph, @FT_Load_Char, etc. */
/* */
FT_EXPORT( FT_Error )
FT_New_Size( FT_Face face,
@ -118,12 +119,13 @@ FT_BEGIN_HEADER
/* FT_Activate_Size */
/* */
/* <Description> */
/* even though it is possible to create several size objects for a */
/* Even though it is possible to create several size objects for a */
/* given face (see @FT_New_Size for details), functions like */
/* @FT_Load_Glyph or @FT_Load_Char only use the last-created one */
/* to determine the "current character pixel size. */
/* @FT_Load_Glyph or @FT_Load_Char only use the last-created one to */
/* determine the "current character pixel size". */
/* */
/* this function can be used to "activate" a previous size object */
/* This function can be used to "activate" a previously created size */
/* object. */
/* */
/* <Input> */
/* size :: A handle to a target size object. */
@ -132,7 +134,7 @@ FT_BEGIN_HEADER
/* FreeType error code. 0 means success. */
/* */
/* <Note> */
/* if "face" is the size's parent face object, this function changes */
/* If "face" is the size's parent face object, this function changes */
/* the value of "face->size" to the input size handle. */
/* */
FT_EXPORT( FT_Error )

View File

@ -300,9 +300,6 @@ FT_BEGIN_HEADER
#define FT_FACE_SIZE( x ) FT_FACE( x )->size
/* this must be kept exported -- it is used by the cache manager */
/* even though it shouldn't be considered public for now */
/*************************************************************************/
/* */
/* <Function> */

View File

@ -1932,10 +1932,11 @@
FT_EXPORT_DEF( FT_Error )
FT_Activate_Size( FT_Size size )
FT_Activate_Size( FT_Size size )
{
FT_Face face;
if ( size == NULL )
return FT_Err_Bad_Argument;
@ -1943,8 +1944,8 @@
if ( face == NULL || face->driver == NULL )
return FT_Err_Bad_Argument;
/* we don't need anything more complex than that, all size objects */
/* are already listed by the face.. */
/* we don't need anything more complex than that; all size objects */
/* are already listed by the face */
face->size = size;
return FT_Err_Ok;

View File

@ -160,7 +160,7 @@
if ( size->face == req->face )
{
FT_Activate_Size(size);
FT_Activate_Size( size );
error = FT_Set_Pixel_Sizes( req->face, req->width, req->height );
if ( error )
FT_Done_Size( size );

View File

@ -4,7 +4,7 @@
/* */
/* A new `perfect' anti-aliasing renderer (body). */
/* */
/* Copyright 2000 by */
/* Copyright 2000-2001 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -32,8 +32,8 @@
/* cc -c -D_STANDALONE_ ftgrays.c */
/* */
/* The renderer can be initialized with a call to */
/* `ft_gray_raster.gray_raster_new'; an anti-aliased bitmap can be */
/* generated with a call to `ft_gray_raster.gray_raster_render'. */
/* `ft_gray_raster.gray_raster_new'; an anti-aliased bitmap can be */
/* generated with a call to `ft_gray_raster.gray_raster_render'. */
/* */
/* See the comments and documentation in the file `ftimage.h' for */
/* more details on how the raster works. */
@ -202,16 +202,16 @@
/* TYPE DEFINITIONS */
/* */
/* don't change the following types to FT_Int or FT_Pos, since we might */
/* need to define them to "float" or "double" when experimenting with */
/* new algorithms.. */
/* don't change the following types to FT_Int or FT_Pos, since we might */
/* need to define them to "float" or "double" when experimenting with */
/* new algorithms */
typedef int TScan; /* integer scanline/pixel coordinate */
typedef long TPos; /* sub-pixel coordinate */
/* determine the type used to store cell areas. This normally takes at */
/* least PIXEL_BYTES*2 + 1, on 16-bit systems, we need to use 'longs' */
/* instead of 'ints'.. otherwise bad things happen.. */
/* determine the type used to store cell areas. This normally takes at */
/* least PIXEL_BYTES*2 + 1. On 16-bit systems, we need to use `long' */
/* instead of `int', otherwise bad things happen */
#if PIXEL_BITS <= 7
@ -219,13 +219,14 @@
#else /* PIXEL_BITS >= 8 */
/* approximately determine the size of integers using an ANSI-C header */
# include <limits.h>
# if UINT_MAX == 0xFFFFU
/* approximately determine the size of integers using an ANSI-C header */
#include <limits.h>
#if UINT_MAX == 0xFFFFU
typedef long TArea;
# else
typedef int TArea;
# endif
#else
typedef int TArea;
#endif
#endif /* PIXEL_BITS >= 8 */
@ -292,12 +293,12 @@
void* render_span_data;
int span_y;
int band_size;
int band_shoot;
int conic_level;
int cubic_level;
int band_size;
int band_shoot;
int conic_level;
int cubic_level;
void* memory;
void* memory;
jmp_buf jump_buffer;
} TRaster, *PRaster;
@ -739,7 +740,7 @@
if ( level <= 1 )
{
/* we compute the mid-point directly in order to avoid */
/* calling gray_split_conic() */
/* calling gray_split_conic() */
TPos to_x, to_y, mid_x, mid_y;
@ -1182,7 +1183,7 @@
FT_Raster raster )
{
gray_render_line( (PRaster)raster,
UPSCALE( to->x ), UPSCALE( to->y ) );
UPSCALE( to->x ), UPSCALE( to->y ) );
return 0;
}
@ -1505,9 +1506,9 @@
{
#undef SCALED
#if 0
# define SCALED( x ) ( ( (x) << shift ) - delta )
#define SCALED( x ) ( ( (x) << shift ) - delta )
#else
# define SCALED( x) (x)
#define SCALED( x ) (x)
#endif
FT_Vector v_last;
@ -1720,10 +1721,10 @@
static
const FT_Outline_Funcs interface =
{
(FT_Outline_MoveTo_Func) gray_move_to,
(FT_Outline_LineTo_Func) gray_line_to,
(FT_Outline_ConicTo_Func) gray_conic_to,
(FT_Outline_CubicTo_Func) gray_cubic_to,
(FT_Outline_MoveTo_Func) gray_move_to,
(FT_Outline_LineTo_Func) gray_line_to,
(FT_Outline_ConicTo_Func)gray_conic_to,
(FT_Outline_CubicTo_Func)gray_cubic_to,
0,
0
};
@ -1770,7 +1771,8 @@
if ( ras.max_ey > clip->yMax ) ras.max_ey = clip->yMax;
/* simple heuristic used to speed-up the bezier decomposition -- see */
/* the code in gray_render_conic() and gray_render_cubic() for more details */
/* the code in gray_render_conic() and gray_render_cubic() for more */
/* details */
ras.conic_level = 32;
ras.cubic_level = 16;