mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.4k stars 535 forks source link

`skia_use_fontconfig=false` causing problems? #2248

Closed simendsjo closed 2 years ago

simendsjo commented 2 years ago

I notice that SkiaSharp.NativeAssets.Linux.NoDependencies is unable to locate my system fonts. Could it be because of this setting? I'm running Guix System, so I don't have an /usr/share/fonts or similar. I guess NixOS users will have the same issue.

Gillibald commented 2 years ago

NoDependencies means Skia is using a font manager that is only loading fonts via some specific file system location. You can still load your fonts via stream.

simendsjo commented 2 years ago

I'm using SkiaSharp.NativeAsserts.Linux instead, and patchelf to set rpath to my library folder which contains fontconfig and other necessary libraries.