Hey, looks really cool in your demo. I have some problems getting this to work. There is one missing nuget that cant load and a bunch of nodes that try to reference VL.Richstring.vl, MeasureParagraphs for example. tried in gamma 3.2 and latest preview.
No idea what’s exactly wrong there. Maybe try opening the VL.richtextkit.vl and see if that one has red nodes and fix those (by installing dependencies)
Hey, so the VL.RichString.vl file is not included in the zip, theres only a helpfile called TEST-RichString.vl. When i open the helpfile it opens new skia windows every frame. The missing nugets ive been able to install.
dlls.zip (885.2 KB)
can you try to add those dlls into the folder and replace the existing ones?
somehow the dlls in the zip werent the latest ones i guess. and also, the harfbuzzsharp can be placed next to those, so you don’t need to add the nuget (in case that also failed)
Hi, @sebl,
I just gave it a try with dlls.Everything looks okay except the hyphentor for me too. I had to install the nuget to get rid of the red nodes:
yes, i didn’t assume the hnhunspell nuget installs automatically, since all of this isn’t a nuget where dependencies get installed automatically.
glad it works now and please share your opinions
also note that this is 2 projects badly packed into one. the hyphenator has nothing to do with the richtext. i just needed both of them for a project so they are bundled fere and for now.
First impression: great! (But how do I - oh! But what about - Oh!)
Setting fonts is maybe a bit of an issue, though. In the example The fonts needed to be known by name to be called and from the system-installed fonts(I assume). If I compile an application and want to include a font in a folder I can use ‘Skia.Text.TypefaceFromFile()’.
So there’s that, but in general this is a very useful tool for setting text. I’ll have to play with it more to find some holes…
Maybe vertical alignment. Your example concentrates on DIP screen spaces from the top left. If a maximum height has been set perhaps text can appear in the middle of that space
works and feels nice. also much better handling than the skia text and more options like markup!, letter spacing and wider font weight settings (if the font has more weights than 4, skia´s enum wont cover them). + language specific hyphenation!
will use it for a current project now and come back with any findings.
thanks!
What is the reasoning behind the markup parsing? not sure why it feels so complex. it works fine, without looking to deep into the problem, just curious why it is built like that.
Should the SkiaPaint pin on the DrawRichString node work? Tried to use it but nothing happens. Was thinking if i could somehow add dropshadow or anything other paint related.