# How to change the font in Tryton 5 + GTK 3

**URL:** https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604
**Category:** User
**Created:** [July 25, 2019, 1:11pm UTC](https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604 "2019-07-25T13:11:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)
#### Post date: [July 25, 2019, 1:11pm UTC](https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604/1 "2019-07-25T13:11:10Z")

</div>

Some users of our application are asking to increase the font size.  
In Tryton4 + GTK2 we used the file \etc\gtk-2.0\gtkrc for this purpose.  
In Tryton5 + GTK3 we have tried to use the file \etc\gtk-3.0\settings.ini:

```
[Settings]
gtk-font-name=Sans 10

```

But this does not work. What are we doing wrong?

---

<div class="post-metadata">

### Author: ![dabada83](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dabada83/32/67_2.png) [@dabada83](https://discuss.tryton.org/u/dabada83)
#### Post date: [July 25, 2019, 2:26pm UTC](https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604/2 "2019-07-25T14:26:19Z")

</div>

> [@Configuración de las font en el cliente de tryton 5.0 via theme.css](https://discuss.tryton.org/t/configuracion-de-las-font-en-el-cliente-de-tryton-5-0-via-theme-css/1064/3):
>
> Yo estoy usando el cliente de escritorio 5.0, no uso SAO. Donde encuentro un file HTML para poder ver como están definidas las clases? Mi actual theme.css entry { font-size: 11px; } label { font-size: 11px; } title { font-size: 11px; } modal-title { font-size: 11px; } button { font-size: 11px; } Imagen 1 → sin theme.css [Imagen%201] Imagen 2 → con theme.css Con esto he reducido las fonts, pero no las barras de los títulos. Es posible hacer las barras de los títulos de las …

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 25, 2019, 3:09pm UTC](https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604/3 "2019-07-25T15:09:51Z")

</div>

For me editing `~/.config/gtk-3.0/settings.ini` works.

---

<div class="post-metadata">

### Author: ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)
#### Post date: [July 25, 2019, 3:38pm UTC](https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604/4 "2019-07-25T15:38:41Z")

</div>

Is the file `settings.ini` on the server?  
We are using Desktop Client 5.2 for Windows.  
Is it possible to change the font only for some Windows users?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 25, 2019, 4:32pm UTC](https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604/5 "2019-07-25T16:32:36Z")

</div>

> [@bell](#):
>
> Is the file `settings.ini` on the server?

Not it is on the client system.

> [@bell](#):
>
> We are using Desktop Client 5.2 for Windows.

Apparently there are some options to place the file: [https://stackoverflow.com/a/39041558/687601](https://stackoverflow.com/a/39041558/687601)

> [@bell](#):
>
> Is it possible to change the font only for some Windows users?

Some paths are linked to the username.

---

<div class="post-metadata">

### Author: ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)
#### Post date: [July 26, 2019, 2:02pm UTC](https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604/6 "2019-07-26T14:02:22Z")

</div>

> [@ced](#):
>
> Apparently there are some options to place the file: [https://stackoverflow.com/a/39041558/687601](https://stackoverflow.com/a/39041558/687601)

There was no `settings.ini` file in these places, so we had to create it ourselves.  
We tried all these options to place the file `settings.ini`, but the font did not change.

The problem was solved this way.  
We created the following file: `~\.config\tryton\5.2\theme.css`

```
box * {
  font: 10px Sans;
}

```

~ means the home directory of the user (on Windows system it is the APPDATA directory):

> **[Client Usage — Tryton desktop client](https://docs.tryton.org/latest/client-desktop/usage.html)**

---

<div class="post-metadata">

### Author: ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)
#### Post date: [August 1, 2019, 11:04am UTC](https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604/7 "2019-08-01T11:04:26Z")

</div>

P.S. With our solution bold and italic font-styles are gone.  
So it is better to use the following file `~\.config\tryton\5.2\theme.css`:

```
box * {
  font-size: 12px;
}

```

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [August 31, 2019, 11:04am UTC](https://discuss.tryton.org/t/how-to-change-the-font-in-tryton-5-gtk-3/1604/8 "2019-08-31T11:04:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
