This file is indexed.

/usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Text.html is in libghc-diagrams-lib-doc 0.5-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Diagrams.TwoD.Text</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Diagrams-TwoD-Text.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Diagrams-TwoD-Text.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">diagrams-lib-0.5: Embedded domain-specific language for declarative graphics</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Maintainer</th><td>diagrams-discuss@googlegroups.com</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Diagrams.TwoD.Text</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Creating text diagrams
</a></li><li><a href="#g:2">Text attributes
</a><ul><li><a href="#g:3">Font family
</a></li><li><a href="#g:4">Font size
</a></li><li><a href="#g:5">Font slant
</a></li><li><a href="#g:6">Font weight
</a></li></ul></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Very basic text primitives along with associated attributes.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:Text">Text</a>  = <a href="#v:Text">Text</a> <a href="Diagrams-TwoD-Types.html#t:T2">T2</a> <a href="Diagrams-TwoD-Text.html#t:TextAlignment">TextAlignment</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:TextAlignment">TextAlignment</a> <ul class="subs"><li>= <a href="#v:BaselineText">BaselineText</a>  </li><li>| <a href="#v:BoxAlignedText">BoxAlignedText</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>  </li></ul></li><li class="src short"><a href="#v:text">text</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Renderable">Renderable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a> b =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Diagram">Diagram</a> b <a href="Diagrams-TwoD-Types.html#t:R2">R2</a></li><li class="src short"><a href="#v:topLeftText">topLeftText</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Renderable">Renderable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a> b =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Diagram">Diagram</a> b <a href="Diagrams-TwoD-Types.html#t:R2">R2</a></li><li class="src short"><a href="#v:alignedText">alignedText</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Renderable">Renderable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a> b =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Diagram">Diagram</a> b <a href="Diagrams-TwoD-Types.html#t:R2">R2</a></li><li class="src short"><a href="#v:baselineText">baselineText</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Renderable">Renderable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a> b =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Diagram">Diagram</a> b <a href="Diagrams-TwoD-Types.html#t:R2">R2</a></li><li class="src short"><span class="keyword">newtype</span>  <a href="#t:Font">Font</a>  = <a href="#v:Font">Font</a> (<a href="/usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:getFont">getFont</a> :: <a href="Diagrams-TwoD-Text.html#t:Font">Font</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:font">font</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; a -&gt; a</li><li class="src short"><span class="keyword">newtype</span>  <a href="#t:FontSize">FontSize</a>  = <a href="#v:FontSize">FontSize</a> (<a href="/usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><a href="#v:getFontSize">getFontSize</a> :: <a href="Diagrams-TwoD-Text.html#t:FontSize">FontSize</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:fontSize">fontSize</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; a -&gt; a</li><li class="src short"><span class="keyword">data</span>  <a href="#t:FontSlant">FontSlant</a> <ul class="subs"><li>= <a href="#v:FontSlantNormal">FontSlantNormal</a>  </li><li>| <a href="#v:FontSlantItalic">FontSlantItalic</a>  </li><li>| <a href="#v:FontSlantOblique">FontSlantOblique</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:FontSlantA">FontSlantA</a> </li><li class="src short"><a href="#v:getFontSlant">getFontSlant</a> :: <a href="Diagrams-TwoD-Text.html#t:FontSlantA">FontSlantA</a> -&gt; <a href="Diagrams-TwoD-Text.html#t:FontSlant">FontSlant</a></li><li class="src short"><a href="#v:fontSlant">fontSlant</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; <a href="Diagrams-TwoD-Text.html#t:FontSlant">FontSlant</a> -&gt; a -&gt; a</li><li class="src short"><a href="#v:italic">italic</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; a -&gt; a</li><li class="src short"><a href="#v:oblique">oblique</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; a -&gt; a</li><li class="src short"><span class="keyword">data</span>  <a href="#t:FontWeight">FontWeight</a> <ul class="subs"><li>= <a href="#v:FontWeightNormal">FontWeightNormal</a>  </li><li>| <a href="#v:FontWeightBold">FontWeightBold</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:FontWeightA">FontWeightA</a> </li><li class="src short"><a href="#v:getFontWeight">getFontWeight</a> :: <a href="Diagrams-TwoD-Text.html#t:FontWeightA">FontWeightA</a> -&gt; <a href="Diagrams-TwoD-Text.html#t:FontWeight">FontWeight</a></li><li class="src short"><a href="#v:fontWeight">fontWeight</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; <a href="Diagrams-TwoD-Text.html#t:FontWeight">FontWeight</a> -&gt; a -&gt; a</li><li class="src short"><a href="#v:bold">bold</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; a -&gt; a</li></ul></div><div id="interface"><h1 id="g:1">Creating text diagrams
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Text" class="def">Text</a>  <a href="src/Diagrams-TwoD-Text.html#Text" class="link">Source</a></p><div class="doc"><p>A text primitive consists of the string contents and alignment
   specification, along with a transformation mapping from the local
   vector space of the text to the vector space in which it is
   embedded.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Text" class="def">Text</a> <a href="Diagrams-TwoD-Types.html#t:T2">T2</a> <a href="Diagrams-TwoD-Text.html#t:TextAlignment">TextAlignment</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Text" class="caption collapser" onclick="toggleSection('i:Text')">Instances</p><div id="section.i:Text" class="show"><table><tr><td class="src"><a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:Transformable">Transformable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-HasOrigin.html#t:HasOrigin">HasOrigin</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Renderable">Renderable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a> <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:NullBackend">NullBackend</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:TextAlignment" class="def">TextAlignment</a>  <a href="src/Diagrams-TwoD-Text.html#TextAlignment" class="link">Source</a></p><div class="doc"><p><code>TextAlignment</code> specifies the alignment of the text's origin.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:BaselineText" class="def">BaselineText</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:BoxAlignedText" class="def">BoxAlignedText</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:text" class="def">text</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Renderable">Renderable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a> b =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Diagram">Diagram</a> b <a href="Diagrams-TwoD-Types.html#t:R2">R2</a><a href="src/Diagrams-TwoD-Text.html#text" class="link">Source</a></p><div class="doc"><p>Create a primitive text diagram from the given string, with center
   alignment, equivalent to <code>alignedText 0.5 0.5</code>.
