From: arif Date: Tue, 28 Oct 2008 22:17:27 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: LAST_LIBGRAPH~32^2~2945 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=747ddfb96cca1a1d8679d5a5dda4fe556ee442ae;p=graphviz *** empty log message *** --- diff --git a/cmd/smyrna/draw.c b/cmd/smyrna/draw.c index 02b2d5e0b..341aabfdb 100755 --- a/cmd/smyrna/draw.c +++ b/cmd/smyrna/draw.c @@ -459,7 +459,8 @@ static void EmbedText(xdot_op * op, int param) x = (GLfloat) op->u.text.x; if (op->u.text.align == -1) x = (GLfloat) op->u.text.x + op->u.text.width; - fontSize(view->FontSize); + fontSize(view->fontset + view->FontSize); if (param == 0) fontColor(view->penColor.R, view->penColor.G, view->penColor.B); if (param == 1) //selected diff --git a/cmd/smyrna/main.c b/cmd/smyrna/main.c index 9d346426b..0da23d4f0 100755 --- a/cmd/smyrna/main.c +++ b/cmd/smyrna/main.c @@ -117,7 +117,7 @@ int main(int argc, char *argv[]) smyrnaDir = SMYRNA_PATH; #endif -// create_font_file("c:\\pango_test.png",(float)64.0,(float)64.0); + create_font_file("c:\\pango_test.png",(float)64.0,(float)64.0); load_attributes(); #ifdef G_OS_WIN32 diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 3f1dbeaf0..f0bcedb2b 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -18,6 +18,7 @@ #ifdef WIN32 #include "windows.h" +#include "gltexfont.h" //#define SMYRNA_GLADE "C:/Projects/graphviz2/share/gui/smyrna.glade" #define SMYRNA_ATTRS "c:/Projects/graphviz2/share/gui/attrs.txt" #endif @@ -494,6 +495,7 @@ typedef struct _ViewInfo gvk_layout dfltEngine; GtkTextBuffer* consoleText; float FontSizeConst; + fontset_t* fontset; } ViewInfo; extern ViewInfo *view;