Closed Happypig375 closed 3 years ago
Hi thanks for the update I update my Xamarin Forms Solution to 0.4.0. Now I get an arrow for the function InitializeComponent():
'Could not set up parent class, due to: Generic type definition failed to init, due to: VTable setup of type CSharpMath.Forms.BaseView2[TPainter,TContent] failed assembly:/storage/emulated/0/Android/data/com.companyname.mathx/files/.__override__/CSharpMath.Forms.dll type:BaseView2 member:(null) assembly:/storage/emulated/0/Android/data/com.companyname.mathx/files/.__override__/CSharpMath.Forms.dll type:BaseView
2 member:(null)'
`
try deleting bin/obj folders and rebuilding?
tried it still not working also cleared nuget cache
When I reset to 0.3.0 it works for me I don't know if the issue is from my solution or the update
I can investigate if you send me your solution.
Sure check it https://we.tl/t-QoEgR1xKQL
Figured it out. Somehow CSharpMath.Forms 0.4.0 had a dependency on CSharpMath.SkiaSharp 0.4.0-beta instead of 0.4.0. I have no idea how this happened.
Any suggestions to fix this? So the bug isn't from my solution?
Pushed a 0.4.0.1.
Or you can explicitly specify a dependency on CSharpMath.SkiaSharp 0.4.0.
I guess I have to add a test for loading and using the latest NuGet.
@Happypig375 has there been a change to mathPainter.Draw or to the definition of .Measure?
All the mathPainter positioning is out of place now. I will need to work out what the current definition is, and how to fix all usages of Draw, if the new API is stable. I suspect the new one is incorrect though.
It's looking like a change in the definition of Measure. I remember there were problems with the vertical coordinates of the measure in early releases.
We have the following code to adjust y positioning based on whether you want the lining to be at y or the center or the top. Only YTextAlign.Line works now which suggests a bug with measure.
let yCoordinateToDrawTo =
y +
match yAlign with
| YTextAlign.Line -> 0.f // works
| YTextAlign.Center -> -0.5f * (measure.Top + measure.Bottom) // fails
| YTextAlign.Top -> - measure.Top // fails
The behavior of Measure
has now been fixed and documented at https://github.com/verybadcat/CSharpMath/blob/6678311f2f4f711ce6992e20ea31cd095205f651/CSharpMath.Rendering.Tests/TestMeasure.cs#L40-L58
Edit: sorry when you said has been fixed you meant you just fixed it. Testing now!
Fix works. Thanks!
Have been noticing missing text related to starting TeX with $$...$$ (and [...] has the same behavior). For example, "$$p(x)=ax^2+bx+c, \text{ where } a \neq 0$$ A quadratic is a $2^{nd}$ degree polynomial." would only show "A quadratic is a 2nd degree polynomial." And "$$x$$ $$y$$" will only show "y"
Just $$...$$ by itself or after regular seems to display correctly.
Superseded by #190.
With the co[DEMONETIZED]us🦠 shutting down schools, I have had more time to work on CSharpMath lol :rocket:
New additions
\colorbox
es!What's next?
Since the exams, although delayed, are still coming up, I will need to temporarily leave once again. However, there are already a bunch of planned items for the next update once I come back. Stay tuned!
Leftovers from 0.2.0 checklist (see https://github.com/verybadcat/CSharpMath/issues/104)
\middle
Stay safe🦺, 💪stay healthy🧼 and 🥚🐇Happy Easter🐣🐰!
Supersedes #104.