Scroll to navigation

XTextWidth(3X11) XLIB FUNCTIONS XTextWidth(3X11)

名前

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
文字列を指定する。

説明

関数 XTextWidthXTextWidth16 は指定した8ビットあるいは2バイト文字の文字列の幅を返す。

関連項目

XLoadFont(3X11), XTextExtents(3X11)
 
Xlib - C Language X Interface
Release 6.5 X Version 11