# -*-Text-*-
###############################################################################
#
# File:         TODO
# RCS:          $Header: $
# Description:  
# Author:       Niels P. Mayer
# Created:      Fri Oct  6 00:42:04 1995
# Modified:     Fri Oct  6 00:42:29 1995 (Niels Mayer) npm@indeed.indeed
# Language:     N/A
# Package:      N/A
# Status:       Experimental (Do Not Distribute)
#
# (C) Copyright 1995, Enterprise Integration Technologies Corp.
#
###############################################################################

DONE>> (1) Need to replace tango's string data structure, with something
DONE>> that contains dynamic strings:
DONE>> 
DONE>> 	| typedef struct	_TANGO_TEXT {
DONE>> 	|    int	   color;
DONE>> 	|    char          font_name[STRINGLENGTH];
DONE>> 	|    int	   fontid;
DONE>> 	|    char	   text[STRINGLENGTH];
DONE>> 	|    int	   orient;
DONE>> 	|    int	   xext,xoff;
DONE>> 	|    int	   yext,yoff;
DONE>> 	|    } *TANGO_TEXT_PTR;
DONE>> 
DONE>> There's absolutely no reason to hold two 256 character text strings per
DONE>> text object -- especially because in WWWeasel-II, we use a single text
DONE>> tangoimageobj per *WORD*, and most words are far shorter than 256
DONE>> chars. Actually, it's worse than that, since each text object stores a
DONE>> string representation of the font it uses, and uses 256 chars for that too.
DONE>> In other words, each word will take at least 512 bytes.
DONE>> 
DONE>> Solution will need to explicitly create the font_name[] and text[] strings
DONE>> (using size appropriate for the situation), and explicitly deallocate these
DONE>> on destroy. The font situation is a bit uglier, since each "word" really
DONE>> needn't keep a string representation of the font. Could use an X FontID
DONE>> here, or use an external table. The only place where the string font name
DONE>> is useful is in the :STOREON method -- will need to handle this by some
DONE>> kind of lookup if we store the text using fontIDs.
DONE>> 
DONE>> When this gets fixed, remember to get rid of
DONE>> string_err_msg_fontstr_too_long[] and string_err_msg_text_too_long[], in
DONE>> tango.h, t_utils.h, and tic_Text.c

