XTextWidth(3X11) — NEWS-OS Programmer’s Manual
名称
XTextWidth, XTextWidth16 - テキスト幅を計算する
形式
int XTextWidth(font_struct, string, count)
XFontStruct ∗font_struct;
char ∗string;
int count; int XTextWidth16(font_struct, string, count)
XFontStruct ∗font_struct;
XChar2b ∗string;
int count;
引数
count指定された文字列中の文字数を指定します。
font_struct幅の計算に使用するフォントを指定します。
string文字列を指定します。
解説
XTextWidth および XTextWidth16 関数は、指定された 8 ビットまたは 2 バイトの文字列の幅を返します。
関連事項
XLoadFont(3X11), XTextExtents(3X11)
Xlib − C Language X Interface
NEWS-OSRelease 4.1C