From: Emden R. Gansner Date: Mon, 16 Jun 2014 15:43:19 +0000 (-0400) Subject: Clarify using font attributes in font names X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14790872aeba28bc051c55568b9bb47753a3eac0;p=graphviz Clarify using font attributes in font names --- diff --git a/doc/info/attrs.html b/doc/info/attrs.html index 43b37fa42..f1d00a895 100644 --- a/doc/info/attrs.html +++ b/doc/info/attrs.html @@ -860,10 +860,12 @@ of the layout programs. Other systems may provide their own font package, such as Quartz for OS X.

Note that various font attributes, such as weight and slant, can be built into the - font name. Thus, using the fontname=times:italic will produce a slanted - Times font from fontconfig, while fontname=times-bold 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 fontname="times bold italic" will produce a bold, slanted Times font + using Pango, the usual main font library. Alternatively, + fontname="times:italic" will produce a slanted + Times font from fontconfig, while fontname="times-bold" 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.

diff --git a/doc/infosrc/attrs b/doc/infosrc/attrs index ecf644afc..ee2cacb33 100644 --- a/doc/infosrc/attrs +++ b/doc/infosrc/attrs @@ -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.

Note that various font attributes, such as weight and slant, can be built into the -font name. Thus, using the fontname=times:italic will produce a slanted -Times font from fontconfig, while fontname=times-bold 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 fontname="times bold italic" will produce a bold, slanted Times font +using Pango, the usual main font library. Alternatively, +fontname="times:italic" will produce a slanted +Times font from fontconfig, while fontname="times-bold" 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.