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