1 /* Copyright (C) 2000 Aladdin Enterprises. All rights reserved. 2 3 This software is provided AS-IS with no warranty, either express or 4 implied. 5 6 This software is distributed under license and may not be copied, 7 modified or distributed except as expressly authorized under the terms 8 of the license contained in the file LICENSE in this distribution. 9 10 For more information about licensing, please refer to 11 http://www.ghostscript.com/licensing/. For information on 12 commercial licensing, go to http://www.artifex.com/licensing/ or 13 contact Artifex Software, Inc., 101 Lucas Valley Road #110, 14 San Rafael, CA 94903, U.S.A., +1(415)492-9861. 15 */ 16 17 /* $Id: gxchrout.h,v 1.5 2002/06/16 08:45:43 lpd Exp $ */ 18 /* Shared procedures for outline character rendering */ 19 20 #ifndef gxchrout_INCLUDED 21 # define gxchrout_INCLUDED 22 23 #ifndef gs_imager_state_DEFINED 24 # define gs_imager_state_DEFINED 25 typedef struct gs_imager_state_s gs_imager_state; 26 #endif 27 28 /* 29 * Determine the flatness for rendering a character in an outline font. 30 * This may be less than the flatness in the imager state. 31 * The second argument is the default scaling for the font: 0.001 for 32 * Type 1 fonts, 1.0 for TrueType fonts. 33 */ 34 double gs_char_flatness(const gs_imager_state *pis, floatp default_scale); 35 36 #endif /* gxchrout_INCLUDED */ 37