Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e5ca2a835cd2fcb12ceeb92cf0365cf5 > files > 98

ocaml-camlimages-4.0.1-2.fc15.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Color.html">
<link rel="next" href="Ftlow.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Bitmap" rel="Chapter" href="Bitmap.html">
<link title="Blend" rel="Chapter" href="Blend.html">
<link title="Bmp" rel="Chapter" href="Bmp.html">
<link title="Cmyk32" rel="Chapter" href="Cmyk32.html">
<link title="Color" rel="Chapter" href="Color.html">
<link title="Freetype" rel="Chapter" href="Freetype.html">
<link title="Ftlow" rel="Chapter" href="Ftlow.html">
<link title="Fttext" rel="Chapter" href="Fttext.html">
<link title="Genimage" rel="Chapter" href="Genimage.html">
<link title="Gif" rel="Chapter" href="Gif.html">
<link title="Graphic_image" rel="Chapter" href="Graphic_image.html">
<link title="Images" rel="Chapter" href="Images.html">
<link title="Index16" rel="Chapter" href="Index16.html">
<link title="Index8" rel="Chapter" href="Index8.html">
<link title="Info" rel="Chapter" href="Info.html">
<link title="Jis_unicode" rel="Chapter" href="Jis_unicode.html">
<link title="Jpeg" rel="Chapter" href="Jpeg.html">
<link title="Mstring" rel="Chapter" href="Mstring.html">
<link title="OColor" rel="Chapter" href="OColor.html">
<link title="OImage" rel="Chapter" href="OImage.html">
<link title="OImages" rel="Chapter" href="OImages.html">
<link title="OXimage2" rel="Chapter" href="OXimage2.html">
<link title="OXvthumb" rel="Chapter" href="OXvthumb.html">
<link title="Png" rel="Chapter" href="Png.html">
<link title="Ppm" rel="Chapter" href="Ppm.html">
<link title="Ps" rel="Chapter" href="Ps.html">
<link title="Reduce" rel="Chapter" href="Reduce.html">
<link title="Region" rel="Chapter" href="Region.html">
<link title="Rgb24" rel="Chapter" href="Rgb24.html">
<link title="Rgba32" rel="Chapter" href="Rgba32.html">
<link title="Tmpfile" rel="Chapter" href="Tmpfile.html">
<link title="Ximage2" rel="Chapter" href="Ximage2.html">
<link title="Xpm" rel="Chapter" href="Xpm.html">
<link title="Xvthumb" rel="Chapter" href="Xvthumb.html"><title>Freetype</title>
</head>
<body>
<div class="navbar"><a href="Color.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Ftlow.html">Next</a>
</div>
<center><h1>Module <a href="type_Freetype.html">Freetype</a></h1></center>
<br>
<pre><span class="keyword">module</span> Freetype: <code class="code">sig</code> <a href="Freetype.html">..</a> <code class="code">end</code></pre>type for Freetype library<br>
<hr width="100%">
<pre><span class="keyword">type</span> <a name="TYPEt"></a><code class="type"></code>t </pre>
<div class="info">
type for Freetype library<br>
</div>

<pre><span class="keyword">val</span> <a name="VALinit"></a>init : <code class="type">unit -> <a href="Freetype.html#TYPEt">t</a></code></pre><div class="info">
<code class="code">init ()</code> initializes the Freetype library.
       The returned library is required to load fonts.<br>
</div>
<pre><span class="keyword">type</span> <a name="TYPEface"></a><code class="type"></code>face </pre>
<div class="info">
Type for face<br>
</div>

<br><code><span class="keyword">type</span> <a name="TYPEface_info"></a><code class="type"></code>face_info = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>num_faces&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>num_glyphs&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>family_name&nbsp;: <code class="type">string</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>style_name&nbsp;: <code class="type">string</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>has_horizontal&nbsp;: <code class="type">bool</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>has_vertical&nbsp;: <code class="type">bool</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>has_kerning&nbsp;: <code class="type">bool</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>is_scalable&nbsp;: <code class="type">bool</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>is_sfnt&nbsp;: <code class="type">bool</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>is_fixed_width&nbsp;: <code class="type">bool</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>has_fixed_sizes&nbsp;: <code class="type">bool</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>has_fast_glyphs&nbsp;: <code class="type">bool</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>has_glyph_names&nbsp;: <code class="type">bool</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>has_multiple_masters&nbsp;: <code class="type">bool</code>;</code></td>

