2005-03-03 18:09:08 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* afdummy.c */
|
|
|
|
/* */
|
|
|
|
/* Auto-fitter dummy routines to be used if no hinting should be */
|
|
|
|
/* performed (body). */
|
|
|
|
/* */
|
2011-01-23 12:42:23 +01:00
|
|
|
/* Copyright 2003-2005, 2011 by */
|
2005-03-03 18:09:08 +01:00
|
|
|
/* 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. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
2004-03-27 09:43:17 +01:00
|
|
|
#include "afdummy.h"
|
2004-06-09 22:18:35 +02:00
|
|
|
#include "afhints.h"
|
2011-02-03 19:47:13 +01:00
|
|
|
#include "aferrors.h"
|
2004-03-27 09:43:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
static FT_Error
|
|
|
|
af_dummy_hints_init( AF_GlyphHints hints,
|
|
|
|
AF_ScriptMetrics metrics )
|
|
|
|
{
|
2004-06-04 19:41:59 +02:00
|
|
|
af_glyph_hints_rescale( hints,
|
|
|
|
metrics );
|
2011-01-23 12:42:23 +01:00
|
|
|
return AF_Err_Ok;
|
2004-03-27 09:43:17 +01:00
|
|
|
}
|
|
|
|
|
2005-03-03 18:09:08 +01:00
|
|
|
|
2004-03-27 09:43:17 +01:00
|
|
|
static FT_Error
|
|
|
|
af_dummy_hints_apply( AF_GlyphHints hints,
|
|
|
|
FT_Outline* outline )
|
|
|
|
{
|
2004-06-04 19:41:59 +02:00
|
|
|
FT_UNUSED( hints );
|
|
|
|
FT_UNUSED( outline );
|
|
|
|
|
2011-01-23 12:42:23 +01:00
|
|
|
return AF_Err_Ok;
|
2004-03-27 09:43:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-01-23 12:42:23 +01:00
|
|
|
AF_DEFINE_SCRIPT_CLASS( af_dummy_script_class,
|
2004-03-27 09:43:17 +01:00
|
|
|
AF_SCRIPT_NONE,
|
|
|
|
NULL,
|
|
|
|
|
|
|
|
sizeof( AF_ScriptMetricsRec ),
|
|
|
|
|
2005-03-03 18:09:08 +01:00
|
|
|
(AF_Script_InitMetricsFunc) NULL,
|
|
|
|
(AF_Script_ScaleMetricsFunc)NULL,
|
|
|
|
(AF_Script_DoneMetricsFunc) NULL,
|
|
|
|
|
|
|
|
(AF_Script_InitHintsFunc) af_dummy_hints_init,
|
|
|
|
(AF_Script_ApplyHintsFunc) af_dummy_hints_apply
|
2009-04-05 17:23:38 +02:00
|
|
|
)
|
2005-03-02 12:24:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|