]> granicus.if.org Git - graphviz/commitdiff
Clarify using font attributes in font names
authorEmden R. Gansner <erg@alum.mit.edu>
Mon, 16 Jun 2014 15:43:19 +0000 (11:43 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Mon, 16 Jun 2014 15:43:19 +0000 (11:43 -0400)
doc/info/attrs.html
doc/infosrc/attrs

index 43b37fa4286cc2b8c65ccbbf62ed4273d747cab4..f1d00a895119465a9c1768f1519142302943b575 100644 (file)
@@ -860,10 +860,12 @@ of the layout programs.
   Other systems may provide their own font package, such as Quartz for OS X.
   <P>
   Note that various font attributes, such as weight and slant, can be built into the
-  font name. Thus, using the <TT>fontname=times:italic</TT> will produce a slanted
-  Times font from fontconfig, while <TT>fontname=times-bold</TT> will resolve to a bold
-  Times using Quartz. Obviously, the syntax differs from system to system. 
-  You will need
+  font name. Unfortunately, the syntax varies depending on which font system is dominant. 
+  Thus, using <TT>fontname="times bold italic"</TT> will produce a bold, slanted Times font 
+  using Pango, the usual main font library. Alternatively,  
+  <TT>fontname="times:italic"</TT> will produce a slanted
+  Times font from fontconfig, while <TT>fontname="times-bold"</TT> will resolve to a bold
+  Times using Quartz. You will need
   to ascertain which package is used by your Graphviz system and refer to the relevant
   documentation.
   <P>
index ecf644afc360772d9b01d14ee52e7a7083e6af8a..ee2cacb33b6cbab8774adcda43ff21c28e37ba4b 100644 (file)
@@ -374,10 +374,12 @@ names are resolved and which fonts are available.
 Other systems may provide their own font package, such as Quartz for OS X.
 <P>
 Note that various font attributes, such as weight and slant, can be built into the
-font name. Thus, using the <TT>fontname=times:italic</TT> will produce a slanted
-Times font from fontconfig, while <TT>fontname=times-bold</TT> will resolve to a bold
-Times using Quartz. Obviously, the syntax differs from system to system. 
-You will need
+font name. Unfortunately, the syntax varies depending on which font system is dominant. 
+Thus, using <TT>fontname="times bold italic"</TT> will produce a bold, slanted Times font 
+using Pango, the usual main font library. Alternatively,  
+<TT>fontname="times:italic"</TT> will produce a slanted
+Times font from fontconfig, while <TT>fontname="times-bold"</TT> will resolve to a bold
+Times using Quartz. You will need
 to ascertain which package is used by your Graphviz system and refer to the relevant
 documentation.
 <P>