These are chat archives for AvaloniaUI/Avalonia

10th
Nov 2015
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 13:34
@grokys Thanks for merging so quickly my pull request!
Nikita Tsukanov
@kekekeks
Nov 10 2015 13:39
Yeah, our CI is now able to build xamarin projects
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 13:46
@kekekeks Do you plan to create nuget package for Skia version?
Nikita Tsukanov
@kekekeks
Nov 10 2015 13:46
What do you need it for?
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 13:46
test
Nikita Tsukanov
@kekekeks
Nov 10 2015 13:46
It's kinda useless without windowing backend
Oh, wait
You are talking about desktop one
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 13:47
yes, desktop
Nikita Tsukanov
@kekekeks
Nov 10 2015 13:47
Yeah, worth a try
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 13:47
That would be great
Nikita Tsukanov
@kekekeks
Nov 10 2015 13:47
It needs to be explicitly loaded however
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 13:48
Thats not a problem
Just takes a lot to get all binaries in right place
Nikita Tsukanov
@kekekeks
Nov 10 2015 13:48
Well, MSBuild shoud place them to proper location automatically
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 13:49
I prefer using Nuget, to test with my app
Nikita Tsukanov
@kekekeks
Nov 10 2015 13:49
Well, I need to read nuget docs to figure out how to package native binaries properly
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 13:50
ok
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 15:19
@kekekeks I think Skia desktop nuget package is missing Perspex.Win32
Nikita Tsukanov
@kekekeks
Nov 10 2015 15:23
I'm still debugging it
But it won't require Perspex.Win32
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 15:23
ok
Nikita Tsukanov
@kekekeks
Nov 10 2015 15:24
Mkay, now it correctly installs native deps to output directory
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 15:40
So calling SkiaPlatform.Initialize(); should be enough to initialize ?
Nikita Tsukanov
@kekekeks
Nov 10 2015 15:40
Yep, it will register IPlatformRenderingInterface in locator
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 15:40
I am getting Exception thrown: 'System.NullReferenceException' in Perspex.Markup.Xaml.dll
        public App()
        {
            RegisterServices();
            //InitializeSubsystems((int)Environment.OSVersion.Platform);
            SkiaPlatform.Initialize();
            Styles = new DefaultTheme();
        }
Nikita Tsukanov
@kekekeks
Nov 10 2015 15:41
no idea why that's happening
Ehm
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 15:41
on line Styles = new DefaultTheme();
Nikita Tsukanov
@kekekeks
Nov 10 2015 15:41
You haven't registered windowing backend
currently you can call SkiaPlatform.Initialize after InitializeSubsystems
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 16:07
Its working now
Perspex_Skia.PNG
Nikita Tsukanov
@kekekeks
Nov 10 2015 16:10
Wow
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 16:10
Skia Version
Perspex_D2D.PNG
D2D Version
LineCap seems broken somewhat
and Arc rendering
Nikita Tsukanov
@kekekeks
Nov 10 2015 16:12
Skia doesn't support some line caps
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 16:12
I am using Flat and Round
Arcs - Skia:
Arcs_Skia.PNG
Arcs - D2D:
Arcs_D2D.PNG
Nikita Tsukanov
@kekekeks
Nov 10 2015 16:13
It also doesn't support separate line caps for start and end
Weston
@ronnyek
Nov 10 2015 16:14
what is core2d
hacklex
@hacklex
Nov 10 2015 16:15
...his project, it seems.
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 16:16

what is core2d

My project, drawing app

It also doesn't support separate line caps for start and end

No problem here, I am using same for start and end

Nikita Tsukanov
@kekekeks
Nov 10 2015 16:18
What exactly is wrong with line caps?
hacklex
@hacklex
Nov 10 2015 16:18
Yep, there is a bug in our current ArcTo. I see it and I confirm it.
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 16:19

What exactly is wrong with line caps?

Sorry for that, my bad, I have seen difference in caps

Skia caps are ok, the Direct2D version is broken
Nikita Tsukanov
@kekekeks
Nov 10 2015 16:20
I need to work on text rendering
My current formattedtext implementation has extra space on top of the block
hacklex
@hacklex
Nov 10 2015 16:21
Unfortunately, I'll only get a chance to seriously look into ArcTo logic tomorrow
today and, it seems, tonight, I am already busy enough -_-
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 16:23
Caps_Skia.PNG
Skia LinCaps's are ok
Caps_D2D.PNG
The Direct2D version not ok

My current formattedtext implementation has extra space on top of the block

Yes I seen this, it also looks less sharp

Nikita Tsukanov
@kekekeks
Nov 10 2015 16:25
That's because of freetype instead of cleartype
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 16:26
Is this fixable?
Nikita Tsukanov
@kekekeks
Nov 10 2015 16:26
No idea
Hm
Wait
Some random guy from the internet states that skia uses GDI
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 16:31
maybe SubpixelText ?
or LCDRenderText ?
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 16:36
So they use GDI for font rendering?
Nikita Tsukanov
@kekekeks
Nov 10 2015 16:38
Yep, seems to be GDI
Well, if it's OK for Chrome/Firefox, it should probably be OK for us
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 18:38
Screenshot_2015-11-10_19-37-00.png
Perspex + Skia + Linux
Nikita Tsukanov
@kekekeks
Nov 10 2015 18:39
looks cool
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 18:39
There is same problem with .targets as before with NuGet packages
for the Skia package
on linux
Nikita Tsukanov
@kekekeks
Nov 10 2015 18:39
Binaries don't get copied?
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 18:40
yes
Nikita Tsukanov
@kekekeks
Nov 10 2015 18:40
Well, that's xbuild's issue
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 18:40
I just copied them manually ;)
Nikita Tsukanov
@kekekeks
Nov 10 2015 18:40
MSBuild is being ported to linux, so it should be fine soon
Wiesław Šoltés
@wieslawsoltes
Nov 10 2015 18:40
I hope
The fonts are much nicer then Gtk/Cairo ones
Nikita Tsukanov
@kekekeks
Nov 10 2015 18:42
Well, Cairo backend uses pango while skia uses freetype directly
Nikita Tsukanov
@kekekeks
Nov 10 2015 22:25
blob
blob
UI scaling FTW
Nikita Tsukanov
@kekekeks
Nov 10 2015 22:39
This message was deleted
This message was deleted
Nikita Tsukanov
@kekekeks
Nov 10 2015 23:36
@grokys it seems that coordinates get rounded somewhere in perspex code
blob
See this green border? It's virtual client rectangle that was filled using the same transformation that is used by everything else
Nikita Tsukanov
@kekekeks
Nov 10 2015 23:44
Wait
Toplevel's position is (0,-1)
wtf
WTF is UseLayoutRounding and why is it placing Window's postion to -1?
Nikita Tsukanov
@kekekeks
Nov 10 2015 23:55
@grokys Current ArrangeCore isn't compatible with scaling