static public int SetFormat(IntPtr l) { try { FairyGUI.BitmapFont self = (FairyGUI.BitmapFont)checkSelf(l); FairyGUI.TextFormat a1; checkType(l, 2, out a1); self.SetFormat(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }