I am currently running emacs on Gentoo linux. My intention was to use all-the-icons ivy (I also downloaded all-the-icons-ivy). Unfortunately, all the icons come out confusing.
I have already run all-the-icons-install-fonts, per the wiki instructions. Does anyone know what is happening?
You may lack the fonts for all-the-icons.
The all-the-icons documentation recommends installing the fonts by running this command in Emacs:
M-x all-the-icons-install-fonts.
Alternatively, you can try installing the fonts using the package manager for your OS. For Gentoo, there's a package for all-the-icons here.
I ran into a similar issue on an Arch based distro, and was able to resolve it by installing all-the-iconts. For those using Arch based distros, the package can be found here.
I'm building ncurses 6.1 from source for some reasons. First I configure the sources with
./configure
and then I build it with
make
both without arguments. When I try to run tests I get the error message
Error opening terminal: xterm-256color.
on my local system (Ubuntu 17.10) and
Error opening terminal: xterm
on the build server (Jenkins Docker container).
I found out that this build is looking for terminal descriptions in /usr/share/terminfo/. There are many descriptions but no xterm-256color on my local system. On the build server the folder /usr/share/terminfo/ is empty. I found xterm-256color and xterm at /lib/terminfo. When I install ncurses with package manager (apt for Ubuntu 17.10), it works. So I assume that this package chooses the right path. I copied xterm-256color resp. xterm from /lib/terminfo to /usr/share/terminfo/ and my build works on both systems now. Why do two different paths exist and why do these two versions of ncurses choose two different paths? I need a conan package of ncurses that works out of the box without copying description files.
This could be a duplicate of:
How to set custom search paths for the terminfo database when building ncurses from source
The answer is in the summary at the end of configure (which isn't shown in the question). But running infocmp -D will show the directories that infocmp would use when looking for descriptions.
You can modify the behavior using the TERMINFO and TERMINFO_DIRS environment variables.
The /lib/terminfo is Debian-specific (Ubuntu doesn't provide any changes for ncurses; they simply recompile the Debian packages: most Ubuntu bug reports for ncurses deal with their problems in doing that).
Debian by default installs someone's notion of a minimal terminal database in that directory. Install ncurses-term to get a full terminal database.
By the way, compiling and installing ncurses on Debian/Ubuntu/other systems with ncurses already installed runs a risk of breaking the existing libraries which are used (for example) by bash and other utilities that you probably need.
My operating system is Windows 8.1 64 bit, I have installed fontforge and fontpatcher, but I don't know how to use it to patch fonts. Could you give me a usage demo,thank you very much! This is the web site for powerline
but I can't find usage. This is fontpatcher's project home on github
I have tried to use the python powerline-fontpatcher command to look for help, but failed.
Steps
follow the windows installation instructions here
git clone this repo
Copy the font file you would like to patch into the downloaded repo
cd <repo location>
fontforge -script font-patcher <path to font>
Wait for the script to finish and then open the newly created font file, install it
Restart your terminal and select the newly created font in preferences
I'm trying to use Octave instead of MATLAB in order to run the Motion tracking software found here :
http://www.stats.ox.ac.uk/~wauthier/tracker/
To run octave I am using Cygwin. I've run into the issue that the GraphicsMagick configuration that comes with Cygwin is set to: --with-quantum-depth=16 when I need: --with-quantum-depth=32. I have installed and configured the same version of GraphicsMagick elsewhere on my computer. My question is how can I configure the pre-existing GraphicsMagick so that I may handle the larger images I need or how can I configure octave inside Cygwin to use the other install of GraphicsMagick.
While Searching I came upon this:
http://jethomson.wordpress.com/2010/08/22/enable-octave-to-read-16-bit-images/
I am hesitant to use this as it uses Debian and I am unsure how to modify it in order to work in Cygwin.
Any advice would be greatly appreciated.
Below is the picture of Android Studio when I first installed it:
I'm using Ubuntu 12.04 with Oracle Java 7. But the fonts are looking very ugly. They are not looking like they look when I see them on eclipse.
Earlier when I installed NetBeans, I had same problem too.
There actually is a solution. You need to install JDK font fix as follows:
sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
sudo apt-get update
sudo apt-get install openjdk-7-jdk
Then, open studio.vmoptions and optionally studio64.vmoptions in your android-studio/bin directory, and add following lines to both of them (the first one might be already there):
-Dawt.useSystemAAFontSettings=on
-Dswing.aatext=true
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
After you reboot, the font rendering is just fine. To get the most Eclipse-like experience, go to File, Settings, Editor, Colors & Fonts, Font. Save the current scheme as a new one, and change the font to "Monospaced" with size of 14.
I've tried several suggested tweaks, tried using FontFix Patched JDK, FontForge, and editing studio.vmoptions; though some of these could show some improvement, it does not come close to the font rendering quality of the non-swing apps like eclipse.
I've found this to be the easiest and cleanest solution:
rm -r ~/.AndroidStudioBeta
If you have installed openjdk-fontfix, or made changes to studio.vmoptions, it is better you revert back those changes to their defaults.
sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
sudo apt-get update
sudo apt-get install ppa-purge
sudo ppa-purge ppa:no1wantdthisname/openjdk-fontfix
Remove all custom-added JAVA environment variables ($JAVA_HOME, $PATH:$HOME/bin:$JAVA_HOME/bin). Check in files, /etc/profile, ~/.profile, ~/.pam_environment
Install the latest Oracle Java via launchpad ppa
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
This ppa installer will usually do more than what a manual JDK configuration will do.
[]
Monospaced fonts like 'Inconsolata' and 'Source Code Pro' works best for me.
You do not need to install OpenJDK or the above-mentioned fix .deb for correct font rendering. Simply launch the Studio with:
_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.xrender=true' path/to/studio.sh
.. and fonts should render right under Ubuntu with Oracle's JDK 7. Looks even better when you change theme to GTK+ under File -> Settings -> Appearance.
In studio.sh, find this line at the bottom of the file:
eval "$JDK/bin/java" $ALL_JVM_ARGS -Dawt.useSystemAAFontSettings=lcd -Djb.restart.code=88 $MAIN_CLASS_NAME "$#"
and change it to
eval "$JDK/bin/java" $ALL_JVM_ARGS -Dawt.useSystemAAFontSettings=on -Djb.restart.code=88 $MAIN_CLASS_NAME "$#"
This means changing the parameter
-Dawt.useSystemAAFontSettings=lcd (if present)
to
-Dawt.useSystemAAFontSettings=on
Or simply add this param if you don't have it.
What you should do is configure the fonts in the settings as follows:
File > Settings > Editor > Colors & Fonts > Font
In that screen then you save a new scheme clicking in Save as, and putting a name on it, lets say "Custom".
Then below you'll find all the settings you need, you can tweak the font family and the size as well.
Android Studio 1.2 Preview 1 has been released a few hours ago (Mar 9th 2015):
http://tools.android.com/recent/androidstudio12preview1
It also includes several really important fixes that have been requested by Android Studio users, such as high density (retina) support for Windows and Linux.
It is based on IntelliJ IDEA 14.1, and according to the IntelliJ release notes, includes "The HiDPI support for Windows/Linux (scaled icons/font-size, no blur)".
However, I tried this on my machine (Ubuntu 14.10), and could not see any improvements. Maybe someone else has information on how to make it work?