Can we discuss the best way to describe styles (colors, italics, fonts, ...) in the Atom type?
Currently:
| wpf-math |
CSharpMath |
Comment |
Char of char * textStyle: string option |
|
|
FixedChar of c:char * fontId:int |
|
|
Styled of RowAtom* background: Brush * foreground: Brush |
Styled of Atom * Style Color of Atom * colorString: string |
|
Should we have a single Atom case Styled of Atom * Style to give style information?
type Style = System.Drawing.Color option * italic: bool option * bold: bool option * font: string option
Where inner styles take precedence over outer styles, and there is a default style which is the most outer style? Would this work?
Can we discuss the best way to describe styles (colors, italics, fonts, ...) in the Atom type?
Currently:
Char of char * textStyle: string optionFixedChar of c:char * fontId:intStyled of RowAtom* background: Brush * foreground: BrushStyled of Atom * StyleColor of Atom * colorString: stringShould we have a single Atom case
Styled of Atom * Styleto give style information?Where inner styles take precedence over outer styles, and there is a default style which is the most outer style? Would this work?