</tr></table>
}


<pre><span class="keyword">val</span> <a name="VALnew_face"></a>new_face : <code class="type"><a href="Freetype.html#TYPEt">t</a> -> string -> int -> <a href="Freetype.html#TYPEface">face</a> * <a href="Freetype.html#TYPEface_info">face_info</a></code></pre><div class="info">
<code class="code">new_face library fontfile n</code> loads <code class="code">n</code>-th font stored
       in the font file <code class="code">fontfile</code>, and returns its face and
       face information.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_num_glyphs"></a>get_num_glyphs : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> int</code></pre><div class="info">
Returns number of glyphs stored in the face.
       Equivalent to face_info.num_glyphs<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_char_size"></a>set_char_size : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> float -> float -> int -> int -> unit</code></pre><div class="info">
<code class="code">set_char_size face charw charh resh resv</code> sets the character
       size of <code class="code">face</code>. <code class="code">charw</code> and <code class="code">charh</code> are the points of the characters
       in width and height. <code class="code">resh</code> and <code class="code">resv</code> are the horizontal and
       vertical resolution (in dpi)<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_pixel_sizes"></a>set_pixel_sizes : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> int -> int -> unit</code></pre><div class="info">
<code class="code">set_pixel_sizes face pixw pixh</code> also sets the character size
       of <code class="code">face</code>. <code class="code">pixw</code> and <code class="code">pixh</code> are standard width and height of
       characters in pixels.<br>
</div>
<br><code><span class="keyword">type</span> <a name="TYPEcharmap"></a><code class="type"></code>charmap = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>platform_id&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>encoding_id&nbsp;: <code class="type">int</code>;</code></td>

</tr></table>
}


<pre><span class="keyword">type</span> <a name="TYPEchar_index"></a><code class="type"></code>char_index </pre>

<pre><span class="keyword">val</span> <a name="VALint_of_char_index"></a>int_of_char_index : <code class="type"><a href="Freetype.html#TYPEchar_index">char_index</a> -> int</code></pre><pre><span class="keyword">val</span> <a name="VALchar_index_of_int"></a>char_index_of_int : <code class="type">int -> <a href="Freetype.html#TYPEchar_index">char_index</a></code></pre><pre><span class="keyword">val</span> <a name="VALget_charmaps"></a>get_charmaps : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> <a href="Freetype.html#TYPEcharmap">charmap</a> list</code></pre><pre><span class="keyword">val</span> <a name="VALset_charmap"></a>set_charmap : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> <a href="Freetype.html#TYPEcharmap">charmap</a> -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALget_char_index"></a>get_char_index : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> int -> <a href="Freetype.html#TYPEchar_index">char_index</a></code></pre><br><code><span class="keyword">type</span> <a name="TYPErender_mode"></a><code class="type"></code>render_mode = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Render_Normal</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Render_Mono</span></code></td>

</tr></table>


<br><code><span class="keyword">type</span> <a name="TYPEload_flag"></a><code class="type"></code>load_flag = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Load_no_scale</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Load_no_hinting</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >if you give [], freetype loads glyphs with scaling and hinting</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr></table>


<pre><span class="keyword">val</span> <a name="VALload_glyph"></a>load_glyph : <code class="type"><a href="Freetype.html#TYPEface">face</a> -><br>       <a href="Freetype.html#TYPEchar_index">char_index</a> -> <a href="Freetype.html#TYPEload_flag">load_flag</a> list -> float * float</code></pre><pre><span class="keyword">val</span> <a name="VALload_char"></a>load_char : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> int -> <a href="Freetype.html#TYPEload_flag">load_flag</a> list -> float * float</code></pre><pre><span class="keyword">val</span> <a name="VALrender_glyph_of_face"></a>render_glyph_of_face : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> <a href="Freetype.html#TYPErender_mode">render_mode</a> -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALrender_glyph"></a>render_glyph : <code class="type"><a href="Freetype.html#TYPEface">face</a> -><br>       <a href="Freetype.html#TYPEchar_index">char_index</a> -><br>       <a href="Freetype.html#TYPEload_flag">load_flag</a> list -> <a href="Freetype.html#TYPErender_mode">render_mode</a> -> float * float</code></pre><pre><span class="keyword">val</span> <a name="VALrender_char"></a>render_char : <code class="type"><a href="Freetype.html#TYPEface">face</a> -><br>       int -> <a href="Freetype.html#TYPEload_flag">load_flag</a> list -> <a href="Freetype.html#TYPErender_mode">render_mode</a> -> float * float</code></pre><br><code><span class="keyword">type</span> <a name="TYPEmatrix"></a><code class="type"></code>matrix = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>ft_xx&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>ft_xy&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>ft_yx&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>ft_yy&nbsp;: <code class="type">float</code>;</code></td>

