Example #1
0
        public Grapheme(List <Glyph> glyphs)
        {
            Initialize();

            var glyphChain = new GlyphChain(glyphs);

            Glyphs.Add(glyphChain);
            Graph = glyphChain.ToString();
        }
Example #2
0
 public bool Equals(GlyphChain other)
 {
     if (other is null)
     {
         return(false);
     }
     else
     {
         return(this.ToString() == other.ToString());
     }
 }
Example #3
0
        public void AddGlyphChain(List <Glyph> glyphs)
        {
            var glyphChain = new GlyphChain(glyphs);

            if (Glyphs != null)
            {
                if (Glyphs.Count == 0)
                {
                    Graph = glyphChain.ToString();
                }

                if (!Glyphs.Contains(glyphChain))
                {
                    Glyphs.Add(glyphChain);
                }
            }
        }