You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SkiaSharp.TextPainterpainter=newSkiaSharp.TextPainter{Text=@"Here are some text. This text is made to be long enough to have the TextPainter of CSharpMath (hopefully) add a line break to this text automatically. To demonstrate the capabilities of the TextPainter, here are some math content: First, a fraction in inline mode: $\frac34$ Next, a summation in inline mode: $\sum_{i=0}^3i^i$ Then, a summation in display mode: $$\sum_{i=0}^3i^i$$ (ah, bugs.) After that, an integral in display mode: $$\int^6_{-56}x\ dx$$ Finally, an escaped dollar sign \$ that represents the start/end of math mode when it is unescaped. Even though colours are currently unsupported, it can be done via math mode with the \\color command with the help of the \\text command. It looks like this: $\color{#F00}{\text{some red text}}$, which is nearly indistinguishable from non-math mode aside from not being able to automatically break up when spaces are inside the coloured text. The SkiaSharp version of this is located at CSharpMath.SkiaSharp.TextPainter; and the Xamarin.Forms version of this is located at CSharpMath.Forms.TextView. Was added in 0.1.0-pre4; working in 0.1.0-pre5."};
14
+
SkiaSharp.TextPainterpainter=newSkiaSharp.TextPainter{Text=@"Here are some text.
15
+
This text is made to be long enough to have the TextPainter of CSharpMath add a line break to this text automatically.
16
+
To demonstrate the capabilities of the TextPainter,
17
+
here are some math content:
18
+
First, a fraction in inline mode: $\frac34$
19
+
Next, a summation in inline mode: $\sum_{i=0}^3i^i$
20
+
Then, a summation in display mode: $$\sum_{i=0}^3i^i$$
21
+
After that, an integral in display mode: $$\int^6_{-56}x\ dx$$
22
+
Finally, an escaped dollar sign \$ that represents the start/end of math mode when it is unescaped.
23
+
Colors can be achieved via \backslash color{color}{content}, or \backslash \textit{color}{content},
24
+
where \textit{color} stands for one of the LaTeX standard colors.
25
+
\red{Colored text in text mode are able to automatically break up when spaces are inside the colored text, which the equivalent in math mode cannot do.}
26
+
\textbf{Styled} \texttt{text} can be achieved via the LaTeX styling commands.
27
+
The SkiaSharp version of this is located at CSharpMath.SkiaSharp.TextPainter;
28
+
and the Xamarin.Forms version of this is located at CSharpMath.Forms.TextView.
29
+
Was added in 0.1.0-pre4; working in 0.1.0-pre5; fully tested in 0.1.0-pre6."};
thrownewInvalidOperationException($"{nameof(MeasureCore)} returned null. Any conditions leading to this should have already been checked via {nameof(Source)}.{nameof(Source.IsValid)}.");
92
+
thrownewInvalidCodePathException($"{nameof(MeasureCore)} returned null. Any conditions leading to this should have already been checked via {nameof(Source)}.{nameof(Source.IsValid)}.");
0 commit comments