</tr></table>
}

<div class="info">
matrix and vector<br>
</div>

<br><code><span class="keyword">type</span> <a name="TYPEvector"></a><code class="type"></code>vector = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>ft_x&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>ft_y&nbsp;: <code class="type">float</code>;</code></td>

</tr></table>
}


<pre><span class="keyword">val</span> <a name="VALset_transform"></a>set_transform : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> <a href="Freetype.html#TYPEmatrix">matrix</a> -> <a href="Freetype.html#TYPEvector">vector</a> -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALmatrix_rotate"></a>matrix_rotate : <code class="type">float -> <a href="Freetype.html#TYPEmatrix">matrix</a></code></pre><br><code><span class="keyword">type</span> <a name="TYPEbitmap_info"></a><code class="type"></code>bitmap_info = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>bitmap_left&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>bitmap_top&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>bitmap_width&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>bitmap_height&nbsp;: <code class="type">int</code>;</code></td>

</tr></table>
}

<div class="info">
bitmap ops<br>
</div>

<pre><span class="keyword">val</span> <a name="VALget_bitmap_info"></a>get_bitmap_info : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> <a href="Freetype.html#TYPEbitmap_info">bitmap_info</a></code></pre><pre><span class="keyword">val</span> <a name="VALread_bitmap"></a>read_bitmap : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> int -> int -> int</code></pre><br>
glyph metrics<br>
<br><code><span class="keyword">type</span> <a name="TYPEbbox"></a><code class="type"></code>bbox = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>xmin&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>ymin&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>xmax&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>ymax&nbsp;: <code class="type">float</code>;</code></td>

</tr></table>
}


<br><code><span class="keyword">type</span> <a name="TYPEbearing_advance"></a><code class="type"></code>bearing_advance = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>bearingx&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>bearingy&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>advance&nbsp;: <code class="type">float</code>;</code></td>

</tr></table>
}


<br><code><span class="keyword">type</span> <a name="TYPEglyph_metrics"></a><code class="type"></code>glyph_metrics = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>gm_width&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>gm_height&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>gm_hori&nbsp;: <code class="type"><a href="Freetype.html#TYPEbearing_advance">bearing_advance</a></code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>gm_vert&nbsp;: <code class="type"><a href="Freetype.html#TYPEbearing_advance">bearing_advance</a></code>;</code></td>

</tr></table>
}


<pre><span class="keyword">val</span> <a name="VALget_glyph_metrics"></a>get_glyph_metrics : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> <a href="Freetype.html#TYPEglyph_metrics">glyph_metrics</a></code></pre><br>
size metrics<br>
<br><code><span class="keyword">type</span> <a name="TYPEsize_metrics"></a><code class="type"></code>size_metrics = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>x_ppem&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>y_ppem&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>x_scale&nbsp;: <code class="type">float</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>y_scale&nbsp;: <code class="type">float</code>;</code></td>

</tr></table>
}


<pre><span class="keyword">val</span> <a name="VALget_size_metrics"></a>get_size_metrics : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> <a href="Freetype.html#TYPEsize_metrics">size_metrics</a></code></pre><br><code><span class="keyword">type</span> <a name="TYPEoutline_tag"></a><code class="type"></code>outline_tag = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">On_point</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Off_point_conic</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Off_point_cubic</span></code></td>

</tr></table>

<div class="info">
outline info<br>
</div>

<br><code><span class="keyword">type</span> <a name="TYPEoutline_contents"></a><code class="type"></code>outline_contents = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>n_contours&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>n_points&nbsp;: <code class="type">int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>points&nbsp;: <code class="type">(float * float) array</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>tags&nbsp;: <code class="type"><a href="Freetype.html#TYPEoutline_tag">outline_tag</a> array</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>contours&nbsp;: <code class="type">int array</code>;</code></td>

</tr></table>
}


<pre><span class="keyword">val</span> <a name="VALget_outline_contents"></a>get_outline_contents : <code class="type"><a href="Freetype.html#TYPEface">face</a> -> <a href="Freetype.html#TYPEoutline_contents">outline_contents</a></code></pre></body></html>