⚝
One Hat Cyber Team
⚝
Your IP:
3.140.195.167
Server IP:
97.74.87.16
Server:
Linux 16.87.74.97.host.secureserver.net 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
gtk-doc
/
html
/
harfbuzz
/
View File Name :
shaping-shaper-selection.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Shaper selection: HarfBuzz Manual</title> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="index.html" title="HarfBuzz Manual"> <link rel="up" href="shaping-and-shape-plans.html" title="Shaping and shape plans"> <link rel="prev" href="shaping-opentype-features.html" title="OpenType features"> <link rel="next" href="shaping-plans-and-caching.html" title="Plans and caching"> <meta name="generator" content="GTK-Doc V1.32 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> <td width="100%" align="left" class="shortcuts"></td> <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> <td><a accesskey="u" href="shaping-and-shape-plans.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> <td><a accesskey="p" href="shaping-opentype-features.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> <td><a accesskey="n" href="shaping-plans-and-caching.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> </tr></table> <div class="section"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> <a name="shaping-shaper-selection"></a>Shaper selection</h2></div></div></div> <p> The basic version of <code class="function">hb_shape()</code> determines its shaping strategy based on examining the capabilities of the font file. OpenType font tables cause HarfBuzz to try the <code class="literal">ot</code> shaper, while AAT font tables cause HarfBuzz to try the <code class="literal">aat</code> shaper. </p> <p> In the real world, however, a font might include some unusual mix of tables, or one of the tables might simply be broken for the script you need to shape. So, sometimes, you might not want to rely on HarfBuzz's process for deciding what to do, and just tell <code class="function">hb_shape()</code> what you want it to try. </p> <p> <code class="function">hb_shape_full()</code> is an alternate shaping function that lets you supply a list of shapers for HarfBuzz to try, in order, when shaping your buffer. For example, if you have determined that HarfBuzz's attempts to work around broken tables gives you better results than the AAT shaper itself does, you might move the AAT shaper to the end of your list of preferences and call <code class="function">hb_shape_full()</code> </p> <pre class="programlisting"> char *shaperprefs[3] = {"ot", "default", "aat"}; ... hb_shape_full(font, buf, userfeatures, num_features, shaperprefs); </pre> <p> to get results you are happier with. </p> <p> You may also want to call <code class="function">hb_shape_list_shapers()</code> to get a list of the shapers that were built at compile time in your copy of HarfBuzz. </p> </div> <div class="footer"> <hr>Generated by GTK-Doc V1.32</div> </body> </html>