Ejemplo n.º 1
0
        /// <summary>
        /// Create a GlyphChar and set the character
        /// </summary>
        public GlyphChar(GlyphContainer container) : base(container)
        {
            Owner = container;
            Font  = new GlyphFont();
            GlyphText text = container as GlyphText;

            if (text != null)
            {
                Font.Name  = text.Font.Name;
                Font.Size  = text.Font.Size;
                Font.Style = text.Font.Style;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deserialization Constructor
 /// </summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 protected GlyphText(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _font = (GlyphFont)info.GetValue("Font", typeof(GlyphFont));
     _textRenderingHint = (System.Drawing.Text.TextRenderingHint)info.GetValue("TextRenderingHint", typeof(System.Drawing.Text.TextRenderingHint));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Deserialization Constructor
 /// </summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 public GlyphChar(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _character = (char)info.GetValue("Character", typeof(char));
     _font      = (GlyphFont)info.GetValue("Font", typeof(GlyphFont));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// The default constructor - XML serialixation only
 /// </summary>
 public GlyphChar() : base()
 {
     Font = new GlyphFont();
 }