OSDN Git Service

TTF_MeasureUNICODE 新規追加
[sdl2referencejp/sdl2referencejp.git] / TTF_MeasureUNICODE.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="ja-JP">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <meta name="keywords" content="SDL_ttf">
7 <link rel="top" href="index.html" title="\83z\81[\83\80">
8 <link rel="parent" href="SDL_ttf-functions-management.html" title="1\82Â\8fã">
9 <title>TTF_MeasureUNICODE</title>
10 </head>
11 <body>
12 <a href="index.html#SDL_ttf">\96Ú\8e\9f</a> - <a href="SDL_ttf-functions.html">3.\8aÖ\90\94</a> - <a href="SDL_ttf-functions-attributes.html">3.3\91®\90«</a> - TTF_MeasureUNICODE
13 <hr>
14 <h1>TTF_MeasureUNICODE</h1>
15 Calculate how much of a UCS-2 string will fit in a given width.
16 \97^\82¦\82ç\82ê\82½\95\9d\82É\8eû\82Ü\82éUCS-2\95\8e\9a\90\94\82ð\8b\81\82ß\82é
17 <h2>\8d\\95¶</h2>
18 <code>int TTF_MeasureUNICODE(TTF_Font *font, const Uint16 *text, int measure_width, int *extent, int *count)</code>
19 <h2>\88ø\90\94</h2>
20 <table border="1" summary="TTF_MeasureUNICODE">
21 <tr><td>font</td><td>\83t\83H\83\93\83g</td></tr>
22 <tr><td>text</td><td>\8b\81\82ß\82éUCS-2\83e\83L\83X\83g</td></tr>
23 <tr><td>measure_width</td><td>\95\8e\9a\97ñ\82Ì\8cÀ\8aE\95\9d\83s\83N\83Z\83\8b\90\94</td></tr>
24 <tr><td>extent</td><td>\95\8e\9a\97ñ\82ª\8eû\82Ü\82é\8dÅ\8f¬\82Ì\95\9d\83s\83N\83Z\83\8b\90\94</td></tr>
25 <tr><td>count</td><td>\83\8c\83\93\83_\83\8a\83\93\83O\89Â\94\\82È\95\8e\9a\90\94\82Ì\91ã\93ü\90æ\82Ö\82Ì\83|\83C\83\93\83^</td></tr>
26 </table>
27 <h2>\96ß\82è\92l</h2>
28 \90¬\8c÷\82Ì\82Æ\82«0, \83G\83\89\81[\82Ì\82Æ\82«-1\82ð\96ß\82·.
29 <h2>\8fÚ\8d×</h2>
30 <p>
31 measure_width\82É\92B\82·\82é\82Ü\82Å\83\8c\83\93\83_\83\8a\83\93\83O\82Å\82«\82é\95\8e\9a\90\94\82ð\8b\81\82ß\82é.
32 </p>
33 <p>
34 \8b\81\82ß\82é\82½\82ß\82É\95\8e\9a\97ñ\82ð\83\8c\83\93\83_\83\8a\83\93\83O\82·\82é\95K\97v\82Í\82È\82¢.
35 </p>
36 <p>
37 \82±\82Ì\8aÖ\90\94\82Ì\96¼\91O\82Í"Unicode"\82Æ\82È\82Á\82Ä\82¢\82é\82ª, \8c»\8dÝ\82Ì\8eÀ\8dÛ\82Ì\93ü\97Í\82ÍUCS-2(1\83R\81[\83h\83|\83C\83\93\83g16\83r\83b\83g)\82Å\82 \82é.
38 \8aG\95\8e\9a\82Ì\82æ\82¤\82È\82»\82ê\82æ\82è\82à\91å\82«\82ÈUnicode\82Ì\92l\82Í\93n\82¹\82È\82¢.
39 \82»\82Ì\82æ\82¤\82È\83R\81[\83h\83|\83C\83\93\83g\82ÍUTF-8\94Å\82Å\83A\83N\83Z\83X\82Å\82«\82é.
40 </p>
41 <h2>\83o\81[\83W\83\87\83\93</h2>
42 SDL_ttf 2.0.18\88È\8d~
43 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>
44 <a href="TTF_MeasureText.html">TTF_MeasureText</a><br>
45 <a href="TTF_MeasureUTF8.html">TTF_MeasureUTF8</a><br>
46 <h2>\8c´\95\82Ö\82Ì\83\8a\83\93\83N</h2>
47 <a href="https://wiki.libsdl.org/SDL_ttf/TTF_MeasureUNICODE">SDL_ttf/TTF_MeasureUNICODE</a>
48 <hr>
49 </body>
50 </html>