From c8362891e756a1e25aee59b153fdbbe87a1c8f76 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 5 Oct 2018 18:55:11 +1000 Subject: [PATCH] remove some files don't care about --- src/freetype/afcjk.c | 49 ------------------ src/freetype/afcjk.h | 111 ---------------------------------------- src/freetype/afindic.c | 39 -------------- src/freetype/afindic.h | 41 --------------- src/freetype/afwrtsys.h | 4 -- src/freetype/autofit.c | 2 - 6 files changed, 246 deletions(-) delete mode 100644 src/freetype/afcjk.c delete mode 100644 src/freetype/afcjk.h delete mode 100644 src/freetype/afindic.c delete mode 100644 src/freetype/afindic.h diff --git a/src/freetype/afcjk.c b/src/freetype/afcjk.c deleted file mode 100644 index 94823597e..000000000 --- a/src/freetype/afcjk.c +++ /dev/null @@ -1,49 +0,0 @@ -/***************************************************************************/ -/* */ -/* afcjk.c */ -/* */ -/* Auto-fitter hinting routines for CJK writing system (body). */ -/* */ -/* Copyright 2006-2018 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. */ -/* */ -/***************************************************************************/ - - /* - * The algorithm is based on akito's autohint patch, archived at - * - * https://web.archive.org/web/20051219160454/http://www.kde.gr.jp:80/~akito/patch/freetype2/2.1.7/ - * - */ - -#include "ft2build.h" -#include FT_ADVANCES_H -#include FT_INTERNAL_DEBUG_H - -#include "afglobal.h" -#include "aflatin.h" -#include "afcjk.h" - - AF_DEFINE_WRITING_SYSTEM_CLASS( - af_cjk_writing_system_class, - - AF_WRITING_SYSTEM_CJK, - - sizeof ( AF_CJKMetricsRec ), - - (AF_WritingSystem_InitMetricsFunc) NULL, /* style_metrics_init */ - (AF_WritingSystem_ScaleMetricsFunc)NULL, /* style_metrics_scale */ - (AF_WritingSystem_DoneMetricsFunc) NULL, /* style_metrics_done */ - (AF_WritingSystem_GetStdWidthsFunc)NULL, /* style_metrics_getstdw */ - - (AF_WritingSystem_InitHintsFunc) NULL, /* style_hints_init */ - (AF_WritingSystem_ApplyHintsFunc) NULL /* style_hints_apply */ - ) - -/* END */ diff --git a/src/freetype/afcjk.h b/src/freetype/afcjk.h deleted file mode 100644 index 13e5b4a74..000000000 --- a/src/freetype/afcjk.h +++ /dev/null @@ -1,111 +0,0 @@ -/***************************************************************************/ -/* */ -/* afcjk.h */ -/* */ -/* Auto-fitter hinting routines for CJK writing system (specification). */ -/* */ -/* Copyright 2006-2018 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 AFCJK_H_ -#define AFCJK_H_ - -#include "afhints.h" -#include "aflatin.h" - - -FT_BEGIN_HEADER - - - /* the CJK-specific writing system */ - - AF_DECLARE_WRITING_SYSTEM_CLASS( af_cjk_writing_system_class ) - - - /*************************************************************************/ - /*************************************************************************/ - /***** *****/ - /***** C J K G L O B A L M E T R I C S *****/ - /***** *****/ - /*************************************************************************/ - /*************************************************************************/ - - - /* - * CJK glyphs tend to fill the square. So we have both vertical and - * horizontal blue zones. But some glyphs have flat bounding strokes that - * leave some space between neighbour glyphs. - */ - -#define AF_CJK_IS_TOP_BLUE( b ) \ - ( (b)->properties & AF_BLUE_PROPERTY_CJK_TOP ) -#define AF_CJK_IS_HORIZ_BLUE( b ) \ - ( (b)->properties & AF_BLUE_PROPERTY_CJK_HORIZ ) -#define AF_CJK_IS_RIGHT_BLUE AF_CJK_IS_TOP_BLUE - -#define AF_CJK_MAX_WIDTHS 16 - - -#define AF_CJK_BLUE_ACTIVE ( 1U << 0 ) /* zone height is <= 3/4px */ -#define AF_CJK_BLUE_TOP ( 1U << 1 ) /* result of AF_CJK_IS_TOP_BLUE */ -#define AF_CJK_BLUE_ADJUSTMENT ( 1U << 2 ) /* used for scale adjustment */ - /* optimization */ - - - typedef struct AF_CJKBlueRec_ - { - AF_WidthRec ref; - AF_WidthRec shoot; /* undershoot */ - FT_UInt flags; - - } AF_CJKBlueRec, *AF_CJKBlue; - - - typedef struct AF_CJKAxisRec_ - { - FT_Fixed scale; - FT_Pos delta; - - FT_UInt width_count; /* number of used widths */ - AF_WidthRec widths[AF_CJK_MAX_WIDTHS]; /* widths array */ - FT_Pos edge_distance_threshold; /* used for creating edges */ - FT_Pos standard_width; /* the default stem thickness */ - FT_Bool extra_light; /* is standard width very light? */ - - /* used for horizontal metrics too for CJK */ - FT_Bool control_overshoot; - FT_UInt blue_count; - AF_CJKBlueRec blues[AF_BLUE_STRINGSET_MAX]; - - FT_Fixed org_scale; - FT_Pos org_delta; - - } AF_CJKAxisRec, *AF_CJKAxis; - - - typedef struct AF_CJKMetricsRec_ - { - AF_StyleMetricsRec root; - FT_UInt units_per_em; - AF_CJKAxisRec axis[AF_DIMENSION_MAX]; - - } AF_CJKMetricsRec, *AF_CJKMetrics; - - -/* */ - -FT_END_HEADER - -#endif /* AFCJK_H_ */ - - -/* END */ diff --git a/src/freetype/afindic.c b/src/freetype/afindic.c deleted file mode 100644 index df3aa6a50..000000000 --- a/src/freetype/afindic.c +++ /dev/null @@ -1,39 +0,0 @@ -/***************************************************************************/ -/* */ -/* afindic.c */ -/* */ -/* Auto-fitter hinting routines for Indic writing system (body). */ -/* */ -/* Copyright 2007-2018 by */ -/* Rahul Bhalerao , . */ -/* */ -/* 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 "aftypes.h" -#include "aflatin.h" -#include "afcjk.h" - - AF_DEFINE_WRITING_SYSTEM_CLASS( - af_indic_writing_system_class, - - AF_WRITING_SYSTEM_INDIC, - - sizeof ( AF_CJKMetricsRec ), - - (AF_WritingSystem_InitMetricsFunc) NULL, /* style_metrics_init */ - (AF_WritingSystem_ScaleMetricsFunc)NULL, /* style_metrics_scale */ - (AF_WritingSystem_DoneMetricsFunc) NULL, /* style_metrics_done */ - (AF_WritingSystem_GetStdWidthsFunc)NULL, /* style_metrics_getstdw */ - - (AF_WritingSystem_InitHintsFunc) NULL, /* style_hints_init */ - (AF_WritingSystem_ApplyHintsFunc) NULL /* style_hints_apply */ - ) - -/* END */ diff --git a/src/freetype/afindic.h b/src/freetype/afindic.h deleted file mode 100644 index 5688738e6..000000000 --- a/src/freetype/afindic.h +++ /dev/null @@ -1,41 +0,0 @@ -/***************************************************************************/ -/* */ -/* afindic.h */ -/* */ -/* Auto-fitter hinting routines for Indic writing system */ -/* (specification). */ -/* */ -/* Copyright 2007-2018 by */ -/* Rahul Bhalerao , . */ -/* */ -/* 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 AFINDIC_H_ -#define AFINDIC_H_ - -#include "afhints.h" - - -FT_BEGIN_HEADER - - - /* the `indic' writing system */ - - AF_DECLARE_WRITING_SYSTEM_CLASS( af_indic_writing_system_class ) - - -/* */ - -FT_END_HEADER - -#endif /* AFINDIC_H_ */ - - -/* END */ diff --git a/src/freetype/afwrtsys.h b/src/freetype/afwrtsys.h index 4675f3242..237ae8eba 100644 --- a/src/freetype/afwrtsys.h +++ b/src/freetype/afwrtsys.h @@ -24,8 +24,6 @@ #include "afdummy.h" #include "aflatin.h" -#include "afcjk.h" -#include "afindic.h" #ifdef FT_OPTION_AUTOFIT2 #include "aflatin2.h" #endif @@ -42,8 +40,6 @@ WRITING_SYSTEM( dummy, DUMMY ) WRITING_SYSTEM( latin, LATIN ) - WRITING_SYSTEM( cjk, CJK ) - WRITING_SYSTEM( indic, INDIC ) #ifdef FT_OPTION_AUTOFIT2 WRITING_SYSTEM( latin2, LATIN2 ) #endif diff --git a/src/freetype/autofit.c b/src/freetype/autofit.c index 72cdfd5b4..dddd3fe50 100644 --- a/src/freetype/autofit.c +++ b/src/freetype/autofit.c @@ -21,11 +21,9 @@ #include "afangles.c" #include "afblue.c" -#include "afcjk.c" #include "afdummy.c" #include "afglobal.c" #include "afhints.c" -#include "afindic.c" #include "aflatin.c" #include "aflatin2.c" #include "afloader.c"