Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 86c1aa1008edd0cfec0ed724afe2ba4d > files > 60

ghc-pango-devel-0.11.2-2.fc14.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Graphics.Rendering.Pango.Rendering</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Graphics-Rendering-Pango-Rendering.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>pango-0.11.2: Binding to the Pango text rendering engine.</TD
><TD CLASS="topbut"
><A HREF="src/Graphics-Rendering-Pango-Rendering.html"
>Source code</A
></TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Graphics.Rendering.Pango.Rendering</FONT
></TD
><TD ALIGN="right"
><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="infohead"
>Portability</TD
><TD CLASS="infoval"
>portable (depends on GHC)</TD
></TR
><TR
><TD CLASS="infohead"
>Stability</TD
><TD CLASS="infoval"
>provisional</TD
></TR
><TR
><TD CLASS="infohead"
>Maintainer</TD
><TD CLASS="infoval"
>gtk2hs-users@lists.sourceforge.net</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><B
>Contents</B
></TD
></TR
><TR
><TD
><DL
><DT
><A HREF="#1"
><TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
>: Partition text into units with similar attributes.
</A
></DT
><DT
><A HREF="#2"
><TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
>: Turn text segments into glyph sequences.
</A
></DT
></DL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
><P
>Functions to run the rendering pipeline.
</P
><UL
><LI
> This module provides elementary rendering functions. For a simpler
 interface, consider using <TT
><A HREF="Graphics-Rendering-Pango-Layout.html#t%3APangoLayout"
>PangoLayout</A
></TT
>s.
</LI
><LI
> The Pango rendering pipeline takes a string of Unicode characters,
 divides them into sequences of letters that have the same characteristics
 such as font, size, color, etc. Such a sequence is called <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
>.
 Each <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
> is then converted into one <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
>, that is
 an actual sequence of glyphs,
 where several characters might be turned into legatures or clusters,
 e.g. an &quot;e&quot; and an accent modifier are turned into a single glyph. These
 <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
>s can then be rendered onto the output device with functions
 such as Graphics.Rendering.Cairo.cairoShowGlyphString.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3APangoItem"
>PangoItem</A
> </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApangoItemize"
>pangoItemize</A
> :: <A HREF="Graphics-Rendering-Pango-Context.html#t%3APangoContext"
>PangoContext</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; [<A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoAttribute"
>PangoAttribute</A
>] -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> [<A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
>]</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApangoItemGetFontMetrics"
>pangoItemGetFontMetrics</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-Rendering-Pango-Enums.html#t%3AFontMetrics"
>FontMetrics</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApangoItemGetFont"
>pangoItemGetFont</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-Rendering-Pango-Font.html#t%3AFont"
>Font</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApangoItemGetLanguage"
>pangoItemGetLanguage</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-Rendering-Pango-Enums.html#t%3ALanguage"
>Language</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3AGlyphItem"
>GlyphItem</A
> </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApangoShape"
>pangoShape</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AglyphItemExtents"
>glyphItemExtents</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoRectangle"
>PangoRectangle</A
>, <A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoRectangle"
>PangoRectangle</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AglyphItemExtentsRange"
>glyphItemExtentsRange</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoRectangle"
>PangoRectangle</A
>, <A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoRectangle"
>PangoRectangle</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AglyphItemIndexToX"
>glyphItemIndexToX</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AglyphItemXToIndex"
>glyphItemXToIndex</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AglyphItemGetLogicalWidths"
>glyphItemGetLogicalWidths</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> [<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
>]</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AglyphItemSplit"
>glyphItemSplit</A
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
>, <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
>)</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="1"
><A NAME="1"
><TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
>: Partition text into units with similar attributes.
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:PangoItem"
><A NAME="t%3APangoItem"
></A
></A
><B
>PangoItem</B
>  </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-BasicTypes.html#PangoItem"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>A sequence of characters that are rendered with the same settings.
</P
><UL
><LI
> A preprocessing stage done by itemize splits the input text into
 several chunks such that each chunk can be rendered with the same
 font, direction, slant, etc. Some attributes such as the color,
 underline or strikethrough do not affect a break into several
 <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
>s. See also <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
>.
</LI
></UL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pangoItemize"
><A NAME="v%3ApangoItemize"
></A
></A
><B
>pangoItemize</B
> :: <A HREF="Graphics-Rendering-Pango-Context.html#t%3APangoContext"
>PangoContext</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; [<A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoAttribute"
>PangoAttribute</A
>] -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> [<A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
>]</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-Rendering.html#pangoItemize"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Turn a string into a sequence of glyphs.
</P
><UL
><LI
> Partitions the input string into segments with the same text direction
 and shaping engine. The generated list of items will be in logical order
 (the start offsets of the items are ascending).
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pangoItemGetFontMetrics"
><A NAME="v%3ApangoItemGetFontMetrics"
></A
></A
><B
>pangoItemGetFontMetrics</B
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-Rendering-Pango-Enums.html#t%3AFontMetrics"
>FontMetrics</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-Rendering.html#pangoItemGetFontMetrics"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Retrieve the metrics of the font that was chosen to break the given
 <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
