I need to use a symbol font called Moon Fonts TTF in the PDF output from GNUplot. GNUplot finds it with no problem in the Aqua terminal.
I've tried:
set fontpath "/Users/house/Library/Fonts/MoonPhases.ttf"
and other add font suggestions from the gnuplot help pages with no luck.
I have also tried a series of .ttf, .otf, postscript and unicode-mapped fonts with some support from a typography expert, with no luck at all: pdfcairo, postscript or epscairo cannot seem to find it.
GNUplot's 'show fontpath' gives:
system fontpath is "/System/Library/Fonts" "/Library/Fonts" "/Users/house/Library/Fonts"
and the fonts are there in one of those paths. I also tried placing them directly in GN's working directory.
If anyone has suggestions about how to make this work it would be much appreciated.
OSX Snow Leopard
GNUplot 4.6.1
I have gnuplot installed via MacPorts. The folder /opt/local/etc/fonts contains the file fonts.conf. In there you'll find a section "Font directory list". However, even though ~/Library/Fonts is part of the gnuplot fontlist variable by default (and therefore aquaterm is able to use them), it is not listed in here (and therefore pdfcairo can't use them).
A quick fix is to create the following symbolic link:
cd ${HOME}
ln -s Library/Fonts .fonts
Then your pdfcairo output should pick up the fonts that are installed at the user level on your Mac.
I have tested this with gnuplot 4.6 on Mavericks (10.9.5), and it seems to work fine.
Related
My alacritty config file is in ~/.config/alacritty/alacritty.yml with the following font settings:
# Font configuration
font:
[...]
# Point size
size: 10.0
All other font configuration options are commented out. I verified that alacritty is indeed reading this config file using the -vvv flag.
However, whenever I open a new terminal window the font seems to be selected at random. Below a picture of two windows opened one right after the other.
This problem is now reported as an issue at the alacritty repository. In general alacritty seems to have many issues with font sizes across different systems.
However, in trying to identify the cause I found that with the -vv flag alacritty always starts the terminal with a font size exactly the double of that in the config file.
So for now it is possible to work around this issue by setting up the font size at half of the desired in the config file. For instance, to obtain a font size of 14:
# Font configuration
font:
[...]
# Point size
size: 7.0
And then start alacritty with the -vv flag:
$ alacritty -vv
Possible workaround is to use -o flag when running alacritty and set font.size to desired value. Can be done through .bash_aliases or your WM config to make it faster to use.
Example:
alacritty -o font.size=8
Btw. I couldn't reproduce random font selection but I had problem with setting custom font size through alacritty config file.
I am a user of a HPC system. I now would like to install a new version of gnuplot under my directory /home/username. I succeeded in installing, but now the default terminal type is qt. I now want to change it to x11. The command set terminal x11 is not working, the error messages are:
Expected X11 driver:
/home/app/gnuplot-5.0.6/libexec/gnuplot/5.0/gnuplot_x11 Exec failed: No
such file or directory See 'help x11' for more details
This is weird as I installed the gnuplot in
/home/username/app/gnuplot-5.0.6/
and there is a gnuplot_x11 in
/home/username/app/gnuplot-5.0.6/libexec/gnuplot/5.0/gnuplot_x11
Is there a way to tell gnuplot that it searches in the wrong path? And is there a way to set the x11 terminal as the default one?
Thank you very much!
Update:
I can set --with-qt=no, now the default becomes wxt. Now I can use set terminal x11:
gnuplot> set terminal x11
Terminal type set to 'x11'
Options are ' nopersist enhanced'
I am not quite understand why.
You can change the directory in which gnuplot looks for the gnuplot_x11 driver by setting the GNUPLOT_DRIVER_DIR environment variable. From help x11:
The gnuplot outboard driver, gnuplot_x11, is searched in a default
place chosen when the program is compiled. You can override that by
defining the environment variable GNUPLOT_DRIVER_DIR to point to a
different location.
I installed it with Vundle and my .vimrc look contains the following
" Powerline setup
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 9
set laststatus=2
I am using the default Gnome Terminal than comes with Ubuntu 14.04. I don't know if it installed correctly (I followed this Vim as Python IDE tutorial) but it does not look anything like the screenshots.
Here is what is it meant to look like: Official Screenshots
And here is what it actually looks like:
As you can see, zero similarity.
The 'guifont' option applies only to GVIM. In the terminal, Vim uses the default terminal font. So, you need to go to Gnome Terminal's settings (Edit > Profile Preferences > /General\ > Font:) and change the font there, too (assuming Powerline supports the terminal at all, which I don't know).
Also, check how many colors Vim detects via :set t_Co?; you can influence / correct that by defining the correct $TERM value, probably gnome-256color for your.
Have you installed the patched fonts?
https://github.com/powerline/fonts
I just installed CentOS 6.4 on my laptop and have a quick question. I'm extremely new to Linux and have never really worked on an actual Linux system before. I have some vision issues and am finding the default font size pretty difficult to see. Can anyone tell me how I can adjust the text size? I am using a text-based environment with no graphical desktop installed and like I said, I'm using CentOS 6.4
update
For anyone having this same problem, I thought I'd give a quick update to give y'all a couple different options I've discovered on how to fix this. If you're using a graphical desktop, the answer to this post is definitely a quick and easy fix. If you're working in a solely text-based environment, here's a command my professor gave me today that increases the font as well, however, this may only be for that particular session unless you add it to a configuration file, I haven't tested that though.
setfont sun12x22
Hope that helps anyone having the same issue :-)
You'll find your font options at System -> Preferences -> Fonts menu option
reference link http://www.techotopia.com/index.php/Configuring_CentOS_Desktop_Fonts
Suggestions for text based install https://www.centos.org/forums/viewtopic.php?t=2932
install yum install epel-release
install yum -y install terminus*
run command setfont ter-p18b
Here 18 is your font size(according to ur need),but this is not permanent,to make it permanent open /etc/rc.local in vi and write the setfont ter-p22b command in last line and save it.
Lastly give it all permissions by chmod +x /etc/rc.local and reboot,now it is default.
Word of caution:DO NOT MISHANDLE rc.local
I am using debian, and installed R using the following command:
apt-get install r-recommended
I then tested out whether it worked by using R to run
barplot(1:100)
This gave no errors, but provided no output.
Non graphical R commands work, but anything that should display a graphic seems to be ignored. No errors, no warnings, no output at all.
Am I missing a critical library?
Type in x11() and hit enter. This should open up a graphics window. Then if you do plot(1:100) you should see a graph.
You can write any plot to the server using the following:
png('path/for_my_image/my_image.png', width=6, height=6, units='in', res=300)
dev.off()
Choose your height and width as needed.
Then just go find your image through either FTP or by downloading to your local directory via scp.