# Plots: where to find the list of available fonts? Is it possible to set all fonts simultaneously

**URL:** <https://discourse.julialang.org/t/plots-where-to-find-the-list-of-available-fonts-is-it-possible-to-set-all-fonts-simultaneously/59451>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [April 16, 2021, 11:12pm UTC](https://discourse.julialang.org/t/plots-where-to-find-the-list-of-available-fonts-is-it-possible-to-set-all-fonts-simultaneously/59451 "2021-04-16T23:12:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![curious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/curious/32/7629_2.png) [@curious](https://discourse.julialang.org/u/curious)\
**Post date:** [April 16, 2021, 11:12pm UTC](https://discourse.julialang.org/t/plots-where-to-find-the-list-of-available-fonts-is-it-possible-to-set-all-fonts-simultaneously/59451/1 "2021-04-16T23:12:22Z")

</div>

I am using Plots.jl to create some plots with the default backend (I think it is the `gr` backend). I know that I can set say the title font and the legend font to say “computer modern” using the command:

```julia
Plots.default(titlefont = ("computer modern"), legendfont = ("computer modern"))

```

If I want the `times new roman` font I can do:

```julia
Plots.default(titlefont = ("times"), legendfont = ("times"))

```

Is there some documentation with the list of fonts that I can use? I tried “Palatino” (which is on my Mac) but that did not work.

My other question is, is there a command that changes font of all items in a plot to say “computer modern”, or do I have to change each one (title, legend, guide etc.) separately?

Thank you.

---

<div class="post-metadata">

**Author:** ![xzackli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xzackli/32/38301_2.png) [@xzackli](https://discourse.julialang.org/u/xzackli)\
**Post date:** [April 16, 2021, 11:17pm UTC](https://discourse.julialang.org/t/plots-where-to-find-the-list-of-available-fonts-is-it-possible-to-set-all-fonts-simultaneously/59451/2 "2021-04-16T23:17:41Z")

</div>

The GR backend supports these fonts: [Fonts — GR Framework 0.66.0 documentation](https://gr-framework.org/fonts.html)

---

<div class="post-metadata">

**Author:** ![xzackli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xzackli/32/38301_2.png) [@xzackli](https://discourse.julialang.org/u/xzackli)\
**Post date:** [April 16, 2021, 11:22pm UTC](https://discourse.julialang.org/t/plots-where-to-find-the-list-of-available-fonts-is-it-possible-to-set-all-fonts-simultaneously/59451/3 "2021-04-16T23:22:39Z")

</div>

You can set the defaults by providing a `PLOTS_DEFAULTS` in your `startup.jl`. i.e.

```julia
const PLOTS_DEFAULTS = Dict(
    :theme=>:default,
    :fontfamily => "Computer Modern")

```

Alternatively you can call the [default function](https://docs.juliaplots.org/latest/generated/gr/#gr-ref42).

---

<div class="post-metadata">

**Author:** ![curious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/curious/32/7629_2.png) [@curious](https://discourse.julialang.org/u/curious)\
**Post date:** [April 16, 2021, 11:29pm UTC](https://discourse.julialang.org/t/plots-where-to-find-the-list-of-available-fonts-is-it-possible-to-set-all-fonts-simultaneously/59451/4 "2021-04-16T23:29:47Z")

</div>

Awesome! Thank you very much. I was looking at the Plots.jl documentation and no wonder I could not find it.

---

<div class="post-metadata">

**Author:** ![curious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/curious/32/7629_2.png) [@curious](https://discourse.julialang.org/u/curious)\
**Post date:** [April 16, 2021, 11:32pm UTC](https://discourse.julialang.org/t/plots-where-to-find-the-list-of-available-fonts-is-it-possible-to-set-all-fonts-simultaneously/59451/5 "2021-04-16T23:32:15Z")

</div>

Thank you very much. Appreciate this. Is this documented somewhere?

---

<div class="post-metadata">

**Author:** ![xzackli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xzackli/32/38301_2.png) [@xzackli](https://discourse.julialang.org/u/xzackli)\
**Post date:** [April 16, 2021, 11:50pm UTC](https://discourse.julialang.org/t/plots-where-to-find-the-list-of-available-fonts-is-it-possible-to-set-all-fonts-simultaneously/59451/6 "2021-04-16T23:50:32Z")

</div>

The plot defaults are kind of hidden in the docs, they’re at the end of the installation page.

[Installation · Plots (juliaplots.org)](https://docs.juliaplots.org/latest/install/#Initialize)

---

<div class="post-metadata">

**Author:** ![curious](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/curious/32/7629_2.png) [@curious](https://discourse.julialang.org/u/curious)\
**Post date:** [April 17, 2021, 2:00pm UTC](https://discourse.julialang.org/t/plots-where-to-find-the-list-of-available-fonts-is-it-possible-to-set-all-fonts-simultaneously/59451/7 "2021-04-17T14:00:08Z")

</div>

@xzackli thank you very much!
