M
M
Mars362021-03-09 22:05:22
linux
Mars36, 2021-03-09 22:05:22

How to fix incorrect display of some awesome icons in linux?

The problem is that some icons may not be displayed (for example, the kernel icon is shown as a pencil icon, for example) on one machine and displayed on another, despite the fact that the distribution is the same everywhere. Package versions are new. All rolled at the same time and the packages are the same.

Examples

6047c6d73a60c171782571.png
6047c6e831988077382616.png
6047c6ef0f6d4696648573.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mars36, 2021-03-09
@Mars36

Finally this script helped.

use strict;
use warnings;
use Font::FreeType;
my ($char) = @ARGV;
foreach my $font_def (`fc-list`) {
    my ($file, $name) = split(/: /, $font_def);
    my $face = Font::FreeType->new->face($file);
    my $glyph = $face->glyph_from_char($char);
    if ($glyph) {
        print $font_def;
    }
}

B
brar, 2021-03-09
@brar

https://wiki.archlinux.org/index.php/I3#Iconic_fon...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question