/usr/share/doc/libghc-hgl-doc/html/Graphics-HGL-Draw-Font.html is in libghc-hgl-doc 3.2.0.2-2build1.
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 | <!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>Graphics.HGL.Draw.Font</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_Graphics-HGL-Draw-Font.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-HGL-Draw-Font.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">HGL-3.2.0.2: A simple graphics library based on X11 or Win32</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>non-portable (requires concurrency)</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>libraries@haskell.org</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Graphics.HGL.Draw.Font</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Text fonts.
</p><p>Portability notes:
</p><ul><li> X11 does not directly support font rotation so <code><a href="Graphics-HGL-Draw-Font.html#v:createFont">createFont</a></code> and
<code><a href="Graphics-HGL-Draw-Font.html#v:mkFont">mkFont</a></code> always ignore the rotation angle argument in the X11
implementation of this library.
</li><li> Many of the font families typically available on Win32 are not
available on X11 (and <em>vice-versa</em>). In our experience, the font
families <em>courier</em>, <em>helvetica</em> and <em>times</em> are somewhat portable.
</li></ul></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:Font">Font</a> </li><li class="src short"><a href="#v:createFont">createFont</a> :: <a href="Graphics-HGL-Units.html#t:Size">Size</a> -> <a href="Graphics-HGL-Units.html#t:Angle">Angle</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a></li><li class="src short"><a href="#v:deleteFont">deleteFont</a> :: <a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:selectFont">selectFont</a> :: <a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a> -> <a href="Graphics-HGL-Draw-Monad.html#t:Draw">Draw</a> <a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a></li><li class="src short"><a href="#v:mkFont">mkFont</a> :: <a href="Graphics-HGL-Units.html#t:Size">Size</a> -> <a href="Graphics-HGL-Units.html#t:Angle">Angle</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> (<a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a> -> <a href="Graphics-HGL-Draw-Monad.html#t:Draw">Draw</a> a) -> <a href="Graphics-HGL-Draw-Monad.html#t:Draw">Draw</a> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Font" class="def">Font</a> <a href="src/Graphics-HGL-X11-Types.html#Font" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:createFont" class="def">createFont</a><a href="src/Graphics-HGL-Draw-Font.html#createFont" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-HGL-Units.html#t:Size">Size</a></td><td class="doc"><p>size of character glyphs in pixels
</p></td></tr><tr><td class="src">-> <a href="Graphics-HGL-Units.html#t:Angle">Angle</a></td><td class="doc"><p>rotation angle
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>bold font?
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>italic font?
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></td><td class="doc"><p>font family
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Create a font.
The rotation angle is ignored if the font is not a "TrueType" font
(e.g., a <code>System</code> font on Win32).
</p></div></div><div class="top"><p class="src"><a name="v:deleteFont" class="def">deleteFont</a> :: <a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Graphics-HGL-Draw-Font.html#deleteFont" class="link">Source</a></p><div class="doc"><p>Delete a font created with <code><a href="Graphics-HGL-Draw-Font.html#v:createFont">createFont</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:selectFont" class="def">selectFont</a> :: <a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a> -> <a href="Graphics-HGL-Draw-Monad.html#t:Draw">Draw</a> <a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a><a href="src/Graphics-HGL-Draw-Font.html#selectFont" class="link">Source</a></p><div class="doc"><p>Set the font for subsequent text, and return the previous font.
</p></div></div><div class="top"><p class="src"><a name="v:mkFont" class="def">mkFont</a><a href="src/Graphics-HGL-Draw-Font.html#mkFont" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-HGL-Units.html#t:Size">Size</a></td><td class="doc"><p>size of character glyphs in pixels
</p></td></tr><tr><td class="src">-> <a href="Graphics-HGL-Units.html#t:Angle">Angle</a></td><td class="doc"><p>rotation angle
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>bold font?
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>italic font?
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></td><td class="doc"><p>font family
</p></td></tr><tr><td class="src">-> (<a href="Graphics-HGL-Draw-Font.html#t:Font">Font</a> -> <a href="Graphics-HGL-Draw-Monad.html#t:Draw">Draw</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="Graphics-HGL-Draw-Monad.html#t:Draw">Draw</a> a</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Generate a font for use in a drawing, and delete it afterwards.
The rotation angle is ignored if the font is not a "TrueType" font
(e.g., a <code>System</code> font on Win32).
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|