Date: Sat, 16 Sep 2006 22:40:24 GMT From: chinsan <chinsan.tw@gmail.com> To: gnome@FreeBSD.org Subject: Re: ports/103268: [PATCH] print/freetype2: Fix TTF_BYTECODE_ENABLED Message-ID: <200609162240.k8GMeOAT040472@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/103268; it has been noted by GNATS. From: chinsan <chinsan.tw@gmail.com> To: "Joe Marcus Clarke" <marcus@marcuscom.com> Cc: bug-followup@freebsd.org Subject: Re: ports/103268: [PATCH] print/freetype2: Fix TTF_BYTECODE_ENABLED Date: Sun, 17 Sep 2006 06:30:27 +0800 2006/9/17, Joe Marcus Clarke <marcus@marcuscom.com>: > What exactly is wrong with it? Your description doesn't include any > details. Hi, marcus: Sorry, I forget to write the detail of this bug. :p the default freetype2 port seems like enable TTF_BYTECODE function by default. <quote from /usr/ports/print/freetype2/Makefile> .if !defined(WITHOUT_TTF_BYTECODE_ENABLED) CFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER .endif </quote> In fact, it is not enabled by default: <quote from /usr/local/include/freetype2/freetype/config/ftoption.h> /* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */ </quote> Therefore, this(freetype/config/ftoption.h) does not work with -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER. However, when TT_CONFIG_OPTION_UNPATENTED_HINTING is defined, freetype2 will still use auto-hinter by default, except the applications use especially way to use BYTECODE_INTERPRETER. So, I made a patch with the following result: diff -ruN work/freetype-2.1.10/include/freetype/config/ftoption.h.bak work/freetype-2.1.10/include/freetype/config/ftoption.h --- work/freetype-2.1.10/include/freetype/config/ftoption.h.bak Mon Jun 6 23:37:53 2005 +++ work/freetype-2.1.10/include/freetype/config/ftoption.h Fri Sep 15 22:48:04 2006 @@ -436,7 +436,7 @@ /* Do not #undef this macro here, since the build system might */ /* define it for certain configurations only. */ /* */ -/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */ +#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER /*************************************************************************/ @@ -448,7 +448,7 @@ /* FT_PARAM_TAG_UNPATENTED_HINTING; or when the debug hook */ /* FT_DEBUG_HOOK_UNPATENTED_HINTING is globally activated. */ /* */ -#define TT_CONFIG_OPTION_UNPATENTED_HINTING +/* #define TT_CONFIG_OPTION_UNPATENTED_HINTING */ /*************************************************************************/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609162240.k8GMeOAT040472>