Linux source code pro

agarzon / installSourceCodePro.sh

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

version=1.017R
echo » \n* Downloading version $version of source code pro font «
rm -f SourceCodePro_FontsOnly- $version .zip
rm -rf SourceCodePro_FontsOnly- $version
wget https://github.com/downloads/adobe/source-code-pro/SourceCodePro_FontsOnly- $version .zip
echo » \n* Unziping package «
unzip SourceCodePro_FontsOnly- $version .zip
mkdir -p ~ /.fonts
echo » \n* Copying fonts to ~/fonts «
cp SourceCodePro_FontsOnly- $version /OTF/ * .otf ~ /.fonts/
echo » \n* Updating font cache «
sudo fc-cache -f -v
echo » \n* Looking for ‘Source Code Pro’ in installed fonts «
fc-list | grep » Source Code Pro «
echo » \n* Now, you can use the ‘Source Code Pro’ fonts, ** for sublime text ** just add the lines bellow to ‘Preferences > Settings’: «
echo ‘ \n «font_face»: «Source Code Pro», ‘
echo ‘ «font_size»: 10 ‘
echo » \n* Finished :)\n «

Источник

lucasdavila / 1_ubuntu_terminal_command

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

# to execute this gist, run the line bellow in terminal
\curl -L https://raw.github.com/gist/3875946/install_source_code_pro.sh | sh

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

version=1.010
echo » \n* Downloading version $version of source code pro font «
rm -f SourceCodePro_FontsOnly- $version .zip
rm -rf SourceCodePro_FontsOnly- $version
wget https://github.com/downloads/adobe/source-code-pro/SourceCodePro_FontsOnly- $version .zip -O SourceCodePro_FontsOnly- $version .zip
echo » \n* Unziping package «
unzip SourceCodePro_FontsOnly- $version .zip
mkdir -p ~ /.local/share/fonts
echo » \n* Copying fonts to ~/.local/share/fonts/ «
cp SourceCodePro_FontsOnly- $version /OTF/ * .otf ~ /.local/share/fonts/
echo » \n* Updating font cache «
sudo fc-cache -f -v
echo » \n* Looking for ‘Source Code Pro’ in installed fonts «
fc-list | grep » Source Code Pro «
echo » \n* Now, you can use the ‘Source Code Pro’ fonts, ** for sublime text ** just add the lines bellow to ‘Preferences > Settings’: «
echo ‘ \n «font_face»: «Source Code Pro», ‘
echo ‘ «font_size»: 10 ‘
echo » \n* Finished :)\n «
Читайте также:  Linux starting network interface

Источник

Ubuntu – How to use the Adobe Source Code Pro font

Adobe released an open source font family called «Source Code Pro» (download here, Slashdot article here). How do I install it?

Best Answer

  1. 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.030R-ro/1.050R-it.zip 