</p><p>Note that it <em>takes up no space</em>, as text size information is not
   available.
</p></div></div><div class="top"><p class="src"><a name="v:topLeftText" class="def">topLeftText</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Renderable">Renderable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a> b =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Diagram">Diagram</a> b <a href="Diagrams-TwoD-Types.html#t:R2">R2</a><a href="src/Diagrams-TwoD-Text.html#topLeftText" class="link">Source</a></p><div class="doc"><p>Create a primitive text diagram from the given string, origin at
   the top left corner of the text's bounding box, equivalent to 
   <code>alignedText 0.5 0.5</code>.
</p><p>Note that it <em>takes up no space</em>.
</p></div></div><div class="top"><p class="src"><a name="v:alignedText" class="def">alignedText</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Renderable">Renderable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a> b =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Diagram">Diagram</a> b <a href="Diagrams-TwoD-Types.html#t:R2">R2</a><a href="src/Diagrams-TwoD-Text.html#alignedText" class="link">Source</a></p><div class="doc"><p>Create a primitive text diagram from the given string, with the
   origin set to a point interpolated within the bounding box.  The
   first parameter varies from 0 (left) to 1 (right), and the second
   parameter from 0 (bottom) to 1 (top).
</p><p>The height of this box is determined by the font's potential ascent
   and descent, rather than the height of the particular string.
</p><p>Note that it <em>takes up no space</em>.
</p></div></div><div class="top"><p class="src"><a name="v:baselineText" class="def">baselineText</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Renderable">Renderable</a> <a href="Diagrams-TwoD-Text.html#t:Text">Text</a> b =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Core.html#t:Diagram">Diagram</a> b <a href="Diagrams-TwoD-Types.html#t:R2">R2</a><a href="src/Diagrams-TwoD-Text.html#baselineText" class="link">Source</a></p><div class="doc"><p>Create a primitive text diagram from the given string, with the
   origin set to be on the baseline, at the beginning (although not
   bounding).  This is the reference point of showText in the Cairo
   graphics library.
