Remove experimental "Latin2" writing system (FT_OPTION_AUTOFIT2)

This code has always been experimental and was never compiled
anyway (FT_OPTION_AUTOFIT2 does not appear in ftoption.h or even
any of our build files).
This commit is contained in:
David Turner 2021-06-02 18:54:41 +02:00
parent 59e95b014a
commit 15e889800a
8 changed files with 15 additions and 2498 deletions

View File

@ -1,3 +1,18 @@
2021-07-12 David Turner <david@freetype.org>
Remove experimental "Latin2" writing system (FT_OPTION_AUTOFIT2)
This code has always been experimental and was never compiled anyway
(FT_OPTION_AUTOFIT2 does not appear in ftoption.h or even any of our
build files).
* include/freetype/internal/fttrace.h: Remove 'FT_TRACE_DEF( aflatin2 )'.
* src/autofit/aflatin2.[hc]: Removed.
* src/autofit/afloader.c: Remove undocumented hook to activate Latin2 system.
* src/autofit/afstyles.h: Remove ltn2_dflt style definition.
* src/autofit/afwrtsys.h: Remove LATIN2 writing system definition.
* src/autofit/autofit.c: Updated.
2021-07-05 Werner Lemberg <wl@gnu.org>
* src/base/ftlcdfil.c (FT_Library_SetLcdGeometry): Fix argument.

View File

@ -159,7 +159,6 @@ FT_TRACE_DEF( afglobal )
FT_TRACE_DEF( afhints )
FT_TRACE_DEF( afmodule )
FT_TRACE_DEF( aflatin )
FT_TRACE_DEF( aflatin2 )
FT_TRACE_DEF( afshaper )
FT_TRACE_DEF( afwarp )

File diff suppressed because it is too large Load Diff

View File

@ -1,46 +0,0 @@
/* ATTENTION: This file doesn't compile. It is only here as a reference */
/* of an alternative latin hinting algorithm that was always */
/* marked as experimental. */
/****************************************************************************
*
* aflatin2.h
*
* Auto-fitter hinting routines for latin writing system
* (specification).
*
* Copyright (C) 2003-2021 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 AFLATIN2_H_
#define AFLATIN2_H_
#include "afhints.h"
FT_BEGIN_HEADER
/* the `latin' writing system */
AF_DECLARE_WRITING_SYSTEM_CLASS( af_latin2_writing_system_class )
/* */
FT_END_HEADER
#endif /* AFLATIN_H_ */
/* END */

View File

@ -297,12 +297,6 @@
if ( error )
goto Exit;
#ifdef FT_OPTION_AUTOFIT2
/* XXX: undocumented hook to activate the latin2 writing system. */
if ( load_flags & ( 1UL << 20 ) )
style_options = AF_STYLE_LTN2_DFLT;
#endif
/*
* Glyphs (really code points) are assigned to scripts. Script
* analysis is done lazily: For each glyph that passes through here,

View File

@ -299,15 +299,6 @@
AF_BLUE_STRINGSET_LATP,
AF_COVERAGE_DEFAULT )
#ifdef FT_OPTION_AUTOFIT2
STYLE( ltn2_dflt, LTN2_DFLT,
"Latin 2 default style",
AF_WRITING_SYSTEM_LATIN2,
AF_SCRIPT_LATN,
AF_BLUE_STRINGSET_LATN,
AF_COVERAGE_DEFAULT )
#endif
STYLE( lisu_dflt, LISU_DFLT,
"Lisu default style",
AF_WRITING_SYSTEM_LATIN,

View File

@ -26,9 +26,6 @@
#include "aflatin.h"
#include "afcjk.h"
#include "afindic.h"
#ifdef FT_OPTION_AUTOFIT2
#include "aflatin2.h"
#endif
#endif /* AFWRTSYS_H_ */
@ -44,9 +41,5 @@
WRITING_SYSTEM( latin, LATIN )
WRITING_SYSTEM( cjk, CJK )
WRITING_SYSTEM( indic, INDIC )
#ifdef FT_OPTION_AUTOFIT2
WRITING_SYSTEM( latin2, LATIN2 )
#endif
/* END */

View File

@ -26,7 +26,6 @@
#include "afhints.c"
#include "afindic.c"
#include "aflatin.c"
#include "aflatin2.c"
#include "afloader.c"
#include "afmodule.c"
#include "afranges.c"