public TexRunShapeData(TextRun run, bool storeGlyph) { if (storeGlyph && run.GlyphData != null) { this.m_glyphData = run.GlyphData.GlyphScriptShapeData; } this.m_analysis = run.SCRIPT_ANALYSIS; this.m_scriptLogAttr = run.ScriptLogAttr; this.m_cachedFont = run.CachedFont; this.m_runState = run.State; this.m_itemizedScriptId = run.ItemizedScriptId; }
internal TextRun(string text, TextRun textRun, SCRIPT_LOGATTR[] scriptLogAttr) : this(text, textRun) { SCRIPT_ANALYSIS = textRun.SCRIPT_ANALYSIS; ScriptLogAttr = scriptLogAttr; m_cachedFont = textRun.CachedFont; m_itemizedScriptId = textRun.ItemizedScriptId; bool hasEastAsianChars = HasEastAsianChars; m_runState = textRun.State; HasEastAsianChars = hasEastAsianChars; }
public TextRun(string text, TextRun textRun, SCRIPT_LOGATTR[] scriptLogAttr) : this(text, textRun) { this.SCRIPT_ANALYSIS = textRun.SCRIPT_ANALYSIS; this.ScriptLogAttr = scriptLogAttr; this.m_cachedFont = textRun.CachedFont; this.m_itemizedScriptId = textRun.ItemizedScriptId; bool hasEastAsianChars = this.HasEastAsianChars; this.m_runState = textRun.State; this.HasEastAsianChars = hasEastAsianChars; }
internal TextRun(string text, ITextRunProps props, TexRunShapeData shapeData) : this(text, props) { if (shapeData != null) { SCRIPT_ANALYSIS = shapeData.Analysis; ScriptLogAttr = shapeData.ScriptLogAttr; m_cachedFont = shapeData.Font; m_itemizedScriptId = shapeData.ItemizedScriptId; m_runState = shapeData.State; if (shapeData.GlyphData != null) { m_cachedGlyphData = new GlyphData(shapeData.GlyphData); } } }