These are chat archives for AvaloniaUI/Avalonia

24th
Apr 2017
danwalmsley
@danwalmsley
Apr 24 2017 07:30
@grokys can you accept mt request to join avalonia edit team, cheers
L
Steven Kirk
@grokys
Apr 24 2017 07:48
Done
danwalmsley
@danwalmsley
Apr 24 2017 08:23
thanks :)
danwalmsley
@danwalmsley
Apr 24 2017 08:39
@kekekeks @wieslawsoltes when you have multiple frameworks targeted, how do you stop .net framework trying to build on Linux / mac?
Nikita Tsukanov
@kekekeks
Apr 24 2017 09:39
dotnet build -f netcoreapp1.1
@danwalmsley do previewer and completion engine work for you now?
danwalmsley
@danwalmsley
Apr 24 2017 10:03
let me try now
wheres link for latest version?
danwalmsley
@danwalmsley
Apr 24 2017 12:12
@grokys can we wait for mono/SkiaSharp#264 to make it into skiasharp release (should be next few days I imagine) before doing a release
it basically means you cant run skia builds on win7 that are built on netcore
danwalmsley
@danwalmsley
Apr 24 2017 12:51
@kekekeks
image.png
Steven Kirk
@grokys
Apr 24 2017 12:55
yeah sure - there's no hurry at this point ;)
danwalmsley
@danwalmsley
Apr 24 2017 12:55
@kekekeks does the previewer not work if its a netcore app?
Darnell Williams
@Seeker1437
Apr 24 2017 13:08
it has to be multitargetted from what he said
Nikita Tsukanov
@kekekeks
Apr 24 2017 14:21
@danwalmsley does this project target any net*** frameworks?
You need to use multitargeting
previewer won't be able to run otherwise
danwalmsley
@danwalmsley
Apr 24 2017 14:31
ah ok that works
although it locked up when adjusting TextBlock.FontSize="0"
I guess it must have thrown an exception somewhere
And here is another Direct2D backend exception from win7
This one is from static constructor
danwalmsley
@danwalmsley
Apr 24 2017 19:18
@kekekeks I'm trying to create a nuget package to automatically copies an entire folder from the package to the build output dir... using the targets file like this...
<ItemGroup>
        <MacOSX Include="$(MSBuildThisFileDirectory)..\..\runtimes\osx\native\Chromium Embdedded Framework.framework\**\*.*" />
     </ItemGroup>

    <!-- add the native OSX library -->
    <ItemGroup Condition=" '$(ShouldIncludeNativeSkiaSharp)' != 'False' and '$(OS)' != 'Unix' ">  
        <Copy SourceFiles="@(MacOSX)" DestinationFolder="@(MacOSX->'$(OutputPath)\\')" />        
    </ItemGroup>
doesn't work however!
I cant find correct way to do this, only for a single file
Nikita Tsukanov
@kekekeks
Apr 24 2017 19:37
Why do you need that voodoo
It will copy everything on publish
And you don't need to copy files on regular builds
Just load them from global nuget directory
Eli Arbel
@aelij
Apr 24 2017 19:44
What do you think about a "sword in the stone" for a logo? Relates to Avalon. Also WPF's logo used to be a shield, so they kinda complement each other. Samples here: https://thenounproject.com/search/?q=sword%20stone
Nikita Tsukanov
@kekekeks
Apr 24 2017 19:46
That kinda implies that framework can only be used by ones that are worthly
Eli Arbel
@aelij
Apr 24 2017 19:46
Hehe :)
danwalmsley
@danwalmsley
Apr 24 2017 19:46
Hey @aelij on the avalonedit port I can add fontfamily and font size properties so user doesn't have to do textblock.fontfamily, etc
Sound good?
Eli Arbel
@aelij
Apr 24 2017 19:46
Sure
@kekekeks Do you think I could add a font metrics API? Both Skia and DirectX have one. Not sure about other platforms.
Nikita Tsukanov
@kekekeks
Apr 24 2017 19:49
If I remember correctly, Cairo had some issues with that
Eli Arbel
@aelij
Apr 24 2017 19:49
What kind of issues?
Nikita Tsukanov
@kekekeks
Apr 24 2017 19:49
But I'm not sure that it's even worth keeping
Well, the general lack of font information API
Or was that font loading
Eli Arbel
@aelij
Apr 24 2017 19:49
It would be really hard to create a RichTextBox without this. I
I'd like to augment the TextLine implementation with this
Nikita Tsukanov
@kekekeks
Apr 24 2017 19:50
I don't know if it really worth to keep Cairo around
It's not maintained by anyone
And you can't use it with .NET Core
Eli Arbel
@aelij
Apr 24 2017 19:51
We can always use an approximation for Cairo, or throw a PNSE...
Nikita Tsukanov
@kekekeks
Apr 24 2017 19:51
And GTK# requires you to either use system mono installation or do tons of work to compile a portable installation (at least for linux, on OSX isn't not that bad)
And the only real platform where Skia doesn't work for us is Linux on ARM
But that's only because it lacks precompiled binaries
And I intend to fix that anyway, since I kinda plan to use NanoPi NEO based solution for commercial project
I'm not either sure if we still need to keep GTK# backend around
It should be possible to make P/Invoke-based GTK backend with GTK2
Eli Arbel
@aelij
Apr 24 2017 19:54
Pango has font metrics as well
Nikita Tsukanov
@kekekeks
Apr 24 2017 19:55
Oh, that's good
We still need to figure out how API should look like though
Since it's not just font metrics
Eli Arbel
@aelij
Apr 24 2017 19:56
Perhaps just expose another method on FormattedText
Nikita Tsukanov
@kekekeks
Apr 24 2017 19:56
It needs to include font enumeration, font loading, etc
I'd like to take API from skia as a reference
Eli Arbel
@aelij
Apr 24 2017 19:57
Yeah it looks good enough. Perhaps also check DirectX's API.
Nikita Tsukanov
@kekekeks
Apr 24 2017 19:57
Their SkFontMgr, SkTypeface and SkFontMetrics are quite good
danwalmsley
@danwalmsley
Apr 24 2017 20:08
:fire: cairo!