KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.83k stars 453 forks source link

Font name truncated on macOS #620

Open dpinela opened 5 years ago

dpinela commented 5 years ago

I'm submitting a ... (check one with "x")

[x] bug report
[ ] new distro request

Bug report

I'm using Terminal.app with the font set to Fantastique Sans Mono Regular, but screenfetch displays it only as "egular". screenfetch -v shows the following:

> screenfetch -v
:: Finding distro...found as 'Mac OS X '
:: Finding hostname and user...found as 'dpinela@pinelabook'
:: Finding kernel version...found as 'x86_64 Darwin 18.6.0'
:: Finding current uptime...found as '30d 7h 2m'
:: Finding current package count...found as '144'
:: Finding current shell...found as 'fish 3.0.2'
:: Finding current resolution(s)...found as '2560x1600 '
:: Finding desktop environment...found as 'Aqua'
:: Finding window manager...found as 'Quartz Compositor'
:: Finding window manager theme...found as 'Blue'
:: Finding GTK2 theme...found as 'Not Applicable'
:: Finding GTK3 theme...found as 'Not Applicable'
:: Finding icon theme...found as 'Not Applicable'
:: Finding user font...found as 'egular'
:: Finding current CPU...found as 'Intel Core i5-4258U @ 2.40GHz'
:: Finding current disk usage...found as '104G / 121G (90%%)'
:: Finding current GPU...found as 'Intel Iris '
:: Finding current RAM usage...found as '2468MiB / 4096MiB'

                 -/+:.          dpinela@pinelabook
                :++++.          OS: 64bit Mac OS X 10.14.5 18F132
               /+++/.           Kernel: x86_64 Darwin 18.6.0
       .:-::- .+/:-``.::-       Uptime: 30d 7h 2m
    .:/++++++/::::/++++++/:`    Packages: 144
  .:///////////////////////:`   Shell: fish 3.0.2
  ////////////////////////`     Resolution: 2560x1600 
 -+++++++++++++++++++++++`      DE: Aqua
 /++++++++++++++++++++++/       WM: Quartz Compositor
 /sssssssssssssssssssssss.      WM Theme: Blue
 :ssssssssssssssssssssssss-     Font: egular
  osssssssssssssssssssssssso/`  Disk: 104G / 121G (90%)
  `syyyyyyyyyyyyyyyyyyyyyyyy+`  CPU: Intel Core i5-4258U @ 2.40GHz
   `ossssssssssssssssssssss/    GPU: Intel Iris 
     :ooooooooooooooooooo+.     RAM: 2468MiB / 4096MiB
      `:+oo+/:-..-:/+o+/-
KittyKatt commented 4 years ago

@dpinela Since this is one of the only machines I have zero access to, I might have to ask you to run a few things and be my guinea pig for me.

Could you post the output of the following?

defaults read com.googlecode.iTerm2 "New Bookmarks" | grep -e 'Guid' -e 'Normal Font' defaults read com.apple.Terminal "Window Settings" | grep -e 'name = ' -e 'Font = '

dpinela commented 4 years ago

(Note that I have iTerm set to a different font than Terminal.app.)

> defaults read com.googlecode.iTerm2 "New Bookmarks" | grep -e "Guid" -e "Normal Font"
        Guid = "E560BF1B-5311-43DA-A1A7-D5B7C701BE10";
        "Normal Font" = "Iosevka 12";
        Guid = "9792DEBD-971F-4A92-BDE9-FD711381217B";
        "Normal Font" = "Iosevka 12";
