📄 xtextwidth.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XTextWidth</TITLE></HEAD><BODY><H1 ALIGN=center>XTextWidth</H1><H2>Syntax</H2><!.IN "XTextWidth" "" "@DEF@"><CODE><PRE>int XTextWidth(<B>font_struct</B>, <B>string</B>, <B>count</B>) <A HREF="./#XFontStruct">XFontStruct</A> *<B>font_struct</B>; char *<B>string</B>; int <B>count</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>font_struct</B><TD> Specifies the font used for the width computation.<TR><TD> <B>string</B><TD> Specifies the character string.<TR><TD> <B>count</B><TD> Specifies the character count in the specified string.</TABLE><H2>Description</H2><B>XTextWidth()</B>determines the width of an 8-bit character string.<H2>See also</H2><B><A HREF="XTextWidth16.html">XTextWidth16()</A></B>,<B><A HREF="XLoadFont.html">XLoadFont()</A></B>,<B><A HREF="XTextExtents.html">XTextExtents()</A></B>,"<A HREF="computing-string-size.html">Computing Character String Sizes</A>".<HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -