00001 /* $Id: textpara.h,v 1.10 2008/03/06 21:40:02 ellson Exp $ $Revision: 1.10 $ */ 00002 /* vim:set shiftwidth=4 ts=8: */ 00003 00004 /********************************************************** 00005 * This software is part of the graphviz package * 00006 * http://www.graphviz.org/ * 00007 * * 00008 * Copyright (c) 1994-2004 AT&T Corp. * 00009 * and is licensed under the * 00010 * Common Public License, Version 1.0 * 00011 * by AT&T Corp. * 00012 * * 00013 * Information and Software Systems Research * 00014 * AT&T Research, Florham Park NJ * 00015 **********************************************************/ 00016 00017 #ifndef TEXTPARA_H 00018 #define TEXTPARA_H 00019 00020 #ifdef __cplusplus 00021 extern "C" { 00022 #endif 00023 00024 typedef struct _PostscriptAlias { 00025 char* name; 00026 char* family; 00027 char* weight; 00028 char* stretch; 00029 char* style; 00030 int xfig_code; 00031 char* svg_font_family; 00032 char* svg_font_weight; 00033 char* svg_font_style; 00034 } PostscriptAlias; 00035 00036 typedef struct textpara_t { 00037 char *str; /* stored in utf-8 */ 00038 char *fontname; 00039 PostscriptAlias *postscript_alias; 00040 void *layout; 00041 void (*free_layout) (void *layout); /* FIXME - this is ugly */ 00042 double fontsize, width, height, yoffset_layout, yoffset_centerline; 00043 char just; 00044 } textpara_t; 00045 00046 #ifdef __cplusplus 00047 } 00048 #endif 00049 #endif