> defaults read com.apple.Terminal "Window Settings" | grep -e 'name = ' -e 'Font = '
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234028 00000000 00001010 80028003 5e53464d 6f6e6f2d 52656775 6c6172d2 13141516 5a24636c 6173736e 616d6558 24636c61 73736573 564e5346 6f6e74a2 1517584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11a1b 54726f6f 74800108 111a232d 32373c42 4b525b62 69727476 78878c97 a0a7aab3 c5c8cd00 00000000 00010100 00000000 00001c00 00000000 00000000 00000000 0000cf>;
        name = Basic;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234026 00000000 00001010 80028003 5e486572 6d69742d 52656775 6c6172d2 13141516 5a24636c 6173736e 616d6558 24636c61 73736573 564e5346 6f6e74a2 1517584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11a1b 54726f6f 74800108 111a232d 32373c42 4b525b62 69727476 78878c97 a0a7aab3 c5c8cd00 00000000 00010100 00000000 00001c00 00000000 00000000 00000000 0000cf>;
        name = "Basic Dark";
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 7323402c 00000000 00001010 80028003 5f101050 65726665 6374444f 53564741 343337d2 13141516 5a24636c 6173736e 616d6558 24636c61 73736573 564e5346 6f6e74a2 1517584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11a1b 54726f6f 74800108 111a232d 32373c42 4b525b62 69727476 788b909b a4abaeb7 c9ccd100 00000000 00010100 00000000 00001c00 00000000 00000000 00000000 0000d3>;
        name = DOS;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234028 00000000 00001010 80028003 57436f75 72696572 d2131415 165a2463 6c617373 6e616d65 5824636c 61737365 73564e53 466f6e74 a2151758 4e534f62 6a656374 5f100f4e 534b6579 65644172 63686976 6572d11a 1b54726f 6f748001 08111a23 2d32373c 424b525b 62697274 76788085 9099a0a3 acbec1c6 00000000 00000101 00000000 0000001c 00000000 00000000 00000000 000000c8>;
        name = Grass;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234028 00000000 00001010 80028003 5a416e64 616c654d 6f6e6fd2 13141516 5a24636c 6173736e 616d6558 24636c61 73736573 564e5346 6f6e74a2 1517584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11a1b 54726f6f 74800108 111a232d 32373c42 4b525b62 69727476 78838893 9ca3a6af c1c4c900 00000000 00010100 00000000 00001c00 00000000 00000000 00000000 0000cb>;
        name = Homebrew;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 7323402a 00000000 00001010 80028003 5e53464d 6f6e6f2d 52656775 6c6172d2 13141516 5a24636c 6173736e 616d6558 24636c61 73736573 564e5346 6f6e74a2 1517584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11a1b 54726f6f 74800108 111a232d 32373c42 4b525b62 69727476 78878c97 a0a7aab3 c5c8cd00 00000000 00010100 00000000 00001c00 00000000 00000000 00000000 0000cf>;
        name = Main;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234026 00000000 00001010 80028003 5d4d656e 6c6f2d52 6567756c 6172d213 1415165a 24636c61 73736e61 6d655824 636c6173 73657356 4e53466f 6e74a215 17584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d11a1b54 726f6f74 80010811 1a232d32 373c424b 525b6269 72747678 868b969f a6a9b2c4 c7cc0000 00000000 01010000 00000000 001c0000 00000000 00000000 00000000 00ce>;
        name = "Man Page";
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234028 00000000 00001010 80028003 5e53464d 6f6e6f2d 52656775 6c6172d2 13141516 5a24636c 6173736e 616d6558 24636c61 73736573 564e5346 6f6e74a2 1517584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11a1b 54726f6f 74800108 111a232d 32373c42 4b525b62 69727476 78878c97 a0a7aab3 c5c8cd00 00000000 00010100 00000000 00001c00 00000000 00000000 00000000 0000cf>;
        name = Nord;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234028 00000000 00001010 80028003 57436f75 72696572 d2131415 165a2463 6c617373 6e616d65 5824636c 61737365 73564e53 466f6e74 a2151758 4e534f62 6a656374 5f100f4e 534b6579 65644172 63686976 6572d11a 1b54726f 6f748001 08111a23 2d32373c 424b525b 62697274 76788085 9099a0a3 acbec1c6 00000000 00000101 00000000 0000001c 00000000 00000000 00000000 000000c8>;
        name = Novel;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234026 00000000 00001010 80028003 5d4d656e 6c6f2d52 6567756c 6172d213 1415165a 24636c61 73736e61 6d655824 636c6173 73657356 4e53466f 6e74a215 17584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d11a1b54 726f6f74 80010811 1a232d32 373c424b 525b6269 72747678 868b969f a6a9b2c4 c7cc0000 00000000 01010000 00000000 001c0000 00000000 00000000 00000000 00ce>;
        name = Ocean;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234028 00000000 00001010 80028003 5f101946 616e7461 73717565 53616e73 4d6f6e6f 2d526567 756c6172 d2131415 165a2463 6c617373 6e616d65 5824636c 61737365 73564e53 466f6e74 a2151758 4e534f62 6a656374 5f100f4e 534b6579 65644172 63686976 6572d11a 1b54726f 6f748001 08111a23 2d32373c 424b525b 62697274 76789499 a4adb4b7 c0d2d5da 00000000 00000101 00000000 0000001c 00000000 00000000 00000000 000000dc>;
        name = P9;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234024 00000000 00001010 80028003 564d6f6e 61636fd2 13141516 5a24636c 6173736e 616d6558 24636c61 73736573 564e5346 6f6e74a2 1517584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11a1b 54726f6f 74800108 111a232d 32373c42 4b525b62 69727476 787f848f 989fa2ab bdc0c500 00000000 00010100 00000000 00001c00 00000000 00000000 00000000 0000c7>;
        name = Pro;
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234026 00000000 00001010 80028003 5d4d656e 6c6f2d52 6567756c 6172d213 1415165a 24636c61 73736e61 6d655824 636c6173 73657356 4e53466f 6e74a215 17584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d11a1b54 726f6f74 80010811 1a232d32 373c424b 525b6269 72747678 868b969f a6a9b2c4 c7cc0000 00000000 01010000 00000000 001c0000 00000000 00000000 00000000 00ce>;
        name = "Red Sands";
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234028 00000000 00001010 80028003 5f101349 6e636f6e 736f6c61 74612d52 6567756c 6172d213 1415165a 24636c61 73736e61 6d655824 636c6173 73657356 4e53466f 6e74a215 17584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d11a1b54 726f6f74 80010811 1a232d32 373c424b 525b6269 72747678 8e939ea7 aeb1bacc cfd40000 00000000 01010000 00000000 001c0000 00000000 00000000 00000000 00d6>;
        name = "Silver Aerogel";
        Font = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234026 00000000 00001010 80028003 5d4d656e 6c6f2d52 6567756c 6172d213 1415165a 24636c61 73736e61 6d655824 636c6173 73657356 4e53466f 6e74a215 17584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d11a1b54 726f6f74 80010811 1a232d32 373c424b 525b6269 72747678 868b969f a6a9b2c4 c7cc0000 00000000 01010000 00000000 001c0000 00000000 00000000 00000000 00ce>;
        name = "Solid Colors";
> 
KittyKatt commented 4 years ago

I'm starting to wonder if this is the best way to detect font in macOS. Seems archaic and wrong to pull detection from the terminal app and just call it the UI font. I've been meaning to write terminal emulator detection in forever, so I may just choose one of them for now as a band-aid to this and really, really fix it in v4.

dpinela commented 4 years ago

With the recent changes, it now displays my font as "FantasqueSansMonoRegul". Better, but not quite there yet.

superpotato9 commented 7 months ago

Still having a similar issue: 'NotoSansKannadaMedium' will look for possible fixes.