|
|
|
@ -3,6 +3,7 @@ |
|
|
|
* Wolfgang Muees 27.10.97 |
|
|
|
* Holger Vogt 07.12.01 |
|
|
|
* Holger Vogt 05.12.07 |
|
|
|
* Holger Vogt 01.11.18 |
|
|
|
*/ |
|
|
|
|
|
|
|
#include "ngspice/ngspice.h" |
|
|
|
@ -71,7 +72,7 @@ extern void com_hardcopy(wordlist *wl); |
|
|
|
#define M_LN10 2.30258509299404568402 |
|
|
|
#endif |
|
|
|
|
|
|
|
#define DEF_FONTW "Courier" |
|
|
|
#define DEF_FONTW "Arial" |
|
|
|
|
|
|
|
/* local variables */ |
|
|
|
static int IsRegistered = 0; /* 1 if window class is registered */ |
|
|
|
@ -864,9 +865,6 @@ WIN_Text(char *text, int x, int y, int angle) |
|
|
|
tpWindowData wd; |
|
|
|
HFONT hfont; |
|
|
|
LOGFONT lf; |
|
|
|
NG_IGNORE(angle); |
|
|
|
|
|
|
|
int CentiDegrees = 0; |
|
|
|
|
|
|
|
if (!currentgraph) |
|
|
|
return 0; |
|
|
|
@ -877,8 +875,8 @@ WIN_Text(char *text, int x, int y, int angle) |
|
|
|
|
|
|
|
lf.lfHeight = (int) (1.1 * currentgraph->fontheight); |
|
|
|
lf.lfWidth = 0; |
|
|
|
lf.lfEscapement = CentiDegrees; |
|
|
|
lf.lfOrientation = CentiDegrees; |
|
|
|
lf.lfEscapement = angle * 10; |
|
|
|
lf.lfOrientation = angle * 10; |
|
|
|
lf.lfWeight = 500; |
|
|
|
lf.lfItalic = 0; |
|
|
|
lf.lfUnderline = 0; |
|
|
|
@ -894,9 +892,7 @@ WIN_Text(char *text, int x, int y, int angle) |
|
|
|
(void) lstrcpy(lf.lfFaceName, DEF_FONTW); |
|
|
|
|
|
|
|
if (!cp_getvar("wfont_size", CP_NUM, &(lf.lfHeight), 0)) |
|
|
|
lf.lfHeight = (int) (1.1 * currentgraph->fontheight); |
|
|
|
|
|
|
|
// lstrcpy (lf.lfFaceName, "Courier"/*"Times New Roman"*/); |
|
|
|
lf.lfHeight = (int) (1.3 * currentgraph->fontheight); |
|
|
|
|
|
|
|
hfont = CreateFontIndirect (&lf); |
|
|
|
SelectObject(wd->hDC, hfont); |
|
|
|
|