Closed Vosjedev closed 8 months ago
Can you tell me:
Which version of Arch are you using?
The latest, I installed a couple of months ago, but kept updating since then. As far as I know arch does not have os versions the way ubuntu/debian/fedora for example has them, the only version is the ISO. Edit: Just looked this up, it indeed doesn't have a version, it's a rolling release distro.
Which window manager are you running?
hyprland 0.33.1-2
Which desktop environment are you using?
None.
Trying on Arch with KDE, Bifrost launches and runs just fine.
I haven't been able to get an instance of Hyprland working to test. Arch base + manual install crashes randomly and silently fails to launch Bifrost. ArcolinuxB boots to a black screen on the live image.
I don't think this is something I can fix, unfortunately.
Wel, thanks for attempting to reproduce, than. I guess I will find out what's wrong myself. What fonts are used? I suppose one is missing.
It looks like it's looking for either "Noto Sans" or "DejaVu Sans" on Linux.
I installed DejaVu Sans, and now it works! Thank you!
I'm going to try adding my own mapping to fall back to Arial for sans-serif, Times New Roman for serif, and Consolas for monospace, since those aren't part of what Compose looks for on Linux by default, and apparently it doesn't degrade gracefully for missing fonts.
Is it not posible to specify sans-serif
, serif
, and mono
as fonts to let the system decide what it has like in CSS?
Not that I can tell. Generic font families are narrowed down to specific lists depending on the platform inside of Compose. I'm not sure if this is a limitation of Skia, Skiko, Compose, or Java.
I am running archlinux, and I downloaded the latest release.
It complains about not being able to load a font, not showing what font. I installed by downloading the tar.gz, extracting, cd'ing into the directory, and running
bin/bifrost
.Here is the stacktrace (all output):
stacktrace (click to expand)
``` Dec 10, 2023 6:42:43 PM java.util.prefs.FileSystemPreferences$6 run WARNING: Prefs file removed in background /home/vosje/.java/.userPrefs/prefs.xml java.lang.IllegalStateException: Could not load font at androidx.compose.ui.text.font.TypefaceRequestCache.runCached(FontFamilyResolver.kt:200) at androidx.compose.ui.text.font.FontFamilyResolverImpl.resolve(FontFamilyResolver.kt:92) at androidx.compose.ui.text.font.FontFamilyResolverImpl.resolve-DPcqOEQ(FontFamilyResolver.kt:79) at androidx.compose.ui.text.platform.ComputedStyle.toSkTextStyle(SkiaParagraph.skiko.kt:227) at androidx.compose.ui.text.platform.ParagraphBuilder$makeSkTextStyle$1.invoke(SkiaParagraph.skiko.kt:548) at androidx.compose.ui.text.platform.ParagraphBuilder$makeSkTextStyle$1.invoke(SkiaParagraph.skiko.kt:547) at androidx.compose.ui.text.WeakKeysCache.get(Cache.jvm.kt:24) at androidx.compose.ui.text.platform.ParagraphBuilder.makeSkTextStyle(SkiaParagraph.skiko.kt:547) at androidx.compose.ui.text.platform.ParagraphBuilder.textStyleToParagraphStyle(SkiaParagraph.skiko.kt:513) at androidx.compose.ui.text.platform.ParagraphBuilder.build(SkiaParagraph.skiko.kt:320) at androidx.compose.ui.text.platform.ParagraphLayouter.layoutParagraph(ParagraphLayouter.skiko.kt:162) at androidx.compose.ui.text.platform.SkiaParagraphIntrinsics.