Saturday, January 16, 2016

font and dconf-editor

* Source Code Pro - OTF fonts
    http://askubuntu.com/questions/193072/how-to-use-the-new-adobe-source-code-pro-font

    Download the archive from the Source Code Pro homepage. You can do
    it also using wget: Open a terminal (ctrl-alt-t or press the win
    key and type "terminal") and type

    wget https://github.com/adobe-fonts/source-code-pro/archive/2.010R-ro/1.030R-it.zip
    Unzip the archive (you can use Nautilus for that, or use the following command).

    unzip 1.030R-it.zip

    Create a directory in your home directory called ".fonts" (either
    go to home in Nautilus and create a new folder, or type the
    following from the terminal)

    mkdir -p ~/.fonts

    If you already have that directory, don't worry.
    Move the Open Type fonts (*.otf) to the newly created .fonts directory. In command line, that would be

    cp source-code-pro-2.010R-ro-1.030R-it/OTF/*.otf ~/.fonts/
    If you haven't done it yet, open a terminal, and type

    fc-cache -f -v

Your font is now ready to use and the applications should be able to see it.
All in one script for those who simply want to copy/paste the answer

#!/bin/bash
mkdir /tmp/adodefont
cd /tmp/adodefont
wget https://github.com/adobe-fonts/source-code-pro/archive/2.010R-ro/1.030R-it.zip
unzip 1.030R-it.zip
mkdir -p ~/.fonts
cp source-code-pro-2.010R-ro-1.030R-it/OTF/*.otf ~/.fonts/
fc-cache -f -v
If you want to install system wide instead of per user, copy the files to /usr/local/share/fonts/ instead of ~/.fonts/.


* dconf-editor
sudo apt-get install dconf-editor
dconf-editor &

No comments:

Pranten

 Pranten