Exemple #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;
 }
Exemple #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;
 }
Exemple #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());
            }
Exemple #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());
            }