Bugs item #1668288, was opened at 2007-02-25 02:51 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102915&aid=1668288&group_id=2915
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Font directory not found on Win2k/WinNT Initial Comment: Plplot v. 5.6.1 with freetype support fails on initialization when run on Win2K/WinNT; everything is ok on Win95 & WinXP. The cause seems that plfreetype.c, when compiled on MS platforms, searches for fonts only in c:\windows\fonts and c:\windows\system\fonts. By default, WinNT and Win2K installs the operating system in the c:\WinNT folder, so the "search-for-fonts" algoirithm fails. Adding the following code in plfreetype.c, starting at line 526 (before prompting the "Could not find font path") should solve the problem (at least, for me it worked!) else if ((a = getenv("WINDIR")) != NULL) { strcpy(font_dir,a); for (a = font_dir; *a; a++) if (*a == '\\') *a = '/'; strcat(font_dir,"/fonts/"); } Best regards, Gianfranco Zuliani [EMAIL PROTECTED] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102915&aid=1668288&group_id=2915 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel