Esempio n. 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;
 }
Esempio n. 2
0
 public void BeginParagraph(ILatinWordMetric latinMetric, ParagraphStyle style)
 {
     _builder = new Formatting.ParagraphBuilder(latinMetric, style);
     _builder.BeginParagraph();
     _inRuby = false;
     _rubyBaseText = new UStringBuilder(16);
     _rubyText = null;
 }
Esempio n. 3
0
 public void BeginParagraph(ILatinWordMetric latinMetric, ParagraphStyle style)
 {
     _builder = new Formatting.ParagraphBuilder(latinMetric, style);
     _builder.BeginParagraph();
     _inRuby       = false;
     _rubyBaseText = new UStringBuilder(16);
     _rubyText     = null;
 }
Esempio n. 4
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;
 }
Esempio n. 5
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());
            }
Esempio n. 6
0
 public LayoutEngine(Layout setting, ILatinWordMetric latinWordMetric)
 {
     _setting = setting;
     _latinWordMetric = latinWordMetric;
 }
Esempio n. 7
0
 public AozoraBunkoTextImporter(ILatinWordMetric latinWordMetric)
 {
     _converter = new AozoraBunkoTextConverter();
     _exchangableTextImporter = new ExchangableTextImporter(latinWordMetric);
 }
Esempio n. 8
0
 public LayoutEngine(Layout setting, ILatinWordMetric latinWordMetric)
 {
     _setting         = setting;
     _latinWordMetric = latinWordMetric;
 }
Esempio n. 9
0
 public ExchangableTextImporter(ILatinWordMetric latinWordMetric)
 {
     _latinWordMetric = latinWordMetric;
 }
Esempio n. 10
0
 public AozoraBunkoTextImporter(ILatinWordMetric latinWordMetric)
 {
     _converter = new AozoraBunkoTextConverter();
     _exchangableTextImporter = new ExchangableTextImporter(latinWordMetric);
 }
Esempio n. 11
0
 public ExchangableTextImporter(ILatinWordMetric latinWordMetric)
 {
     _latinWordMetric = latinWordMetric;
 }
Esempio n. 12
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());
            }