Choose style:

Author Topic: can't get all characters in a font *EDIT* [SOLVED]  (Read 1554 times)

0 Members and 1 Guest are viewing this topic.

Offline mickey megabyte

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
can't get all characters in a font *EDIT* [SOLVED]
« on: April 13, 2017, 06:17:31 am »
hi, i've got a problem with the Ubuntu Mono Nerd Font

It contains loads of interesting extra symbols, icons, dingbats etc

When I use the font on straight Ubuntu, I can use all the characters, but on Peppermint, a lot of them appear as boxes

here are a couple of screenshots demonstrating the problem:

peppermint:
https://www.dropbox.com/s/gecop7geg885hx2/peppermint.jpg?dl=0

ubuntu
https://www.dropbox.com/s/ki62q984uzdnnxy/ubuntu.jpg?dl=0

*EDIT* my screenshots don't seem to be showing.

« Last Edit: April 13, 2017, 06:55:53 pm by mickey megabyte »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26045
  • Karma: 2839
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: can't get all characters in a font *EDIT*
« Reply #1 on: April 13, 2017, 01:44:54 pm »
How did you install it ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mickey megabyte

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: can't get all characters in a font *EDIT*
« Reply #2 on: April 13, 2017, 01:59:49 pm »
hi, i put it in my .fonts folder

the issue is still the same if i move it into /usr/share/fonts

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26045
  • Karma: 2839
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: can't get all characters in a font *EDIT*
« Reply #3 on: April 13, 2017, 02:24:45 pm »
Move it to /usr/share/fonts

make sure there's no spaces in the filename

then run:
Code: [Select]
sudo fc-cache -fv
Now close and reopen any application you want to use the font in.
« Last Edit: April 13, 2017, 03:12:12 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mickey megabyte

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: can't get all characters in a font *EDIT*
« Reply #4 on: April 13, 2017, 02:43:16 pm »
thanks,

i moved it into /usr/share/fonts, renamed it to remove spaces, but problem still persists even after reboot

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26045
  • Karma: 2839
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: can't get all characters in a font *EDIT*
« Reply #5 on: April 13, 2017, 03:13:32 pm »
How can I reproduce ?

I'll need to know where you got the font, and how you're testing it (ie. where these little boxes are displaying) ?

And whether you ran
Code: [Select]
sudo fc-cache -fv
or not ?
« Last Edit: April 13, 2017, 03:16:18 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mickey megabyte

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: can't get all characters in a font *EDIT*
« Reply #6 on: April 13, 2017, 03:48:23 pm »
yes i did run the fc-cache command - it executed okay caching fonts and ending with an fc-cache: succeeded message

i got the font from this github repo:  https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/UbuntuMono/Original/complete/Ubuntu%20Mono%20Nerd%20Font%20Complete.ttf

i originally got the font to add special icons to vim.

the little boxes display in vim, in the gnome character-map, and indeed any other program on my peppermint laptop.

the characters display as they should on my ubuntu mate box.

it's a mystery to me why they should work one place but not the other!  ???
« Last Edit: April 13, 2017, 03:51:05 pm by mickey megabyte »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26045
  • Karma: 2839
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: can't get all characters in a font *EDIT*
« Reply #7 on: April 13, 2017, 04:10:28 pm »
That doesn't tell me how to reproduce/test .. how can I reproduce these boxes ?

If I had to guess I'd say maybe that font depends on another to provide some characters .. maybe try copying ALL the fonts from Mint to Peppermint.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mickey megabyte

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: can't get all characters in a font *EDIT*
« Reply #8 on: April 13, 2017, 04:26:04 pm »
you could:

1 - download the font
2 - open it with the gnome unicode character-map viewer (gucharmap) which shows you all the characters in the font. I believe it is part of the peppermint install
3 - then, quickest way in gnuicharmap is to choose View >> By Unicode Block, then scroll to the 'Miscellaneous Symbols and Pictographs' section on the left
4 - you'll then see either boxes, or special symbols - see the image link

https://www.dropbox.com/s/4bekgjblipydjcs/ubuntu2.jpg?dl=0

thanks again!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26045
  • Karma: 2839
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: can't get all characters in a font *EDIT*
« Reply #9 on: April 13, 2017, 05:15:04 pm »
Is that image of yours Mint or Peppermint ?

Because I'm getting the same as your pic


Just in case .. this is where I got the font (though I renamed it to remove spaces as can be seen in the above image).
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mickey megabyte

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: can't get all characters in a font *EDIT*
« Reply #10 on: April 13, 2017, 05:28:43 pm »
i appreciate the effort you're making to help . :)

the image i just showed you was ubuntu mate (i don't use mint)

on my peppermint laptop i see boxes
https://www.dropbox.com/s/gecop7geg885hx2/peppermint.jpg?dl=0

where did you get the font from?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26045
  • Karma: 2839
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: can't get all characters in a font *EDIT*
« Reply #11 on: April 13, 2017, 05:52:08 pm »
Sorry I thought I'd already mentioned where I got it :-[

Here ya go
https://www.bvbcode.com/code/lcx7qeiz-2901965-down

Maybe the clues in the name ? .. Ubuntu Mono Nerd Font Complete.ttf

Remember to rename it to Ubuntu_Mono_Nerd.ttf

and put it in /usr/share/fonts/truetype

and don't forget to remove your version first, and run
Code: [Select]
sudo fc-cache -fv
after adding the new version.
« Last Edit: April 13, 2017, 05:56:53 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mickey megabyte

  • nOOb
  • *
  • Posts: 8
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: can't get all characters in a font *EDIT*
« Reply #12 on: April 13, 2017, 06:10:33 pm »
this is frustrating - i followed your insrtuctions

1 - download font from your link
2 - renamed it with underscores instead of spaces
2 - deleted current font in /usr/share/fonts
3 - put new font in /usr/share/fonts/truetype
4 - sudo fc-cache -fv
5 - crossed fingers and rebooted

6 - still see boxes

how could this be?  am i missing some important unicode font library?
the same thing happens with other varieties of Nerd fonts too - i only get part of the character set on peppermint.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26045
  • Karma: 2839
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: can't get all characters in a font *EDIT*
« Reply #13 on: April 13, 2017, 06:16:23 pm »
2 secs, I think I'm onto something.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26045
  • Karma: 2839
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: can't get all characters in a font *EDIT*
« Reply #14 on: April 13, 2017, 06:34:18 pm »
I just removed all the fonts I had in my home folder and suddenly I was left with just boxes .. so those characters aren't coming from the Ubuntu fonts .. it looks like most of them are coming from
seguisym.ttf
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec