/// <summary> /// /// </summary> public void SetFont(IFont font) { _writer.WriteStartObject(); _writer.WriteString("name", nameof(JSRenderFuncName.setFont)); _writer.WriteNumber("arg", font.DownCast <Font>().JsObj.Id); _writer.WriteEndObject(); }
public void SetFont(IFont font) { _currentFont = font.DownCast <Font>().Value; }