>.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pangoItemGetFont"
><A NAME="v%3ApangoItemGetFont"
></A
></A
><B
>pangoItemGetFont</B
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-Rendering-Pango-Font.html#t%3AFont"
>Font</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-Structs.html#pangoItemGetFont"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Extract the font used for this <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
>.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pangoItemGetLanguage"
><A NAME="v%3ApangoItemGetLanguage"
></A
></A
><B
>pangoItemGetLanguage</B
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-Rendering-Pango-Enums.html#t%3ALanguage"
>Language</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-Structs.html#pangoItemGetLanguage"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Extract the <TT
><A HREF="Graphics-Rendering-Pango-Enums.html#t%3ALanguage"
>Language</A
></TT
> used for this <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
>.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="2"
><A NAME="2"
><TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
>: Turn text segments into glyph sequences.
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:GlyphItem"
><A NAME="t%3AGlyphItem"
></A
></A
><B
>GlyphItem</B
>  </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-BasicTypes.html#GlyphItem"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>A sequence of glyphs for a chunk of a string.
</P
><UL
><LI
> A glyph item contains the graphical representation of a <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
>.
 Clusters (like <TT
>e</TT
> and an accent modifier) as well as legatures
 (such as <TT
>ffi</TT
> turning into a single letter that omits the dot over the
 <TT
>i</TT
>) are usually represented as a single glyph.
</LI
></UL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pangoShape"
><A NAME="v%3ApangoShape"
></A
></A
><B
>pangoShape</B
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-Rendering.html#pangoShape"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Turn a <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
> into a <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
>.
</P
><UL
><LI
> Turns a <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3APangoItem"
>PangoItem</A
></TT
>, that is, sequence of characters with the same
 attributes such as font, size and color, into a <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
> which
 contains the graphical representation of these characters. <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
>s
 can be rendered directly (and several times) onto screens.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:glyphItemExtents"
><A NAME="v%3AglyphItemExtents"
></A
></A
><B
>glyphItemExtents</B
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoRectangle"
>PangoRectangle</A
>, <A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoRectangle"
>PangoRectangle</A
>)</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-GlyphStorage.html#glyphItemExtents"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Ask for bounding rectangles of this glyph sequence.
</P
><UL
><LI
> Compute the logical and ink extents of a glyph string. The
 logical extend is used for positioning, the ink size is the smallest
 bounding box that includes all character pixels. The ink size can be
 smaller or larger that the logical layout.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:glyphItemExtentsRange"
><A NAME="v%3AglyphItemExtentsRange"
></A
></A
><B
>glyphItemExtentsRange</B
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoRectangle"
>PangoRectangle</A
>, <A HREF="Graphics-Rendering-Pango-Enums.html#t%3APangoRectangle"
>PangoRectangle</A
>)</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-GlyphStorage.html#glyphItemExtentsRange"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Ask for bounding rectangles for a sub-range of a glyph sequence.
</P
><UL
><LI
> The returned rectangles are relative to the given sub-range, that is,
 the result of this function is the same as if <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#v%3AglyphItemExtents"
>glyphItemExtents</A
></TT
>
 were called on the sub-string.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:glyphItemIndexToX"
><A NAME="v%3AglyphItemIndexToX"
></A
></A
><B
>glyphItemIndexToX</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-GlyphStorage.html#glyphItemIndexToX"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TD
><TD CLASS="rdoc"
>the rendered string
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>the index into the string
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
><TD CLASS="rdoc"
>return the beginning (<TT
>False</TT
>) or the end
 of the character
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
><P
>Get the horizontal position of a character.
</P
><UL
><LI
> Clusters (e.g. &quot;e&quot; with an accent modifier) are divided up into equal
 portions.
</LI
></UL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:glyphItemXToIndex"
><A NAME="v%3AglyphItemXToIndex"
></A
></A
><B
>glyphItemXToIndex</B
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
>)</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-GlyphStorage.html#glyphItemXToIndex"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Get the character at the given horizontal position.
</P
><UL
><LI
> The position is clipped to the width of this line.
</LI
><LI
> The function returns the position in the string that corresponds
 to the given horizontal location. Furthermore, if the position lies
 on the first half of the character, <TT
>False</TT
> is returned.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:glyphItemGetLogicalWidths"
><A NAME="v%3AglyphItemGetLogicalWidths"
></A
></A
><B
>glyphItemGetLogicalWidths</B
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> [<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
>]</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-GlyphStorage.html#glyphItemGetLogicalWidths"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Retrieve the width of every character in a string.
</P
><UL
><LI
> The boolean parameter
 determines if the returned array starts with the leftmost glyph
 (<TT
>False</TT
>) or with the rightmost glyph (<TT
>True</TT
>). If <TT
>Nothing</TT
> is
 passed in, the direction is taken from the <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
>, i.e.,
 the array starts with the leftmost glyph for left-to-rigth text
 and with the rightmost glyph for right-to-left text. When multiple
 characters compose a single glyph, the width of this glyph is
 divided among the characters that compose this cluster.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:glyphItemSplit"
><A NAME="v%3AglyphItemSplit"
></A
></A
><B
>glyphItemSplit</B
> :: <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
>, <A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
>)</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-Rendering-Pango-GlyphStorage.html#glyphItemSplit"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Split a <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
> at the given index.
</P
><UL
><LI
> The given <TT
><A HREF="Graphics-Rendering-Pango-Rendering.html#t%3AGlyphItem"
>GlyphItem</A
></TT
> is split at the given index. The index must be
 at least one and not greater or equal to length, i.e. the item must
 be split into two non-empty segments. The function throws an
 <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Control-Exception-Base.html#t%3AArrayException"
>ArrayException</A
></TT
> if the index is out of bounds.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.6.1</TD
></TR
></TABLE
></BODY
></HTML
>