public List <TextToken2D> CreateTextToken2DFrom(string tokenText) { List <TextToken2D> textToken2Ds = TextParagraphFactory.CreateTextTokens(this.TokenType, tokenText, this.SpriteColor); foreach (TextToken2D textToken in textToken2Ds) { textToken.CharacterSize = this.CharacterSize; textToken.CustomZoom = this.CustomZoom; } this.NbHandlingToken = textToken2Ds.Count; return(textToken2Ds); }
static TextCanevas2D() { textParagraphFactory = new TextParagraphFactory(); textParagraphFactory.Culture = "fr"; }