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 void BeginParagraph(ILatinWordMetric latinMetric, ParagraphStyle style) { _builder = new Formatting.ParagraphBuilder(latinMetric, style); _builder.BeginParagraph(); _inRuby = false; _rubyBaseText = new UStringBuilder(16); _rubyText = null; }
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 LayoutEngine(Layout setting, ILatinWordMetric latinWordMetric) { _setting = setting; _latinWordMetric = latinWordMetric; }
public AozoraBunkoTextImporter(ILatinWordMetric latinWordMetric) { _converter = new AozoraBunkoTextConverter(); _exchangableTextImporter = new ExchangableTextImporter(latinWordMetric); }
public ExchangableTextImporter(ILatinWordMetric latinWordMetric) { _latinWordMetric = latinWordMetric; }
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()); }