在一個Rect的正中間繪制文本: rect的中點與文本的中點重合.
int cx = rect.x + rect.width / 2;
int fx = cx - fm.width(text);
int cy = rect.y + rect.height / 2;
int fy = cy + fm.xHeight / 2;

@import url(http://www.shnenglu.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);