Peppermint OS

Support => Advanced Topics => Topic started by: mickey megabyte on April 13, 2017, 03:17:31 am

Title: can't get all characters in a font *EDIT* [SOLVED]
Post by: mickey megabyte on April 13, 2017, 03: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.

Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 10:44:54 am
How did you install it ?
Title: Re: can't get all characters in a font *EDIT*
Post by: mickey megabyte on April 13, 2017, 10:59:49 am
hi, i put it in my .fonts folder

the issue is still the same if i move it into /usr/share/fonts
Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 11:24:45 am
Move it to /usr/share/fonts

make sure there's no spaces in the filename

then run:
Code: [Select]
sudo fc-cache -fvNow close and reopen any application you want to use the font in.
Title: Re: can't get all characters in a font *EDIT*
Post by: mickey megabyte on April 13, 2017, 11:43:16 am
thanks,

i moved it into /usr/share/fonts, renamed it to remove spaces, but problem still persists even after reboot
Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 12: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 -fvor not ?
Title: Re: can't get all characters in a font *EDIT*
Post by: mickey megabyte on April 13, 2017, 12: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!  ???
Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 01: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.
Title: Re: can't get all characters in a font *EDIT*
Post by: mickey megabyte on April 13, 2017, 01: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!
Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 02:15:04 pm
Is that image of yours Mint or Peppermint ?

Because I'm getting the same as your pic

(https://i.imgur.com/dgekedR.png)

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).
Title: Re: can't get all characters in a font *EDIT*
Post by: mickey megabyte on April 13, 2017, 02: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?
Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 02: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 -fvafter adding the new version.
Title: Re: can't get all characters in a font *EDIT*
Post by: mickey megabyte on April 13, 2017, 03: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.
Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 03:16:23 pm
2 secs, I think I'm onto something.
Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 03: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
Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 03:38:48 pm
I can compress them all and bung em somewhere if it helps ?
Title: Re: can't get all characters in a font *EDIT*
Post by: mickey megabyte on April 13, 2017, 03:43:04 pm
bingo!

well done - great detective work!

a quick download of the microsoft font and i now have all my characters

thanks a whole bunch 8)
Title: Re: can't get all characters in a font *EDIT*
Post by: PCNetSpec on April 13, 2017, 03:44:46 pm
You're most welcome my mate :)