-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add font installation instructions for Linux #17
Comments
In principal it is the same in Ubuntu 12.04 as in Win7:
btw. I am using the Source Code Pro now happily in Qt Creator 2.5. Thanks a lot! |
This is not always the case. My Font Viewer application didn't have permission to write to the fonts directory, and it's a pain to mass import fonts this way! For system wide installation, copy the fonts to |
Providing installation instructions which encompass all flavors of *nix (and other operating systems) is a slippery slope and outside domain of this project in my opinion. The installation is no different than other open type or true type fonts, for which much documentation exists already. Example Google search results:
I would recommend that the generic instructions provided by @mfoo be included in (or linked from) the projects documentation, but leave distribution / version specific installation details the responsibility of the user to investigate. |
On Fedora 20, you can install these fonts using the following command:
See this page for more details. |
Ubuntu 14.04:
|
On Gentoo:
Set the cjk useflag if source-han-sans is also wanted. Set appropriate LINGUAS flags for the regional subsets of Source Han Sans. |
@foozlevazquez i would add this line to the ubuntu instructions: |
@eksperimental no need to remove git repository, because it allows to download any updates by executing 'git pull' |
#!/bin/sh
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
# find "$FONT_HOME" -iname '*.ttf' -exec echo '{}' \;
(git clone \
--branch release \
--depth 1 \
'https://github.com/adobe-fonts/source-code-pro.git' \
"$FONT_HOME/adobe-fonts/source-code-pro" && \
fc-cache -f -v "$FONT_HOME/adobe-fonts/source-code-pro")
|
Maybe we can use git clone -b master https://github.com/adobe-fonts/source-code-pro.git ~/.fonts/adobe-fonts/source-code-pro |
@joke2k You should clone the |
I used this shortened version of @denji's script:
HTH |
Just in case a Fedora user is reading this, in newer Fedora versions you can use
Painless, 1 MB download and installation. |
Arch Linux
or
|
@denji @rotty3000 @foozlevazquez : On ubuntu 16.04 when I tried like you to just clone the repo, put it somewhere fc-cache will look for it (i.e. ~/.local/share/fonts, ~/.local/share/fonts/opentype, /usr/share/fonts or /usr/share/fonts/opentype) and run I believe it is because I did not built the fonts from source (for which I miss the building tools like mkotf). Seeing your instructions, you seem to have just cloned the repo, ran Am I right ? Or what did I miss ? EDIT: I figured out the problem. Apparently you have to checkout the Be sure to checkout the |
For Ubuntu 14.04 (based @foozlevazquez's answer, just clone the release branch)
|
how to install on freebsd base xface4 |
This package is available via nixpkgs. To install it and make it available to applications, I did the following:
|
I read that for local usage, |
I upgraded emacs to 25 then spacemacs can't find Source Code Pro anymore. It worked on emacs 24. I use debian the jessie. After I reinstall 24.4, the font is loaded again. |
@AbigailBuccaneer Thanks for the tip. But my problem is not about installing code pro font. I installed it correctly and emacs 24 works well. But the problem is with emacs 25.1, the latest version of emacs. It couldn't find the font. |
@fangqiao I had the same problem. This fixed it: |
There's another issue that I encountered while trying to install Source Han Serif: There's no simple method to extract a multipart zip archive files. |
@foozlevazquez Your method has a horrible side-effect. For details, please see the bug that I filed with KDE - I would recommend you to edit your comment or removing it altogether. |
By following @foozlevazquez method of just cloning the repo, any application on linux that uses fonts would take 6s to load (due to scanning for fonts). For the package maintainers, I scrolled down and found @foozlevazquez 's approach first, hence why I got stuck while trying to install. I love these fonts, and it would be great to point people to using the |
If you compile / build emacs from the source, you need to
and
After years of battling and/or ignoring this issue on and off I found the solution! Hip, Hip, Hurrah!!! Many thanx to: |
@Bost : I build Emacs from source configured with
|
No description provided.
The text was updated successfully, but these errors were encountered: