mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-01 14:54:03 +02:00
playtwitch: fix fonts
This commit is contained in:
parent
4e47476052
commit
a2b14892a3
|
@ -20,7 +20,7 @@ pub fn loadFont() !?*c.ImFont {
|
|||
log.info("loading fonts", .{});
|
||||
|
||||
const fonts = [_][:0]const u8{
|
||||
"/usr/share/fonts/TTF/Iosevka Nerd Font Complete.ttf",
|
||||
"/usr/share/fonts/TTF/IosevkaNerdFont-Regular.ttf",
|
||||
"/usr/share/fonts/noto/NotoSans-Regular.ttf",
|
||||
};
|
||||
|
||||
|
@ -28,7 +28,7 @@ pub fn loadFont() !?*c.ImFont {
|
|||
const found = if (std.fs.accessAbsolute(font, .{})) |_|
|
||||
true
|
||||
else |e| if (e == error.FileNotFound)
|
||||
true
|
||||
false
|
||||
else
|
||||
return e;
|
||||
|
||||
|
|
Loading…
Reference in a new issue