Blame | Letzte Änderung | Log anzeigen | RSS feed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1"><LINK REL="Start" HREF="index.html"><LINK REL="Contents" HREF="toc.html"><LINK REL="Prev" HREF="47WorkingwithfontsinJpGraph.html"><LINK REL="Next" HREF="472VerifyingthattheTTFfontswork.html"><STYLE TYPE="text/css"><!--BODY { font-family: serif }H1 { font-family: sans-serif }H2 { font-family: sans-serif }H3 { font-family: sans-serif }H4 { font-family: sans-serif }H5 { font-family: sans-serif }H6 { font-family: sans-serif }SUB { font-size: smaller }SUP { font-size: smaller }PRE { font-family: monospace }A { text-decoration: none }--></STYLE></HEAD><BODY><A HREF="toc.html">Contents</A><A HREF="47WorkingwithfontsinJpGraph.html">Previous</A><A HREF="472VerifyingthattheTTFfontswork.html">Next</A><HR NOSHADE><H3><A NAME="4_7_1">4.7.1 Installing TrueType fonts</A></H3><P> Since Internally TrueType fonts are rendered by locating a fontspecification file you must install the accompanying TrueType fonts indirectory of your choice. You must then tell JpGraph where these fontsmay be found by specifying the font-path in the FONT_PATH define (injpg-config.inc.php). Please note that this must be the absolute filepath and not relative to the htdocs directory. By default the path isset to<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB"> DEFINE</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">"TTF_DIR"</FONT><FONT color="#007700">,</FONT><FONT color="#DD0000">"/usr/local/fonts/ttf/"</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV></P><P> Since JpGraph must be able to tell the difference between the italicand bold versions of the same font family a standard naming conventionis used to name the files. The available fonts are also defined byDEFINES and hence you can't just copy your own TTF files to thedirectory and expect it to work. At the moment there is no "easy" wayto add new fonts but to make some (small) mods to the code. Howeverthis is expected to change in future version of JpGraph.</P><HR NOSHADE><A HREF="toc.html">Contents</A><A HREF="47WorkingwithfontsinJpGraph.html">Previous</A><A HREF="472VerifyingthattheTTFfontswork.html">Next</A></BODY></HTML>