\doxysection{FLT API} \label{group__m17nFLT}\index{FLT API@{FLT API}} libm17n-\/flt.\+so が提供する API \doxysubsection*{データ構造} \begin{DoxyCompactItemize} \item struct \mbox{\hyperlink{structMFLTGlyph}{MFLTGlyph}} \begin{DoxyCompactList}\small\item\em グリフに関する情報の型. \end{DoxyCompactList}\item struct \mbox{\hyperlink{structMFLTGlyphAdjustment}{MFLTGlyph\+Adjustment}} \begin{DoxyCompactList}\small\item\em グリフ位置調整情報のための型. \end{DoxyCompactList}\item struct \mbox{\hyperlink{structMFLTGlyphString}{MFLTGlyph\+String}} \begin{DoxyCompactList}\small\item\em グリフ列の情報のための型. \end{DoxyCompactList}\item struct \mbox{\hyperlink{structMFLTOtfSpec}{MFLTOtf\+Spec}} \begin{DoxyCompactList}\small\item\em GSUB および GPOS Open\+Type テーブルの仕様のための型. \end{DoxyCompactList}\item struct \mbox{\hyperlink{structMFLTFont}{MFLTFont}} \begin{DoxyCompactList}\small\item\em FLT ドライバが使うフォントの型. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection*{型定義} \begin{DoxyCompactItemize} \item typedef struct \+\_\+\+MFLT \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} \begin{DoxyCompactList}\small\item\em FLT (Font Layout Table) の型. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection*{関数} \begin{DoxyCompactItemize} \item \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$ \mbox{\hyperlink{group__m17nFLT_ga3f239eb3dc7eb38ba2784959f6be8a9b}{mflt\+\_\+get}} (MSymbol name) \begin{DoxyCompactList}\small\item\em 指定された名前を持つ FLT オブジェクトを返す. \end{DoxyCompactList}\item \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$ \mbox{\hyperlink{group__m17nFLT_gaadd34d825776eff1571a6ec1ebf18213}{mflt\+\_\+find}} (int c, \mbox{\hyperlink{structMFLTFont}{MFLTFont}} $\ast$font) \begin{DoxyCompactList}\small\item\em 指定された文字とフォントに合った FLT を探す. \end{DoxyCompactList}\item const char $\ast$ \mbox{\hyperlink{group__m17nFLT_ga1a01dd37b3e13e32317694164cb2bae7}{mflt\+\_\+name}} (\mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$flt) \begin{DoxyCompactList}\small\item\em FLT の名前を返す. \end{DoxyCompactList}\item \mbox{\hyperlink{group__m17nChartable_ga241f7150476db7182aecb944b711c546}{MChar\+Table}} $\ast$ \mbox{\hyperlink{group__m17nFLT_ga6da91edea6065f90515c24fd48455e54}{mflt\+\_\+coverage}} (\mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$flt) \begin{DoxyCompactList}\small\item\em FLT の範囲を返す. \end{DoxyCompactList}\item int \mbox{\hyperlink{group__m17nFLT_gab7bf42cc0f306fb6058ba5d10e79e27d}{mflt\+\_\+run}} (\mbox{\hyperlink{structMFLTGlyphString}{MFLTGlyph\+String}} $\ast$gstring, int from, int to, \mbox{\hyperlink{structMFLTFont}{MFLTFont}} $\ast$font, \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$flt) \begin{DoxyCompactList}\small\item\em FLT を使って文字をレイアウトする. \end{DoxyCompactList}\item \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$ \mbox{\hyperlink{group__m17nFLT_gaad4554d5e2eea550061234debdf6f0c8}{mdebug\+\_\+dump\+\_\+flt}} (\mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$flt, int indent) \item void \mbox{\hyperlink{group__m17nFLT_ga117deb444c67e3e003f9727ca54cb095}{mflt\+\_\+dump\+\_\+gstring}} (\mbox{\hyperlink{structMFLTGlyphString}{MFLTGlyph\+String}} $\ast$gstring) \end{DoxyCompactItemize} \doxysubsection*{変数} \begin{DoxyCompactItemize} \item int \mbox{\hyperlink{group__m17nFLT_ga8fa9d49e4291440961b37717afce653b}{mflt\+\_\+enable\+\_\+new\+\_\+feature}} \item int($\ast$ \mbox{\hyperlink{group__m17nFLT_ga123a95dbb6079a930a3c432f7ec4107e}{mflt\+\_\+iterate\+\_\+otf\+\_\+feature}} )(struct \+\_\+\+MFLTFont $\ast$font, \mbox{\hyperlink{structMFLTOtfSpec}{MFLTOtf\+Spec}} $\ast$spec, int from, int to, unsigned char $\ast$table) \item MSymbol($\ast$ \mbox{\hyperlink{group__m17nFLT_gab671990df1a86efc8e86a2d838119456}{mflt\+\_\+font\+\_\+id}} )(struct \+\_\+\+MFLTFont $\ast$font) \item int($\ast$ \mbox{\hyperlink{group__m17nFLT_gafaf7cf3919f8a59a4685e4375f033874}{mflt\+\_\+try\+\_\+otf}} )(struct \+\_\+\+MFLTFont $\ast$font, \mbox{\hyperlink{structMFLTOtfSpec}{MFLTOtf\+Spec}} $\ast$spec, \mbox{\hyperlink{structMFLTGlyphString}{MFLTGlyph\+String}} $\ast$gstring, int from, int to) \end{DoxyCompactItemize} \doxysubsection{詳解} libm17n-\/flt.\+so が提供する API ウィンドウシステムのための FLT サポート. このセクションでは、\+FLT (Font Layout Table) を用いた文字レイアウト機能に関する m17n FLT API を定義する。 FLT の形式は \mbox{\hyperlink{m17nDBFormat_mdbFLT}{フォントレイアウトテーブル}} に記述されている。 \doxysubsection{型定義詳解} \mbox{\label{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}} \index{FLT API@{FLT API}!MFLT@{MFLT}} \index{MFLT@{MFLT}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{MFLT}{MFLT}} {\footnotesize\ttfamily typedef struct \+\_\+\+MFLT \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}}} FLT (Font Layout Table) の型. 型 \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} は FLT オブジェクトのための型である。 この内部構造は、アプリケーションプログラムからは隠蔽されている。 \doxysubsection{関数詳解} \mbox{\label{group__m17nFLT_ga3f239eb3dc7eb38ba2784959f6be8a9b}} \index{FLT API@{FLT API}!mflt\_get@{mflt\_get}} \index{mflt\_get@{mflt\_get}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_get()}{mflt\_get()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$ mflt\+\_\+get (\begin{DoxyParamCaption}\item[{MSymbol}]{name }\end{DoxyParamCaption})} 指定された名前を持つ FLT オブジェクトを返す. 関数 \mbox{\hyperlink{group__m17nFLT_ga3f239eb3dc7eb38ba2784959f6be8a9b}{mflt\+\_\+get()}} は、{\bfseries{name}} という名前を持つ FLT オブジェクトを返す。 \begin{DoxyParagraph}{戻り値\+:} もし成功すれば、mflt\+\_\+get() は見つかった FLT オブジェクトへのポインタを返す。失敗した場合は {\ttfamily NULL} を返す。 \end{DoxyParagraph} \mbox{\label{group__m17nFLT_gaadd34d825776eff1571a6ec1ebf18213}} \index{FLT API@{FLT API}!mflt\_find@{mflt\_find}} \index{mflt\_find@{mflt\_find}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_find()}{mflt\_find()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$ mflt\+\_\+find (\begin{DoxyParamCaption}\item[{int}]{c, }\item[{\mbox{\hyperlink{structMFLTFont}{MFLTFont}} $\ast$}]{font }\end{DoxyParamCaption})} 指定された文字とフォントに合った FLT を探す. 関数 \mbox{\hyperlink{group__m17nFLT_gaadd34d825776eff1571a6ec1ebf18213}{mflt\+\_\+find()}} は、文字 {\bfseries{c}} をフォント {\bfseries{font}} でレイアウトするために最も適切な FLT を返す。 \begin{DoxyParagraph}{戻り値\+:} もし成功すれば、mflt\+\_\+find() は見つかった FLT オブジェクトへのポインタを返す。失敗した場合は {\ttfamily NULL} を返す。 \end{DoxyParagraph} \mbox{\label{group__m17nFLT_ga1a01dd37b3e13e32317694164cb2bae7}} \index{FLT API@{FLT API}!mflt\_name@{mflt\_name}} \index{mflt\_name@{mflt\_name}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_name()}{mflt\_name()}} {\footnotesize\ttfamily const char $\ast$ mflt\+\_\+name (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$}]{flt }\end{DoxyParamCaption})} FLT の名前を返す. 関数 \mbox{\hyperlink{group__m17nFLT_ga1a01dd37b3e13e32317694164cb2bae7}{mflt\+\_\+name()}} は {\bfseries{flt}} の名前を返す。 \mbox{\label{group__m17nFLT_ga6da91edea6065f90515c24fd48455e54}} \index{FLT API@{FLT API}!mflt\_coverage@{mflt\_coverage}} \index{mflt\_coverage@{mflt\_coverage}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_coverage()}{mflt\_coverage()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__m17nChartable_ga241f7150476db7182aecb944b711c546}{MChar\+Table}} $\ast$ mflt\+\_\+coverage (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$}]{flt }\end{DoxyParamCaption})} FLT の範囲を返す. 関数 \mbox{\hyperlink{group__m17nFLT_ga6da91edea6065f90515c24fd48455e54}{mflt\+\_\+coverage()}} は、{\bfseries{flt}} がサポートする文字に対して 0 でない値を含む文字テーブルを返す。 \mbox{\label{group__m17nFLT_gab7bf42cc0f306fb6058ba5d10e79e27d}} \index{FLT API@{FLT API}!mflt\_run@{mflt\_run}} \index{mflt\_run@{mflt\_run}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_run()}{mflt\_run()}} {\footnotesize\ttfamily int mflt\+\_\+run (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMFLTGlyphString}{MFLTGlyph\+String}} $\ast$}]{gstring, }\item[{int}]{from, }\item[{int}]{to, }\item[{\mbox{\hyperlink{structMFLTFont}{MFLTFont}} $\ast$}]{font, }\item[{\mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$}]{flt }\end{DoxyParamCaption})} FLT を使って文字をレイアウトする. 関数 \mbox{\hyperlink{group__m17nFLT_gab7bf42cc0f306fb6058ba5d10e79e27d}{mflt\+\_\+run()}} は、{\bfseries{gstring}} 中の {\bfseries{from}} から {\bfseries{to}} 直前までの文字を {\bfseries{font}} を用いてレイアウトする。もし {\bfseries{flt}} がゼロでなければ、その値をすべての文字に対して用いる。 そうでなければ適切な FLT を自動的に選択する。 \begin{DoxyRetVals}{戻り値} {\em $>$=0} & 実行成功を示す。返される値は、{\bfseries{gstring-\/$>$glyphs}} 中で以前 {\bfseries{to}} によって示されていたグリフへのインデクスである。\\ \hline {\em -\/2} & 結果を格納するには {\bfseries{gstring-\/$>$glyphs}} が短すぎることを示す。 呼び出し側は、より長い {\bfseries{gstring-\/$>$glyphs}} を用いて再度この関数を呼ぶことができる。\\ \hline {\em -\/1} & その他のエラーが起きたことを示す。 \\ \hline \end{DoxyRetVals} \mbox{\label{group__m17nFLT_gaad4554d5e2eea550061234debdf6f0c8}} \index{FLT API@{FLT API}!mdebug\_dump\_flt@{mdebug\_dump\_flt}} \index{mdebug\_dump\_flt@{mdebug\_dump\_flt}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mdebug\_dump\_flt()}{mdebug\_dump\_flt()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}}$\ast$ mdebug\+\_\+dump\+\_\+flt (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__m17nFLT_ga28abba06fa26ca3d9389382261905add}{MFLT}} $\ast$}]{flt, }\item[{int}]{indent }\end{DoxyParamCaption})} \mbox{\label{group__m17nFLT_ga117deb444c67e3e003f9727ca54cb095}} \index{FLT API@{FLT API}!mflt\_dump\_gstring@{mflt\_dump\_gstring}} \index{mflt\_dump\_gstring@{mflt\_dump\_gstring}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_dump\_gstring()}{mflt\_dump\_gstring()}} {\footnotesize\ttfamily void mflt\+\_\+dump\+\_\+gstring (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structMFLTGlyphString}{MFLTGlyph\+String}} $\ast$}]{gstring }\end{DoxyParamCaption})} \doxysubsection{変数詳解} \mbox{\label{group__m17nFLT_ga8fa9d49e4291440961b37717afce653b}} \index{FLT API@{FLT API}!mflt\_enable\_new\_feature@{mflt\_enable\_new\_feature}} \index{mflt\_enable\_new\_feature@{mflt\_enable\_new\_feature}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_enable\_new\_feature}{mflt\_enable\_new\_feature}} {\footnotesize\ttfamily int mflt\+\_\+enable\+\_\+new\+\_\+feature} \mbox{\label{group__m17nFLT_ga123a95dbb6079a930a3c432f7ec4107e}} \index{FLT API@{FLT API}!mflt\_iterate\_otf\_feature@{mflt\_iterate\_otf\_feature}} \index{mflt\_iterate\_otf\_feature@{mflt\_iterate\_otf\_feature}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_iterate\_otf\_feature}{mflt\_iterate\_otf\_feature}} {\footnotesize\ttfamily int($\ast$ mflt\+\_\+iterate\+\_\+otf\+\_\+feature) (struct \+\_\+\+MFLTFont $\ast$font, \mbox{\hyperlink{structMFLTOtfSpec}{MFLTOtf\+Spec}} $\ast$spec, int from, int to, unsigned char $\ast$table) (\begin{DoxyParamCaption}\item[{struct \+\_\+\+MFLTFont $\ast$}]{font, }\item[{\mbox{\hyperlink{structMFLTOtfSpec}{MFLTOtf\+Spec}} $\ast$}]{spec, }\item[{int}]{from, }\item[{int}]{to, }\item[{unsigned char $\ast$}]{table }\end{DoxyParamCaption})} \mbox{\label{group__m17nFLT_gab671990df1a86efc8e86a2d838119456}} \index{FLT API@{FLT API}!mflt\_font\_id@{mflt\_font\_id}} \index{mflt\_font\_id@{mflt\_font\_id}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_font\_id}{mflt\_font\_id}} {\footnotesize\ttfamily MSymbol($\ast$ mflt\+\_\+font\+\_\+id) (struct \+\_\+\+MFLTFont $\ast$font) (\begin{DoxyParamCaption}\item[{struct \+\_\+\+MFLTFont $\ast$}]{font }\end{DoxyParamCaption})} \mbox{\label{group__m17nFLT_gafaf7cf3919f8a59a4685e4375f033874}} \index{FLT API@{FLT API}!mflt\_try\_otf@{mflt\_try\_otf}} \index{mflt\_try\_otf@{mflt\_try\_otf}!FLT API@{FLT API}} \doxysubsubsection{\texorpdfstring{mflt\_try\_otf}{mflt\_try\_otf}} {\footnotesize\ttfamily int($\ast$ mflt\+\_\+try\+\_\+otf) (struct \+\_\+\+MFLTFont $\ast$font, \mbox{\hyperlink{structMFLTOtfSpec}{MFLTOtf\+Spec}} $\ast$spec, \mbox{\hyperlink{structMFLTGlyphString}{MFLTGlyph\+String}} $\ast$gstring, int from, int to) (\begin{DoxyParamCaption}\item[{struct \+\_\+\+MFLTFont $\ast$}]{font, }\item[{\mbox{\hyperlink{structMFLTOtfSpec}{MFLTOtf\+Spec}} $\ast$}]{spec, }\item[{\mbox{\hyperlink{structMFLTGlyphString}{MFLTGlyph\+String}} $\ast$}]{gstring, }\item[{int}]{from, }\item[{int}]{to }\end{DoxyParamCaption})}