fontpath="$"/fonts mkdir -p $fontpath 

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-*-it/OTF/*.otf $fontpath 

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 set -euo pipefail I1FS=$'\n\t' mkdir -p /tmp/adodefont cd /tmp/adodefont wget -q --show-progress -O source-code-pro.zip https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip unzip -q source-code-pro.zip -d source-code-pro fontpath="$"/fonts mkdir -p $fontpath cp -v source-code-pro/*/OTF/*.otf $fontpath fc-cache -f rm -rf source-code-pro

If you want to install system wide instead of per user, copy the files to /usr/local/share/fonts/ instead of ~/.local/share/fonts/ .

Ubuntu – Find the correct package for a given font

If you have a file on your system that belongs to the package whose name you don’t know, you can figure out the pkg name with:

Most font files are in /usr/share/fonts/.

In there, I (natty) find /usr/share/fonts/X11/100dpi and other directories.

In 100dpi I find many files, including helvR24.pcf.gz.

$ dpkg -S /usr/share/fonts/X11/100dpi/helvR24.pcf.gz xfonts-100dpi: /usr/share/fonts/X11/100dpi/helvR24.pcf.gz $ 

The pkg is listed first: xfonts-100dpi

Ubuntu – How to download and install the Roboto Mono font

Go to this link and click on SELECT THIS FONT. Then a dialog box appears from bottom of the page. Click on that dialog box and then hover on Download icon in the top-right corner of that dialog box. It will open a small dialog box in which you get the following options(links) :-

Use SkyFonts and Download

enter image description here

Click on Download option. It downloads a file named Roboto_Mono.zip. Go to your Downloads folder and extract that zip file. It will create a folder named Roboto_Mono. Open this folder. Inside it, you will find different .ttf files.

Читайте также:  Log do apache no linux

enter image description here

Click on each of them(one-by-one) to open it in Font Viewer and then click on Install button in the top-right corner.

Following this procedure, you will have Roboto Mono installed on your Ubuntu system.

Источник

How to use the Adobe Source Code Pro font?

Adobe released an open source font family called «Source Code Pro» (download here, Slashdot article here). How do I install it?

So many people coming to this question, and not a single one of us has taken the time to just add a fonts-source-code-pro package to Debian.

8 Answers 8

  1. 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.030R-ro/1.050R-it.zip 
fontpath="$"/fonts mkdir -p $fontpath 

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-*-it/OTF/*.otf $fontpath 

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 set -euo pipefail I1FS=$'\n\t' mkdir -p /tmp/adodefont cd /tmp/adodefont wget -q --show-progress -O source-code-pro.zip https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip unzip -q source-code-pro.zip -d source-code-pro fontpath="$"/fonts mkdir -p $fontpath cp -v source-code-pro/*/OTF/*.otf $fontpath fc-cache -f rm -rf source-code-pro

If you want to install system wide instead of per user, copy the files to /usr/local/share/fonts/ instead of ~/.local/share/fonts/ .

@SSchneid I’ve seen your edit proposal and rejected it. Please, either correct the whole answer and replace the dead links with working ones or submit a new answer.

In order to install Source Code Pro, you can:

  1. Go to Google Fonts
  2. Type source code in the search box (the only match should be Source Code Pro)
  3. Click «Add to collection»
  4. Click on the text sample (this should present all the font styles)
  5. Tick all the check boxes
  6. Click the download icon (a down arrow on the top right) and download as Zip file

Now you just need to decompress the Zip file into your ~/.fonts folder:

mkdir -p ~/.fonts/Source_Code_Pro unzip Source_Code_Pro.zip -d ~/.fonts/Source_Code_Pro 

to make the fonts available (no need to log out).

Читайте также:  Oracle linux firewall status

This one was the first method to work for me. The other ones I tried either did nothing, or resulted in empty squares.

If you don’t want to clutter your home directory, you can use ~/.local/share/fonts instead of ~/.fonts

Thanks for the answer, just a modified script to get the latest file

#!/bin/bash FONT_NAME="SourceCodePro" URL="https://github.com/adobe-fonts/source-code-pro/archive/1.017R.zip" mkdir /tmp/adodefont cd /tmp/adodefont wget $ -O $.zip unzip -o -j $.zip mkdir -p ~/.fonts cp *.otf ~/.fonts fc-cache -f -v 

My answer is similar to the others just updating the URL’S as it seems those are removed. Source code pro’s new home seems to be on github. Source code pro on github.

#!/bin/bash mkdir /tmp/adodefont cd /tmp/adodefont wget https://github.com/adobe-fonts/source-code-pro/archive/1.017R.zip unzip 1.017R.zip mkdir -p ~/.fonts cp source-code-pro-1.017R/OTF/*.otf ~/.fonts/ fc-cache -f -v 
sudo wget --content-disposition -P /usr/share/fonts/opentype/source-code-pro https://github.com/adobe-fonts/source-code-pro/blob/29fdb884c6e9dc2a312f4a5e2bb3b2dad2350777/OTF/SourceCodePro-.otf?raw=true 

That will install the latest release of the font (as I’m writing this in June 2021, released January 2021).

For anyone else coming here in late 2021, this is the answer you want to use. It’s a single line you can copy and paste into the terminal. There’s no longer any need for unzipping and creating directories. The other answers are outdated, and though it’s not possible, they should be removed.

It would be nice to explain parameter(s) and what it does. It would also be beneficial to know how did you get the 29fdb884c6e9dc2a312f4a5e2bb3b2dad2350777 which probably is unique for this 2021 latest version.

Based on a GitHub post, this script worked for me. I had to modify the folder names to get it to work.

version=1.050 echo "\n* Downloading version $version of source code pro font" rm -f SourceCodePro_FontsOnly-$version.zip rm -rf SourceCodePro_FontsOnly-$version font_folder=source-code-pro-2.030R-ro-$R-it zip_file=$R-it.zip wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/$zip_file echo "\n* Unziping package" unzip $zip_file mkdir -p ~/.fonts echo "\n* Copying fonts to ~/fonts" cp $font_folder/OTF/*.otf ~/.fonts/ echo "\n* Updating font cache" sudo fc-cache -f -v echo "\n* Looking for 'Source Code Pro' in installed fonts" fc-list | grep "Source Code Pro" echo "\n* Now, you can use the 'Source Code Pro' fonts, ** for sublime text ** just add the lines bellow to 'Preferences > Settings':" echo '\n "font_face": "Source Code Pro",' echo ' "font_size": 10' echo "\n* Finished :)\n" 

Источник

Оцените статью
Adblock
detector