/span></dt><dd><code>FontMetrics.stringWidth(String)</code></dd></dl>
</li>
</ul>
<a name="getStrPixWidth(java.awt.Font, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStrPixWidth</h4>
<pre>public static&nbsp;int&nbsp;getStrPixWidth(java.awt.Font&nbsp;f,
                 java.lang.String&nbsp;str)</pre>
<div class="block">获得字符串的像素宽度.</div>
<dl><dt><span class="strong">参数:</span></dt><dd><code>f</code> - the f</dd><dd><code>str</co