[openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Stephan Assmus <superstippi@xxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Fri, 04 Apr 2008 12:31:55 +0200
Stefano Ceccherini wrote:
> 2008/4/4, Stephan Assmus <superstippi@xxxxxx>:
> > You might confuse this with the hinting algorithm. Freetype offers a
> > compile time option to use hinting based on embedded byte code
> > interpretation, which is said to be patented by Apple. It is currently
> > turned on in our Freetype config.h,
>
> I think it's turned off, actually.
At some point, I turned it on, but it might have changed when Freetype was
updated, Korli?
Here is the relevant snipped from ftoption.h, which does not make me any
smarter:
/*************************************************************************/
/* */
/* 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. */
/* */
/* Do not #undef this macro here, since the build system might */
/* define it for certain configurations only. */
/* */
#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
/*************************************************************************/
/* */
/* If you define TT_CONFIG_OPTION_UNPATENTED_HINTING, a special version */
/* of the TrueType bytecode interpreter is used that doesn't implement */
/* any of the patented opcodes and algorithms. Note that the */
/* the TT_CONFIG_OPTION_UNPATENTED_HINTING macro is *ignored* if you */
/* define TT_CONFIG_OPTION_BYTECODE_INTERPRETER; with other words, */
/* either define TT_CONFIG_OPTION_BYTECODE_INTERPRETER or */
/* TT_CONFIG_OPTION_UNPATENTED_HINTING but not both at the same time. */
/* */
/* This macro is only useful for a small number of font files (mostly */
/* for Asian scripts) that require bytecode interpretation to properly */
/* load glyphs. For all other fonts, this produces unpleasant results, */
/* thus the unpatented interpreter is never used to load glyphs from */
/* TrueType fonts unless one of the following two options is used. */
/* */
/* - The unpatented interpreter is explicitly activated by the user */
/* through the FT_PARAM_TAG_UNPATENTED_HINTING parameter tag */
/* when opening the FT_Face. */
/* */
/* - FreeType detects that the FT_Face corresponds to one of the */
/* `trick' fonts (e.g., `Mingliu') it knows about. The font engine */
/* contains a hard-coded list of font names and other matching */
/* parameters (see function `tt_face_init' in file */
/* `src/truetype/ttobjs.c'). */
/* */
/* Here a sample code snippet for using FT_PARAM_TAG_UNPATENTED_HINTING. */
/* */
/* { */
/* FT_Parameter parameter; */
/* FT_Open_Args open_args; */
/* */
/* */
/* parameter.tag = FT_PARAM_TAG_UNPATENTED_HINTING; */
/* */
/* open_args.flags = FT_OPEN_PATHNAME | FT_OPEN_PARAMS; */
/* open_args.pathname = my_font_pathname; */
/* open_args.num_params = 1; */
/* open_args.params = ¶meter; */
/* */
/* error = FT_Open_Face( library, &open_args, index, &face ); */
/* ... */
/* } */
/* */
#define TT_CONFIG_OPTION_UNPATENTED_HINTING
Best regards,
-Stephan
- Follow-Ups:
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Stefano Ceccherini
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Jonas Sundström
- References:
- [openbeos] GSoC: Sub-pixel antialiasing for font rendering
- From: Andrej Spielmann
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Curtis Wanner
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Stephan Assmus
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Stefano Ceccherini
Other related posts:
- » [openbeos] GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- » [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Stefano Ceccherini
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Jonas Sundström
- [openbeos] GSoC: Sub-pixel antialiasing for font rendering
- From: Andrej Spielmann
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Curtis Wanner
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Stephan Assmus
- [openbeos] Re: GSoC: Sub-pixel antialiasing for font rendering
- From: Stefano Ceccherini