예제 #1
0
        public void TextWithGroupRuby(UString baseText, UString rubyText)
        {
            var baseBuffer = new TextBuffer(_zwSize, _wordWrap, _advancing, _latinMetric, 64);
            var rubyBuffer = new TextBuffer(_rubyZwSize, _wordWrap, _advancing, _latinMetric, 128);

            _buffer.MoveLastLetterStateTo(baseBuffer);
            baseBuffer.Append(baseText);
            rubyBuffer.Append(rubyText);
            _buffer.AppendObject(new GroupRuby(baseBuffer.ToArray(), rubyBuffer.ToArray()));
            baseBuffer.MoveLastLetterStateTo(_buffer);
            baseBuffer.Clear();
            rubyBuffer.Clear();
        }