wolffd@0: /* $Id: textpara.h,v 1.13 2009/06/03 01:10:52 ellson Exp $ $Revision: 1.13 $ */ wolffd@0: /* vim:set shiftwidth=4 ts=8: */ wolffd@0: wolffd@0: /********************************************************** wolffd@0: * This software is part of the graphviz package * wolffd@0: * http://www.graphviz.org/ * wolffd@0: * * wolffd@0: * Copyright (c) 1994-2004 AT&T Corp. * wolffd@0: * and is licensed under the * wolffd@0: * Common Public License, Version 1.0 * wolffd@0: * by AT&T Corp. * wolffd@0: * * wolffd@0: * Information and Software Systems Research * wolffd@0: * AT&T Research, Florham Park NJ * wolffd@0: **********************************************************/ wolffd@0: wolffd@0: #ifndef TEXTPARA_H wolffd@0: #define TEXTPARA_H wolffd@0: wolffd@0: #ifdef __cplusplus wolffd@0: extern "C" { wolffd@0: #endif wolffd@0: wolffd@0: typedef struct _PostscriptAlias { wolffd@0: char* name; wolffd@0: char* family; wolffd@0: char* weight; wolffd@0: char* stretch; wolffd@0: char* style; wolffd@0: int xfig_code; wolffd@0: char* svg_font_family; wolffd@0: char* svg_font_weight; wolffd@0: char* svg_font_style; wolffd@0: } PostscriptAlias; wolffd@0: wolffd@0: typedef struct textpara_t { wolffd@0: char *str; /* stored in utf-8 */ wolffd@0: char *fontname; wolffd@0: PostscriptAlias *postscript_alias; wolffd@0: void *layout; wolffd@0: void (*free_layout) (void *layout); /* FIXME - this is ugly */ wolffd@0: double fontsize, width, height, yoffset_layout, yoffset_centerline; wolffd@0: char just; /* 'l' 'n' 'r' */ wolffd@0: } textpara_t; wolffd@0: wolffd@0: #ifdef __cplusplus wolffd@0: } wolffd@0: #endif wolffd@0: #endif