Coder Social home page Coder Social logo

Comments (7)

hdocsek avatar hdocsek commented on July 22, 2024 1

@davidxuang Seems like you were spot on. Version 1.1.234-exp works correctly on macOS.

from fluenticons.

davidxuang avatar davidxuang commented on July 22, 2024

I suspect the reason is that SkiaSharp can't handle OpenType COLR table on macOS. Starting with version 1.1.230, COLR table is added to the font to render color flags properly, but it didn't cover, and shouldn't affect other characters. I suppose this should be forwarded to upstream.

from fluenticons.

davidxuang avatar davidxuang commented on July 22, 2024

@hdocsek I've uploaded an experimental version 1.1.234-exp for Avalonia, with COLR table dropped from TTF files. If my guess was correct, this version should work on macOS.
I couldn't find an environmet to reproduce the issue shortly, so could you test this version to validate the theory?

from fluenticons.

davidxuang avatar davidxuang commented on July 22, 2024

@hdocsek Could you also attach a screenshot for both 1.1.234 and 1.1.234-exp, to provide references to upstream? Please include both a regular icon and a color icon, like:

<StackPanel>
    <ic:SymbolIcon Symbol="Home" IsFilled="True" />
    <ic:SymbolIcon Symbol="Home" IsFilled="True" Foreground="Red" />
    <ic:SymbolIcon Symbol="FlagPride" IsFilled="True" />
    <ic:SymbolIcon Symbol="FlagPride" IsFilled="True" Foreground="Red" />
</StackPanel>

from fluenticons.

hdocsek avatar hdocsek commented on July 22, 2024

@davidxuang Here are the screenshots for both versions:
FluentIcons Avalonia 1 1 234-labeled
FluentIcons Avalonia 1 1 234-exp-lableled

from fluenticons.

davidxuang avatar davidxuang commented on July 22, 2024

@hdocsek Can you confirm if this issue also applies to SkiaSharp 3 preview? It seems to me Avalonia 11.1 beta series work with SkiaSharp 3 preview. (3.0.0-preview.0.132 is actually 3.0.0-preview.3.132 mislabelled)

    <PackageReference Include="Avalonia" Version="11.1.0-beta1" />
    <PackageReference Include="SkiaSharp" Version="3.0.0-preview.0.132" />

from fluenticons.

hdocsek avatar hdocsek commented on July 22, 2024

@davidxuang Referencing SkiaSharp 3.0.0-preview.0.132 seems to fix the issue no matter if Avalonia 11.0.10 or 11.1.0-beta1 is used.

FluentIcons Avalonia 1 1 234_WithSkiaSharp-labeled

from fluenticons.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.