Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 1 | /***************************************************************************/ |
| 2 | /* */ |
| 3 | /* afdummy.c */ |
| 4 | /* */ |
| 5 | /* Auto-fitter dummy routines to be used if no hinting should be */ |
| 6 | /* performed (body). */ |
| 7 | /* */ |
Werner Lemberg | 332da87 | 2011-01-23 12:42:23 +0100 | [diff] [blame] | 8 | /* Copyright 2003-2005, 2011 by */ |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 9 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
| 10 | /* */ |
| 11 | /* This file is part of the FreeType project, and may only be used, */ |
| 12 | /* modified, and distributed under the terms of the FreeType project */ |
| 13 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
| 14 | /* this file you indicate that you have read the license and */ |
| 15 | /* understand and accept it fully. */ |
| 16 | /* */ |
| 17 | /***************************************************************************/ |
| 18 | |
| 19 | |
Werner Lemberg | 8bb07e6 | 2004-03-27 08:43:17 +0000 | [diff] [blame] | 20 | #include "afdummy.h" |
David Turner | 8530a22 | 2004-06-09 20:18:35 +0000 | [diff] [blame] | 21 | #include "afhints.h" |
Werner Lemberg | 713faec | 2011-02-03 19:47:13 +0100 | [diff] [blame] | 22 | #include "aferrors.h" |
Werner Lemberg | 8bb07e6 | 2004-03-27 08:43:17 +0000 | [diff] [blame] | 23 | |
| 24 | |
| 25 | static FT_Error |
| 26 | af_dummy_hints_init( AF_GlyphHints hints, |
Werner Lemberg | 8bb07e6 | 2004-03-27 08:43:17 +0000 | [diff] [blame] | 27 | AF_ScriptMetrics metrics ) |
| 28 | { |
David Turner | e664efa | 2004-06-04 17:41:59 +0000 | [diff] [blame] | 29 | af_glyph_hints_rescale( hints, |
| 30 | metrics ); |
Werner Lemberg | 332da87 | 2011-01-23 12:42:23 +0100 | [diff] [blame] | 31 | return AF_Err_Ok; |
Werner Lemberg | 8bb07e6 | 2004-03-27 08:43:17 +0000 | [diff] [blame] | 32 | } |
| 33 | |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 34 | |
Werner Lemberg | 8bb07e6 | 2004-03-27 08:43:17 +0000 | [diff] [blame] | 35 | static FT_Error |
| 36 | af_dummy_hints_apply( AF_GlyphHints hints, |
| 37 | FT_Outline* outline ) |
| 38 | { |
David Turner | e664efa | 2004-06-04 17:41:59 +0000 | [diff] [blame] | 39 | FT_UNUSED( hints ); |
| 40 | FT_UNUSED( outline ); |
| 41 | |
Werner Lemberg | 332da87 | 2011-01-23 12:42:23 +0100 | [diff] [blame] | 42 | return AF_Err_Ok; |
Werner Lemberg | 8bb07e6 | 2004-03-27 08:43:17 +0000 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | |
Werner Lemberg | 332da87 | 2011-01-23 12:42:23 +0100 | [diff] [blame] | 46 | AF_DEFINE_SCRIPT_CLASS( af_dummy_script_class, |
Werner Lemberg | 8bb07e6 | 2004-03-27 08:43:17 +0000 | [diff] [blame] | 47 | AF_SCRIPT_NONE, |
| 48 | NULL, |
| 49 | |
| 50 | sizeof( AF_ScriptMetricsRec ), |
Werner Lemberg | 8bb07e6 | 2004-03-27 08:43:17 +0000 | [diff] [blame] | 51 | |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 52 | (AF_Script_InitMetricsFunc) NULL, |
| 53 | (AF_Script_ScaleMetricsFunc)NULL, |
| 54 | (AF_Script_DoneMetricsFunc) NULL, |
| 55 | |
| 56 | (AF_Script_InitHintsFunc) af_dummy_hints_init, |
| 57 | (AF_Script_ApplyHintsFunc) af_dummy_hints_apply |
Oran Agra | 59b4af8 | 2009-04-05 18:23:38 +0300 | [diff] [blame] | 58 | ) |
Werner Lemberg | b19b081 | 2005-03-02 11:24:23 +0000 | [diff] [blame] | 59 | |
| 60 | |
| 61 | /* END */ |