Esempio n. 1
0
        public override bool Equals(System.Object object_Renamed)
        {
            bool isEqual = false;

            if (base.Equals(object_Renamed) && (object_Renamed is DefineText))
            {
                DefineText defineText = (DefineText)object_Renamed;

                if (equals(defineText.bounds, this.bounds) && equals(defineText.matrix, this.matrix) && equals(defineText.records, this.records))
                {
                    isEqual = true;
                }
            }

            return(isEqual);
        }
Esempio n. 2
0
		public override void  defineText2(DefineText tag)
		{
			tags.Add(tag);
		}
		public virtual void  defineText2(DefineText tag)
		{
		}
		private Tag decodeDefineText(int type)
		{
			DefineText t = new DefineText(type);
			
			int id = r.readUI16();
			t.bounds = decodeRect();
			t.matrix = decodeMatrix();
			
			int glyphBits = r.readUI8();
			int advanceBits = r.readUI8();
			// todo range check - glyphBits and advanceBits must be <= 32
			System.Collections.ArrayList list = new System.Collections.ArrayList(2);
			
			int code;
			while ((code = r.readUI8()) != 0)
			{
				list.Add(decodeTextRecord(type, code, glyphBits, advanceBits));
			}
			
			t.records = list;
			
			dict.add(id, t);
			return t;
		}