Permalink
Browse files

reset to default font in terminal test

  • Loading branch information...
1 parent d2acf72 commit 48960ad8545c68a908c168195dfff505d6b8dc52 sfeam committed Apr 25, 2014
Showing with 6 additions and 2 deletions.
  1. +3 −0 ChangeLog
  2. +3 −2 src/term.c
View
@@ -4,6 +4,9 @@
src/plot3d.c src/set.c: Revise the parameters passed to lp_parse() so
that the legal options can vary depending on the identity of the caller.
+ * src/term.c (test_term): Reset to default font after Bold/Italic test.
+ Bug #1387
+
2014-04-24 Dima Kogan <dima@secretsauce.net>
* src/mouse.c (do_zoom_scroll_up): Fix typo that causes incorrect
View
@@ -1,5 +1,5 @@
#ifndef lint
-static char *RCSid() { return RCSid("$Id: term.c,v 1.291 2014/04/18 21:25:25 sfeam Exp $"); }
+static char *RCSid() { return RCSid("$Id: term.c,v 1.292 2014/04/25 04:23:11 sfeam Exp $"); }
#endif
/* GNUPLOT - term.c */
@@ -1743,9 +1743,10 @@ test_term()
/* Test for enhanced text */
if (t->flags & TERM_ENHANCED_TEXT) {
char *tmptext1 = "Enhanced text: {x@_{0}^{n+1}}";
- char *tmptext2 = "&{Enhanced text: }{/:Bold Bold}{/:Italic Italic}";
+ char *tmptext2 = "&{Enhanced text: }{/:Bold Bold}{/:Italic Italic}";
(*t->put_text) (x0 + xmax_t * 0.5, y0 + ymax_t * 0.40, tmptext1);
(*t->put_text) (x0 + xmax_t * 0.5, y0 + ymax_t * 0.35, tmptext2);
+ (*t->set_font)("");
if (!already_in_enhanced_text_mode)
do_string("set termopt noenh");
}

0 comments on commit 48960ad

Please sign in to comment.