예제 #1
0
        public override bool Equals(System.Object object_Renamed)
        {
            bool isEqual = false;

            if (object_Renamed is GlyphEntry)
            {
                GlyphEntry glyphEntry = (GlyphEntry)object_Renamed;

                if ((glyphEntry.index == this.index) && (glyphEntry.advance == this.advance))
                {
                    isEqual = true;
                }
            }

            return(isEqual);
        }
예제 #2
0
		private GlyphEntry[] decodeGlyphEntries(int glyphBits, int advanceBits, int count)
		{
			GlyphEntry[] e = new GlyphEntry[count];
			
			r.syncBits();
			for (int i = 0; i < count; i++)
			{
				GlyphEntry ge = new GlyphEntry();
				
				ge.Index = r.readUBits(glyphBits);
				ge.advance = r.readSBits(advanceBits);
				
				e[i] = ge;
			}
			
			return e;
		}