# Setting overal font in figure

**URL:** <https://discourse.julialang.org/t/setting-overal-font-in-figure/92497>\
**Category:** General Usage\
**Tags:** question, makie\
**Created:** [January 4, 2023, 11:16am UTC](https://discourse.julialang.org/t/setting-overal-font-in-figure/92497 "2023-01-04T11:16:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpirke](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mpirke/32/44837_2.png) [@mpirke](https://discourse.julialang.org/u/mpirke)\
**Post date:** [January 4, 2023, 11:16am UTC](https://discourse.julialang.org/t/setting-overal-font-in-figure/92497/1 "2023-01-04T11:16:18Z")

</div>

Hey out there!

I have the following problem. I want to set the font for all my plots in Make to a certain font, for example Times New Roman. The following is not working.

```julia
[276b4fcb] WGLMakie v0.8.3

julia> using WGLMakie

julia> function myplot()
           fig, ax, s = scatter(rand(10), rand(10))
           ax.xlabel = "Is this Times New Roman?"
           ax.ylabel = "Is this Times New Roman?"
           ax.title = "Is this Times New Roman?"
           fig
       end
myplot (generic function with 1 method)

julia> mytheme = Theme(font = "Times New Roman", fontsize=40, marker=:xcross, markersize=30)
Attributes with 4 entries:
  font => Times New Roman
  fontsize => 40
  marker => xcross
  markersize => 30

julia> with_theme(myplot, mytheme)

```

This sets everything, except the font. Where is the problem?

And secondly I would like to know, where I can find all available fonts for Makie how to add new ones.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [January 4, 2023, 11:26am UTC](https://discourse.julialang.org/t/setting-overal-font-in-figure/92497/2 "2023-01-04T11:26:22Z")

</div>

Recently, the way to specify fonts at the top level changed.

Now you do `fonts = (; regular = "Times New Roman", bold = "Some bold font")`, there’s also `italic` and `bold_italic` in the default theme but that’s not used anywhere so far. You can also define your own font categories if you want. Check this page: [https://docs.makie.org/stable/documentation/fonts/#symbol](https://docs.makie.org/stable/documentation/fonts/#symbol)

Makie should in principle find all fonts that FreeType can read which reside in the typical font directories on Linux, Windows and Mac. If you have fonts stored somewhere else, for example in a specific project asset directory, you can always use the path to the font directly like `regular = "./assets/fonts/special_font.otf"`.

---

<div class="post-metadata">

**Author:** ![mpirke](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mpirke/32/44837_2.png) [@mpirke](https://discourse.julialang.org/u/mpirke)\
**Post date:** [January 4, 2023, 11:46am UTC](https://discourse.julialang.org/t/setting-overal-font-in-figure/92497/3 "2023-01-04T11:46:45Z")

</div>

Thank you very much!
