This file is indexed.

/usr/share/doc/libthai0/html/thrend_8h.html is in libthai-doc 0.1.26-1.

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
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
<!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libthai: thai/thrend.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libthai
   &#160;<span id="projectnumber">0.1.26</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_27634488b513a0cc2afc6ccdc5595e06.html">thai</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">thrend.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Thai string rendering.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a230e027a648fe41f66765ad8a4c2cca1"><td class="memItemLeft" align="right" valign="top"><a id="a230e027a648fe41f66765ad8a4c2cca1"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a230e027a648fe41f66765ad8a4c2cca1">TH_BLANK_BASE_GLYPH</a>&#160;&#160;&#160;0xdd</td></tr>
<tr class="memdesc:a230e027a648fe41f66765ad8a4c2cca1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Blank base glyph, for floating upper/lower vowel. <br /></td></tr>
<tr class="separator:a230e027a648fe41f66765ad8a4c2cca1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a81f77b5967d97872c26c3bf1932ff9e1"><td class="memItemLeft" align="right" valign="top"><a id="a81f77b5967d97872c26c3bf1932ff9e1"></a>
typedef unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a></td></tr>
<tr class="memdesc:a81f77b5967d97872c26c3bf1932ff9e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Glyph code type. <br /></td></tr>
<tr class="separator:a81f77b5967d97872c26c3bf1932ff9e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a829ae4812fb90113534c1d15e35f2976"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a829ae4812fb90113534c1d15e35f2976">th_render_cell_tis</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> cell, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr>
<tr class="memdesc:a829ae4812fb90113534c1d15e35f2976"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the given cell using TIS-620 glyph set.  <a href="#a829ae4812fb90113534c1d15e35f2976">More...</a><br /></td></tr>
<tr class="separator:a829ae4812fb90113534c1d15e35f2976"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c102eadc6eb85de5362d373ca5b5440"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a2c102eadc6eb85de5362d373ca5b5440">th_render_cell_win</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> cell, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr>
<tr class="memdesc:a2c102eadc6eb85de5362d373ca5b5440"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the given cell using Thai Windows glyph set.  <a href="#a2c102eadc6eb85de5362d373ca5b5440">More...</a><br /></td></tr>
<tr class="separator:a2c102eadc6eb85de5362d373ca5b5440"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe620f7ddbc5bee3190cda31b59fe79f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#afe620f7ddbc5bee3190cda31b59fe79f">th_render_cell_mac</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> cell, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr>
<tr class="memdesc:afe620f7ddbc5bee3190cda31b59fe79f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the given cell using Mac Thai glyph set.  <a href="#afe620f7ddbc5bee3190cda31b59fe79f">More...</a><br /></td></tr>
<tr class="separator:afe620f7ddbc5bee3190cda31b59fe79f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1de504f744df81b7f795d549aafc9f8e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a1de504f744df81b7f795d549aafc9f8e">th_render_text_tis</a> (const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr>
<tr class="memdesc:a1de504f744df81b7f795d549aafc9f8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the given text using TIS-620 glyph set.  <a href="#a1de504f744df81b7f795d549aafc9f8e">More...</a><br /></td></tr>
<tr class="separator:a1de504f744df81b7f795d549aafc9f8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07a852723de308342ee65737c281b749"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a07a852723de308342ee65737c281b749">th_render_text_win</a> (const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr>
<tr class="memdesc:a07a852723de308342ee65737c281b749"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the given text using Thai Windows glyph set.  <a href="#a07a852723de308342ee65737c281b749">More...</a><br /></td></tr>
<tr class="separator:a07a852723de308342ee65737c281b749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8158d124fb2d92e7f364c18bc09e28a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#ab8158d124fb2d92e7f364c18bc09e28a">th_render_text_mac</a> (const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr>
<tr class="memdesc:ab8158d124fb2d92e7f364c18bc09e28a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the given text using Mac Thai glyph set.  <a href="#ab8158d124fb2d92e7f364c18bc09e28a">More...</a><br /></td></tr>
<tr class="separator:ab8158d124fb2d92e7f364c18bc09e28a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Thai string rendering. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="afe620f7ddbc5bee3190cda31b59fe79f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe620f7ddbc5bee3190cda31b59fe79f">&sect;&nbsp;</a></span>th_render_cell_mac()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_render_cell_mac </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a>&#160;</td>
          <td class="paramname"><em>cell</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a>&#160;</td>
          <td class="paramname"><em>res</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>res_sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>is_decomp_am</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Render the given cell using Mac Thai glyph set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cell</td><td>: the cell to render </td></tr>
    <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr>
    <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr>
    <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl>
<p>Calculates glyphs from Mac Thai glyph set for the given <em>cell</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </p>

</div>
</div>
<a id="a829ae4812fb90113534c1d15e35f2976"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a829ae4812fb90113534c1d15e35f2976">&sect;&nbsp;</a></span>th_render_cell_tis()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_render_cell_tis </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a>&#160;</td>
          <td class="paramname"><em>cell</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a>&#160;</td>
          <td class="paramname"><em>res</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>res_sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>is_decomp_am</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Render the given cell using TIS-620 glyph set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cell</td><td>: the cell to render </td></tr>
    <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr>
    <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr>
    <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl>
<p>Calculates glyphs from TIS-620 glyph set for the given <em>cell</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </p>

</div>
</div>
<a id="a2c102eadc6eb85de5362d373ca5b5440"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c102eadc6eb85de5362d373ca5b5440">&sect;&nbsp;</a></span>th_render_cell_win()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_render_cell_win </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a>&#160;</td>
          <td class="paramname"><em>cell</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a>&#160;</td>
          <td class="paramname"><em>res</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>res_sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>is_decomp_am</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Render the given cell using Thai Windows glyph set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cell</td><td>: the cell to render </td></tr>
    <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr>
    <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr>
    <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl>
<p>Calculates glyphs from Thai Windows glyph set for the given <em>cell</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </p>

</div>
</div>
<a id="ab8158d124fb2d92e7f364c18bc09e28a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8158d124fb2d92e7f364c18bc09e28a">&sect;&nbsp;</a></span>th_render_text_mac()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_render_text_mac </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a>&#160;</td>
          <td class="paramname"><em>res</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>res_sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>is_decomp_am</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Render the given text using Mac Thai glyph set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>: the string to render </td></tr>
    <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr>
    <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr>
    <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl>
<p>Calculates glyphs from Mac Thai glyph set for the given string <em>s</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </p>

</div>
</div>
<a id="a1de504f744df81b7f795d549aafc9f8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1de504f744df81b7f795d549aafc9f8e">&sect;&nbsp;</a></span>th_render_text_tis()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_render_text_tis </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a>&#160;</td>
          <td class="paramname"><em>res</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>res_sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>is_decomp_am</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Render the given text using TIS-620 glyph set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>: the string to render </td></tr>
    <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr>
    <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr>
    <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl>
<p>Calculates glyphs from TIS-620 glyph set for the given string <em>s</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </p>

</div>
</div>
<a id="a07a852723de308342ee65737c281b749"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07a852723de308342ee65737c281b749">&sect;&nbsp;</a></span>th_render_text_win()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_render_text_win </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a>&#160;</td>
          <td class="paramname"><em>res</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>res_sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>is_decomp_am</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Render the given text using Thai Windows glyph set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>: the string to render </td></tr>
    <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr>
    <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr>
    <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl>
<p>Calculates glyphs from Thai Windows glyph set for the given string <em>s</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>