获取字体高度:
public void MeasureString() throws IOException {
System.out.println("MeasureString");
GsMemoryImageCanvas pmemimage = new GsMemoryImageCanvas(512,512);
String str = "林山地";
GsRectF rf = new GsRectF();
GsStringFormat sFontFormat = new GsStringFormat();
sFontFormat.FontSize(23);
pmemimage.MeasureString(str, str.length(), rf, sFontFormat);
float h = rf.Height();
System.out.println(h);
Assert.assertSame(h>0, true);
}