<!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="Cairo_ps.html"> <link rel="next" href="Cairo_lablgtk.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 modules" rel=Appendix href="index_modules.html"> <link title="Cairo" rel="Chapter" href="Cairo.html"> <link title="Cairo_bigarray" rel="Chapter" href="Cairo_bigarray.html"> <link title="Cairo_png" rel="Chapter" href="Cairo_png.html"> <link title="Cairo_pdf" rel="Chapter" href="Cairo_pdf.html"> <link title="Cairo_ps" rel="Chapter" href="Cairo_ps.html"> <link title="Cairo_ft" rel="Chapter" href="Cairo_ft.html"> <link title="Cairo_lablgtk" rel="Chapter" href="Cairo_lablgtk.html"><title>Cairo-ocaml : Cairo_ft</title> </head> <body> <div class="navbar"><a href="Cairo_ps.html">Previous</a> <a href="index.html">Up</a> <a href="Cairo_lablgtk.html">Next</a> </div> <center><h1>Module <a href="type_Cairo_ft.html">Cairo_ft</a></h1></center> <br> <pre><span class="keyword">module</span> Cairo_ft: <code class="code">sig</code> <a href="Cairo_ft.html">..</a> <code class="code">end</code></pre>Minimal support for the Fontconfig/Freetype font interface<br> <hr width="100%"> <pre><span class="keyword">exception</span> <a name="EXCEPTIONFT_Error"></a>FT_Error <span class="keyword">of</span> <code class="type">int</code></pre> <pre><span class="keyword">type</span> <a name="TYPEft_library"></a><code class="type"></code>ft_library </pre> <pre><span class="keyword">type</span> <a name="TYPEft_face"></a><code class="type"></code>ft_face </pre> <pre><span class="keyword">val</span> <a name="VALinit_freetype"></a>init_freetype : <code class="type">unit -> <a href="Cairo_ft.html#TYPEft_library">ft_library</a></code></pre><pre><span class="keyword">val</span> <a name="VALdone_freetype"></a>done_freetype : <code class="type"><a href="Cairo_ft.html#TYPEft_library">ft_library</a> -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALnew_face"></a>new_face : <code class="type"><a href="Cairo_ft.html#TYPEft_library">ft_library</a> -> ?index:int -> string -> <a href="Cairo_ft.html#TYPEft_face">ft_face</a></code></pre><pre><span class="keyword">val</span> <a name="VALdone_face"></a>done_face : <code class="type"><a href="Cairo_ft.html#TYPEft_face">ft_face</a> -> unit</code></pre><pre><span class="keyword">type</span> <a name="TYPEfc_pattern"></a><code class="type"></code>fc_pattern </pre> <pre><span class="keyword">val</span> <a name="VALfc_name_parse"></a>fc_name_parse : <code class="type">?options:<a href="Cairo.Font_Options.html#TYPEt">Cairo.Font_Options.t</a> -> string -> <a href="Cairo_ft.html#TYPEfc_pattern">fc_pattern</a></code></pre><div class="info"> this is a hack: this actually calls FcNameParse, FcConfigSubstitute, cairo_ft_font_options_substitute, FcDefaultSubstitute and FcFontMatch<br> </div> <pre><span class="keyword">val</span> <a name="VALfc_name_unparse"></a>fc_name_unparse : <code class="type"><a href="Cairo_ft.html#TYPEfc_pattern">fc_pattern</a> -> string</code></pre><pre><span class="keyword">type</span> <a name="TYPEfont_face"></a><code class="type"></code>font_face = <code class="type">[ `Any | `FT ] <a href="Cairo.html#TYPEfont_face">Cairo.font_face</a></code> </pre> <pre><span class="keyword">val</span> <a name="VALfont_face_create_for_pattern"></a>font_face_create_for_pattern : <code class="type"><a href="Cairo_ft.html#TYPEfc_pattern">fc_pattern</a> -> <a href="Cairo_ft.html#TYPEfont_face">font_face</a></code></pre><pre><span class="keyword">val</span> <a name="VALfont_face_create_for_ft_face"></a>font_face_create_for_ft_face : <code class="type"><a href="Cairo_ft.html#TYPEft_face">ft_face</a> -> int -> <a href="Cairo_ft.html#TYPEfont_face">font_face</a></code></pre><pre><span class="keyword">val</span> <a name="VALdowncast_font_face"></a>downcast_font_face : <code class="type">[> `Any ] <a href="Cairo.html#TYPEfont_face">Cairo.font_face</a> -> <a href="Cairo_ft.html#TYPEfont_face">font_face</a></code></pre><pre><span class="keyword">val</span> <a name="VALdowncast_scaled_font"></a>downcast_scaled_font : <code class="type">[> `Any ] <a href="Cairo.Scaled_Font.html#TYPEt">Cairo.Scaled_Font.t</a> -> [ `Any | `FT ] <a href="Cairo.Scaled_Font.html#TYPEt">Cairo.Scaled_Font.t</a></code></pre><pre><span class="keyword">val</span> <a name="VALfont_lock_face"></a>font_lock_face : <code class="type">[> `FT ] <a href="Cairo.Scaled_Font.html#TYPEt">Cairo.Scaled_Font.t</a> -> <a href="Cairo_ft.html#TYPEft_face">ft_face</a></code></pre><pre><span class="keyword">val</span> <a name="VALfont_unlock_face"></a>font_unlock_face : <code class="type">[> `FT ] <a href="Cairo.Scaled_Font.html#TYPEt">Cairo.Scaled_Font.t</a> -> unit</code></pre></body></html>