You can clone a font stroke by adding the following line in the _copyspecialproperties () method
if (Uilabel._labelrenderer && uilabel._labelrenderer._strokeenabled) {This
. Enableoutline (uilabel._labelrenderer._strokecolor,uilabel._labelrenderer._strokesize);
_copyspecialproperties:function(UiLabel) {if(UiLabelinstanceofCcui. Text) { This. Setfontname (Uilabel._fontname); This. Setfontsize (Uilabel.getfontsize ()); This. SetString (Uilabel.getstring ()); This. settouchscalechangeenabled (uilabel.touchscaleenabled); This. Settextareasize (Uilabel._textareasize); This. Settexthorizontalalignment (Uilabel._labelrenderer.gethorizontalalignment ()); This. Settextverticalalignment (Uilabel._labelrenderer.getverticalalignment ()); This. Setcontentsize (Uilabel.getcontentsize ()); This. SetTextColor (Uilabel.gettextcolor ());if(Uilabel._labelrenderer && uilabel._labelrenderer._strokeenabled) { This. Enableoutline (Uilabel._labelrenderer._strokecolor,uilabel._labelrenderer._strokesize); }
}
},