$ 0 0 在一个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.cppblog.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);逛奔的蜗牛 2013-08-03 18:27 发表评论