|
From: Benjamin L. <lin...@gm...> - 2010-02-07 19:02:33
|
Hello,
Working on the copy-to-clipboard-as-emf issue I stumbled over the
bug that the windows terminal obviously ignores the font name and size
specified for labels and instead uses the default terminal's font
and size.
To reproduce:
set term windows enhanced font "arial,9"
set label 1 "e^{i{/symbol p}}=-1" at graph 0.5,0.5 font "courier,15"
plot sin(x) with linespoints
Searching the code I found that in win.trm indeed the font is explicitly
reverted to the terminal's default before processing the text output ?
If I remove this statement, at least the size is working as expected,
but the font name still is ignored?
benjamin
diff --git a/term/win.trm b/term/win.trm
--- a/term/win.trm
+++ b/term/win.trm
@@ -894,7 +894,7 @@
/* This will restore the default font
and update WIN_font and WIN_fontsize */
- WIN_set_font(NULL);
+ /*WIN_set_font(NULL); */
/* Set the recursion going. We say to keep going until a
* closing brace, but we don't really expect to find one.
|