beck@bongo.cs.cornell.edu (Micah Beck) (01/29/91)
Enclosed is patchlevel 1 of the Fig 2.1.1 SunView graphics editor. It fixes a bug in the mapping between PostScript text fonts and the numbers used to represent them in the Fig output file. The bug exhibited itself by a mismatch between the font specified to Fig and the font used by TransFig in PS output. This happened only for text objects with the PS-Font flag set. Any text objects created using Fig 2.1.1 patchlevel 0 with PS-Font set will need their font changed using patchlevel 1 in order to fix the problem. Micah Beck Cornell CS Dept. ---------------- *** patchlevel.h.sav Mon Jan 28 11:56:35 1991 --- patchlevel.h Mon Jan 28 11:56:46 1991 *************** *** 1 **** ! #define PATCHLEVEL 0 --- 1 ---- ! #define PATCHLEVEL 1 *** change.c.sav Sun Dec 23 14:38:41 1990 --- change.c Thu Jan 10 14:54:55 1991 *************** *** 345,351 **** PANEL_LABEL_STRING, "Font:", ATTR_LIST, psfont_text(new_text) ? psfont_names: font_names, ! PANEL_VALUE, new_text->font, 0); rigid_panel = panel_create_item(change_panel, PANEL_CYCLE, PANEL_LABEL_X, ATTR_COL(2), --- 345,351 ---- PANEL_LABEL_STRING, "Font:", ATTR_LIST, psfont_text(new_text) ? psfont_names: font_names, ! PANEL_VALUE, new_text->font+1, 0); rigid_panel = panel_create_item(change_panel, PANEL_CYCLE, PANEL_LABEL_X, ATTR_COL(2), *************** *** 430,436 **** struct pr_size size; new_text->type = (int)panel_get_value(subtype_panel); ! new_text->font = (int)panel_get_value(font_panel); new_text->size = atoi(panel_get_value(font_size_panel)); new_text->flags = (panel_get_value(rigid_panel) ? RIGID_TEXT : 0) --- 430,436 ---- struct pr_size size; new_text->type = (int)panel_get_value(subtype_panel); ! new_text->font = (int)panel_get_value(font_panel)-1; new_text->size = atoi(panel_get_value(font_size_panel)); new_text->flags = (panel_get_value(rigid_panel) ? RIGID_TEXT : 0) *************** *** 1016,1021 **** --- 1016,1022 ---- { font_names = attr_create_list( PANEL_CHOICE_STRINGS, "Default", + "Default", "Roman", "Bold", "Italic", *************** *** 1545,1551 **** get_new_default_values() { cur_texttype = (int)panel_get_value(subtype_panel); ! cur_textfont = (int)panel_get_value(font_panel); cur_textsize = atoi(panel_get_value(font_size_panel)); cur_textangle = M_PI/180*atoi(panel_get_value(angle_panel)); cur_dotgap = (int)panel_get_value(dotgap_panel)/10.0; --- 1546,1552 ---- get_new_default_values() { cur_texttype = (int)panel_get_value(subtype_panel); ! cur_textfont = (int)panel_get_value(font_panel)+1; cur_textsize = atoi(panel_get_value(font_size_panel)); cur_textangle = M_PI/180*atoi(panel_get_value(angle_panel)); cur_dotgap = (int)panel_get_value(dotgap_panel)/10.0; *************** *** 1689,1695 **** if (compound_item_selected(C_SUBTYPE)) t->type = (int)panel_get_value(subtype_panel); if (compound_item_selected(C_FONT)) t->font = ! (int)panel_get_value(font_panel); if (compound_item_selected(C_FONT_SIZE)) t->size = atoi(panel_get_value(font_size_panel)); if (compound_item_selected(C_ANGLE)) t->angle = --- 1690,1696 ---- if (compound_item_selected(C_SUBTYPE)) t->type = (int)panel_get_value(subtype_panel); if (compound_item_selected(C_FONT)) t->font = ! (int)panel_get_value(font_panel)-1; if (compound_item_selected(C_FONT_SIZE)) t->size = atoi(panel_get_value(font_size_panel)); if (compound_item_selected(C_ANGLE)) t->angle =