예제 #1
0
        /// <summary>Reads a Unicode <c>String</c> from the font file.</summary>
        /// <remarks>Reads a Unicode <c>String</c> from the font file. Each character is represented by two bytes.</remarks>
        /// <param name="length">the length of bytes to read. The <c>String</c> will have <c>length</c>/2 characters.</param>
        /// <returns>the <c>String</c> read.</returns>
        private String ReadUnicodeString(int length)
        {
            StringBuilder buf = new StringBuilder();

            length /= 2;
            for (int k = 0; k < length; ++k)
            {
                buf.Append(raf.ReadChar());
            }
            return(buf.ToString());
        }