public ParagraphBuilder(ILatinWordMetric latinMetric, ParagraphStyle style) { _wordWrap = new WordWrapStrategy(); _advancing = new AdvancingStrategy(style.Indent); _latinMetric = latinMetric; _zwSize = style.FontSize; _rubyZwSize = style.FontSize * style.RubyFontSizeRatio; }
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()); }
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()); }