Пример #1
0
 /// <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();
 }
Пример #2
0
 public void SetFont(IFont font)
 {
     _currentFont = font.DownCast <Font>().Value;
 }