how to set font for Terminator?

Asked by Qianqian Fang

I am using Terminator on Ubuntu 8.04. My default Monospace font for Latin characters is Dejavu Sans Mono, however, Terminator uses a Chinese font "AR PL UMing CN" to display all characters. I am wondering if terminator honors fontconfig rules, and, if there is a way to set font priorities?

Question information

Language:
English Edit question
Status:
Solved
For:
Terminator Edit question
Assignee:
No assignee Edit question
Solved by:
chantra
Solved:
Last query:
Last reply:
Revision history for this message
Best chantra (chantra) said :
#1

Hi fangq,

By default, terminator uses your system font. Or the one defined by your default gnome-terminal profile.
Anyhow, you can override those settings in a config file
in $XDG_CONFIG_HOME/.config/terminator/config which usually is ~/.config/terminator/config
and put:
use_system_font = False
font = Mono 12

for instance.
You can find more information about the config variable in
man terminator_config

Revision history for this message
Qianqian Fang (fangq) said :
#2

hi Emmanuel

thank you very much for the quick response. I am using Xfce4 desktop (Xubuntu Hardy), and did not install gnome-terminal on my system. I created a config file as you suggested, and used the example you provided, however, I found the terminal font did not change. Does terminator have dependence with gnome-terminal?

by the way, you said terminator uses my system font, do you mean "monospace"? here is my fc-match results for monospace, terminator uses the 5th font, uming.ttc, rather than the first one.

mars:~> fc-match -s "monospace" | head -10
VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"
wqy-zenhei.ttf: "WenQuanYi Zen Hei" "中等"
uming.ttc: "AR PL UMing CN" "Light"
wenquanyi_10pt.pcf: "WenQuanYi Bitmap Song" "Regular"
wenquanyi_9pt.pcf: "WenQuanYi Bitmap Song" "Regular"
wenquanyi_8pt.pcf: "WenQuanYi Bitmap Song" "Regular"
wenquanyi_11pt.pcf: "WenQuanYi Bitmap Song" "Regular"
wenquanyi_12pt.pcf: "WenQuanYi Bitmap Song" "Regular"

Revision history for this message
Chris Jones (cmsj) said :
#3

fangq: If a gnome-terminal gconf profile isn't available Terminator should default to asking pango for "Mono 8".
Could you run Terminator with -d and send us the output please?

Revision history for this message
Qianqian Fang (fangq) said :
#4

the -d output is attached below:

mars:~> terminator -d
Warning: unable to find profile None. Continue with default values...

and fc-match output for "mono 8" is the same as "monospace":

mars:~> fc-match -s "mono:size=8pt" | head -10
VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"
wqy-zenhei.ttf: "WenQuanYi Zen Hei" "中等"
uming.ttc: "AR PL UMing CN" "Light"
wenquanyi_8pt.pcf: "WenQuanYi Bitmap Song" "Regular"
wenquanyi_9pt.pcf: "WenQuanYi Bitmap Song" "Regular"
wenquanyi_10pt.pcf: "WenQuanYi Bitmap Song" "Regular"
wenquanyi_11pt.pcf: "WenQuanYi Bitmap Song" "Regular"
wenquanyi_12pt.pcf: "WenQuanYi Bitmap Song" "Regular"

Revision history for this message
Chris Jones (cmsj) said :
#5

That error was last used in 0.8.1, which is the version in Hardy.
We do have a new release available now which has a huge range of improvements relating to configs. Please could you see the Ubuntu section at http://www.tenshu.net/terminator/ and let us know if this happens with 0.9?

Revision history for this message
Qianqian Fang (fangq) said :
#6

excellent, v0.9 solved the problem!
thank you very much for this powerful terminal program, I really like it.

Revision history for this message
Qianqian Fang (fangq) said :
#7

Thanks Emmanuel Bretelle, that solved my question.

Revision history for this message
Marcelo (marceloramone-gmail) said :
#8

Hello, i'm using Xubuntu 8.04 and the defaults fonts are really ugly and very small.

I want to change fonts but i don't known how to find the config file...

$XDG_CONFIG_HOME/.config/terminator/config which usually is ~/.config/terminator/config

I cant find this file...

Can you help me please?

Thank you!

Revision history for this message
chantra (chantra) said :
#9

Hi Marcello,

you will have to make the directory and create the file.
resulting in th following command:
mkdir ~/.config/terminator
and then create and edit the file ~/.config/terminator/config

hope this helps
On Tue, 2008-07-22 at 21:30 +0000, Marcelo wrote:

> Question #39018 on Terminator changed:
> https://answers.launchpad.net/terminator/+question/39018
>
> Marcelo posted a new comment:
> Hello, i'm using Xubuntu 8.04 and the defaults fonts are really ugly and
> very small.
>
> I want to change fonts but i don't known how to find the config file...
>
> $XDG_CONFIG_HOME/.config/terminator/config which usually is
> ~/.config/terminator/config
>
> I cant find this file...
>
> Can you help me please?
>
> Thank you!
>

--
http://www.debuntu.org

Debuntu deb's repository

Revision history for this message
Marcelo (marceloramone-gmail) said :
#10

thank you.

I have a file created now

Can you give me an example of that file edited?

I want to SANS 12 fonts with anti aliasing, because I have a 19" LCD monitor and the fonts looks really ugly in terminator

This problem didn't occurred in UBUNTU/GNOME

In my desktop I have beauty fonts with anti aliasing, this problem only occurs with terminator in XFCE.

Thanks in advance,
Marcelo.-

Revision history for this message
chantra (chantra) said :
#11

Marxello,

from terminator_config man page:

       font An Pango font name. Examples are "Sans 12" or "Monospace
Bold
              14". Default value: Mono 8

so really you just have to edit the file, add an font entry like:
font= x y z
where x y z is the name of the font you want to use.

On Wed, 2008-07-23 at 00:31 +0000, Marcelo wrote:

> Question #39018 on Terminator changed:
> https://answers.launchpad.net/terminator/+question/39018
>
> Marcelo posted a new comment:
> thank you.
>
> I have a file created now
>
> Can you give me an example of that file edited?
>
> I want to SANS 12 fonts with anti aliasing, because I have a 19" LCD
> monitor and the fonts looks really ugly in terminator
>
> This problem didn't occurred in UBUNTU/GNOME
>
> In my desktop I have beauty fonts with anti aliasing, this problem only
> occurs with terminator in XFCE.
>
> Thanks in advance,
> Marcelo.-
>

----

http://www.debuntu.org

Debuntu deb's repository

Debuntu Debian and Ubuntu Tips and Tricks

Revision history for this message
Chris Jones (cmsj) said :
#12

So the correct entry for you would be:

font=Sans 8