</p><p>Note that it <em>takes up no space</em>.
</p></div></div><h1 id="g:2">Text attributes
</h1><h2 id="g:3">Font family
</h2><div class="top"><p class="src"><span class="keyword">newtype</span>  <a name="t:Font" class="def">Font</a>  <a href="src/Diagrams-TwoD-Text.html#Font" class="link">Source</a></p><div class="doc"><p>The <code>Font</code> attribute specifies the name of a font family.  Inner
   <code>Font</code> attributes override outer ones.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Font" class="def">Font</a> (<a href="/usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Font" class="caption collapser" onclick="toggleSection('i:Font')">Instances</p><div id="section.i:Font" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Diagrams-TwoD-Text.html#t:Font">Font</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Semigroup">Semigroup</a> <a href="Diagrams-TwoD-Text.html#t:Font">Font</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:AttributeClass">AttributeClass</a> <a href="Diagrams-TwoD-Text.html#t:Font">Font</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:getFont" class="def">getFont</a> :: <a href="Diagrams-TwoD-Text.html#t:Font">Font</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Diagrams-TwoD-Text.html#getFont" class="link">Source</a></p><div class="doc"><p>Extract the font family name from a <code>Font</code> attribute.
</p></div></div><div class="top"><p class="src"><a name="v:font" class="def">font</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -&gt; a -&gt; a<a href="src/Diagrams-TwoD-Text.html#font" class="link">Source</a></p><div class="doc"><p>Specify a font family to be used for all text within a diagram.
</p></div></div><h2 id="g:4">Font size
</h2><div class="top"><p class="src"><span class="keyword">newtype</span>  <a name="t:FontSize" class="def">FontSize</a>  <a href="src/Diagrams-TwoD-Text.html#FontSize" class="link">Source</a></p><div class="doc"><p>The <code>FontSize</code> attribute specifies the size of a font's
   em-square, measured with respect to the current local vector space.
   Inner <code>FontSize</code> attributes override outer ones.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:FontSize" class="def">FontSize</a> (<a href="/usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Last">Last</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:FontSize" class="caption collapser" onclick="toggleSection('i:FontSize')">Instances</p><div id="section.i:FontSize" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Diagrams-TwoD-Text.html#t:FontSize">FontSize</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Semigroup">Semigroup</a> <a href="Diagrams-TwoD-Text.html#t:FontSize">FontSize</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:AttributeClass">AttributeClass</a> <a href="Diagrams-TwoD-Text.html#t:FontSize">FontSize</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:getFontSize" class="def">getFontSize</a> :: <a href="Diagrams-TwoD-Text.html#t:FontSize">FontSize</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a><a href="src/Diagrams-TwoD-Text.html#getFontSize" class="link">Source</a></p><div class="doc"><p>Extract the size from a <code>FontSize</code> attribute.
</p></div></div><div class="top"><p class="src"><a name="v:fontSize" class="def">fontSize</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -&gt; a -&gt; a<a href="src/Diagrams-TwoD-Text.html#fontSize" class="link">Source</a></p><div class="doc"><p>Set the font size, that is, the size of the font's em-square as
   measured within the current local vector space.  The default size
   is <code>1</code>.
</p></div></div><h2 id="g:5">Font slant
</h2><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FontSlant" class="def">FontSlant</a>  <a href="src/Diagrams-TwoD-Text.html#FontSlant" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:FontSlantNormal" class="def">FontSlantNormal</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:FontSlantItalic" class="def">FontSlantItalic</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:FontSlantOblique" class="def">FontSlantOblique</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FontSlantA" class="def">FontSlantA</a>  <a href="src/Diagrams-TwoD-Text.html#FontSlantA" class="link">Source</a></p><div class="doc"><p>The <code>FontSlantA</code> attribute specifies the slant (normal, italic,
   or oblique) that should be used for all text within a diagram.
   Inner <code>FontSlantA</code> attributes override outer ones.
