g)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStrPixWidth</h4>
<pre>public static&nbsp;int&nbsp;getStrPixWidth(java.awt.FontMetrics&nbsp;fm,
                 java.lang.String&nbsp;str)</pre>
<div class="block">获得字符串的像素宽度.</div>
<dl><dt><span class="strong">参数:</span></dt><dd><code>fm</code> - the fm</dd><dd><code>str</code> - the str</dd>
<dt><span class="strong">返回:</span></dt><dd>the str pix width</dd><dt><span class="strong">另请参阅:<