internal TextStringWrapper(ContentScanner scanner, bool scan = true) : base((ShowText)scanner.Current) { Context = scanner.ContentContext; Context.Strings.Add(this); textChars = new List <TextChar>(); { GraphicsState state = scanner.State; style = new TextStyle( state.Font, state.FontSize * state.TextState.Tm.ScaleY, state.RenderMode, state.StrokeColor, state.StrokeColorSpace, state.FillColor, state.FillColorSpace, state.Scale * state.TextState.Tm.ScaleX, state.TextState.Tm.ScaleY ); if (scan) { BaseDataObject.Scan( state, new ShowTextScanner(this) ); } } }
internal TextStringWrapper( ContentScanner scanner ) : base((ShowText)scanner.Current) { textChars = new List <TextChar>(); { GraphicsState state = scanner.State; style = new TextStyle( state.Font, state.FontSize * state.Tm.Elements[3], state.RenderMode, state.StrokeColor, state.StrokeColorSpace, state.FillColor, state.FillColorSpace ); BaseDataObject.Scan( state, new ShowTextScanner(this) ); } }