|
From: Ethan M. <merritt@u.washington.edu> - 2010-02-07 19:16:12
|
On Sunday 07 February 2010, Benjamin Lindner wrote:
> 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.
Huh. Does the "enhancedtext.dem" demo not work under [real] Windows?
It works from the Windows terminal when run under linux+wine.
> 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
Works properly under linux+wine using wgnuplot from Oct 2009.
Could it be a font path problem?
Ethan
> 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.
|