</p></div><div class="subs instances"><p id="control.i:FontSlantA" class="caption collapser" onclick="toggleSection('i:FontSlantA')">Instances</p><div id="section.i:FontSlantA" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Diagrams-TwoD-Text.html#t:FontSlantA">FontSlantA</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Semigroup">Semigroup</a> <a href="Diagrams-TwoD-Text.html#t:FontSlantA">FontSlantA</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:AttributeClass">AttributeClass</a> <a href="Diagrams-TwoD-Text.html#t:FontSlantA">FontSlantA</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:getFontSlant" class="def">getFontSlant</a> :: <a href="Diagrams-TwoD-Text.html#t:FontSlantA">FontSlantA</a> -&gt; <a href="Diagrams-TwoD-Text.html#t:FontSlant">FontSlant</a><a href="src/Diagrams-TwoD-Text.html#getFontSlant" class="link">Source</a></p><div class="doc"><p>Extract the font slant from a <code><a href="Diagrams-TwoD-Text.html#t:FontSlantA">FontSlantA</a></code> attribute.
</p></div></div><div class="top"><p class="src"><a name="v:fontSlant" class="def">fontSlant</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; <a href="Diagrams-TwoD-Text.html#t:FontSlant">FontSlant</a> -&gt; a -&gt; a<a href="src/Diagrams-TwoD-Text.html#fontSlant" class="link">Source</a></p><div class="doc"><p>Specify the slant (normal, italic, or oblique) that should be
   used for all text within a diagram.  See also <code><a href="Diagrams-TwoD-Text.html#v:italic">italic</a></code> and
   <code><a href="Diagrams-TwoD-Text.html#v:oblique">oblique</a></code> for useful special cases.
</p></div></div><div class="top"><p class="src"><a name="v:italic" class="def">italic</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; a -&gt; a<a href="src/Diagrams-TwoD-Text.html#italic" class="link">Source</a></p><div class="doc"><p>Set all text in italics.
</p></div></div><div class="top"><p class="src"><a name="v:oblique" class="def">oblique</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; a -&gt; a<a href="src/Diagrams-TwoD-Text.html#oblique" class="link">Source</a></p><div class="doc"><p>Set all text using an oblique slant.
</p></div></div><h2 id="g:6">Font weight
</h2><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FontWeight" class="def">FontWeight</a>  <a href="src/Diagrams-TwoD-Text.html#FontWeight" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:FontWeightNormal" class="def">FontWeightNormal</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:FontWeightBold" class="def">FontWeightBold</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FontWeightA" class="def">FontWeightA</a>  <a href="src/Diagrams-TwoD-Text.html#FontWeightA" class="link">Source</a></p><div class="doc"><p>The <code>FontWeightA</code> attribute specifies the weight (normal or bold)
   that should be used for all text within a diagram.  Inner
   <code>FontWeightA</code> attributes override outer ones.
</p></div><div class="subs instances"><p id="control.i:FontWeightA" class="caption collapser" onclick="toggleSection('i:FontWeightA')">Instances</p><div id="section.i:FontWeightA" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Diagrams-TwoD-Text.html#t:FontWeightA">FontWeightA</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-semigroups-doc/html/Data-Semigroup.html#t:Semigroup">Semigroup</a> <a href="Diagrams-TwoD-Text.html#t:FontWeightA">FontWeightA</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:AttributeClass">AttributeClass</a> <a href="Diagrams-TwoD-Text.html#t:FontWeightA">FontWeightA</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:getFontWeight" class="def">getFontWeight</a> :: <a href="Diagrams-TwoD-Text.html#t:FontWeightA">FontWeightA</a> -&gt; <a href="Diagrams-TwoD-Text.html#t:FontWeight">FontWeight</a><a href="src/Diagrams-TwoD-Text.html#getFontWeight" class="link">Source</a></p><div class="doc"><p>Extract the font weight from a <code><a href="Diagrams-TwoD-Text.html#t:FontWeightA">FontWeightA</a></code> attribute.
</p></div></div><div class="top"><p class="src"><a name="v:fontWeight" class="def">fontWeight</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; <a href="Diagrams-TwoD-Text.html#t:FontWeight">FontWeight</a> -&gt; a -&gt; a<a href="src/Diagrams-TwoD-Text.html#fontWeight" class="link">Source</a></p><div class="doc"><p>Specify the weight (normal or bold) that should be
   used for all text within a diagram.  See also <code><a href="Diagrams-TwoD-Text.html#v:bold">bold</a></code>
   for a useful special case.
</p></div></div><div class="top"><p class="src"><a name="v:bold" class="def">bold</a> :: <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Style.html#t:HasStyle">HasStyle</a> a =&gt; a -&gt; a<a href="src/Diagrams-TwoD-Text.html#bold" class="link">Source</a></p><div class="doc"><p>Set all text using a bold font weight.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>