private CharInfo GetCharInfo(ITeXFont texFont, TexStyle style) { if (this.TextStyle == null) return texFont.GetDefaultCharInfo(this.Character, style); else return texFont.GetCharInfo(this.Character, this.TextStyle, style); }
private CharInfo GetCharInfo(ITeXFont texFont, TexStyle style) { if (this.TextStyle == null) { return(texFont.GetDefaultCharInfo(this.Character, style)); } else { return(texFont.GetCharInfo(this.Character, this.TextStyle, style)); } }
protected override Result <CharInfo> GetCharInfo(ITeXFont texFont, TexStyle style) => this.IsDefaultTextStyle ? texFont.GetDefaultCharInfo(this.Character, style) : texFont.GetCharInfo(this.Character, this.TextStyle, style);
private CharInfo GetCharInfo(ITeXFont texFont, TexStyle style) => TextStyle is null ? texFont.GetDefaultCharInfo(Character, style) : texFont.GetCharInfo(Character, TextStyle, style);