Article View: comp.text
Article #2423Fig 2.1.1 patchlevel 1
From: Micah Beck
Date: Mon, 28 Jan 1991 17:12
Date: Mon, 28 Jan 1991 17:12
100 lines
4275 bytes
4275 bytes
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 =
Technical Details
Message-ID:
<51270@cornell.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!caen!zaphod.mps.ohio-state.edu!think.com!mintaka!mit-eddie!uw-beaver!cornell!beckShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!caen!zaphod.mps.ohio-state.edu!think.com!mintaka!mit-eddie!uw-beaver!cornell!beck From: beck@bongo.cs.cornell.edu (Micah Beck) Newsgroups: comp.text,comp.text.tex Subject: Fig 2.1.1 patchlevel 1 Message-ID: <51270@cornell.UUCP> Date: 28 Jan 91 17:12:37 GMT Sender: nobody@cornell.UUCP Reply-To: beck@cs.cornell.edu (Micah Beck) Distribution: comp Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 100