computing-string-size.html

来自「linux图形界面x liberary手册」· HTML 代码 · 共 35 行

HTML
35
字号
<HTML><HEAD><TITLE>Xlib Programming Manual: Computing Character String Sizes</TITLE></HEAD><BODY><H1 ALIGN=center>8.5.3 Computing Character String Sizes</H1>Xlib provides functions that you can use to compute the width,the logical extents, and the server information about 8-bit and 2-byte text strings.<!.IN "XTextWidth"><!.IN "XTextWidth16">The width is computed by adding the character widths of all the characters.It does not matter if the font is an 8-bit or 2-byte font.These functions return the sum of the character metrics, in pixels.<P>To determine the width of an 8-bit character string, use<B><A HREF="XTextWidth.html">XTextWidth()</A></B>.<P>To determine the width of a 2-byte character string, use<B><A HREF="XTextWidth16.html">XTextWidth16()</A></B>.<P><H5 ALIGN=right><I>Next: <A HREF="computing-logical-extent.html">Computing Logical Extents</A></I></H5><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 + =
减小字号Ctrl + -
显示快捷键?