示例#1
0
 public ParagraphBuilder(ILatinWordMetric latinMetric, ParagraphStyle style)
 {
     _wordWrap = new WordWrapStrategy();
     _advancing = new AdvancingStrategy(style.Indent);
     _latinMetric = latinMetric;
     _zwSize = style.FontSize;
     _rubyZwSize = style.FontSize * style.RubyFontSizeRatio;
 }
示例#2
0
 public ParagraphBuilder(ILatinWordMetric latinMetric, ParagraphStyle style)
 {
     _wordWrap    = new WordWrapStrategy();
     _advancing   = new AdvancingStrategy(style.Indent);
     _latinMetric = latinMetric;
     _zwSize      = style.FontSize;
     _rubyZwSize  = style.FontSize * style.RubyFontSizeRatio;
 }
示例#3
0
            public TextBuffer(float zwSize, WordWrapStrategy wordWrap, AdvancingStrategy advancing, ILatinWordMetric latinMetric, int capacity)
            {
                _wordWrap      = wordWrap;
                _advancing     = advancing;
                _latinMetric   = latinMetric;
                _buffer        = new List <IFormatObject>(capacity);
                _lastLetter    = default(UChar);
                _currentZwSize = _lastLetterZwSize = zwSize;

                SetLatinModeObject(new LatinMode());
            }
示例#4
0
            public TextBuffer(float zwSize, WordWrapStrategy wordWrap, AdvancingStrategy advancing, ILatinWordMetric latinMetric, int capacity)
            {
                _wordWrap = wordWrap;
                _advancing = advancing;
                _latinMetric = latinMetric;
                _buffer = new List<IFormatObject>(capacity);
                _lastLetter = default(UChar);
                _currentZwSize = _lastLetterZwSize = zwSize;

                SetLatinModeObject(new LatinMode());
            }