# Choice of font does not get saved in the figure

**URL:** <https://discourse.julialang.org/t/choice-of-font-does-not-get-saved-in-the-figure/7784>\
**Category:** General Usage\
**Created:** [December 15, 2017, 12:30pm UTC](https://discourse.julialang.org/t/choice-of-font-does-not-get-saved-in-the-figure/7784 "2017-12-15T12:30:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [December 15, 2017, 12:30pm UTC](https://discourse.julialang.org/t/choice-of-font-does-not-get-saved-in-the-figure/7784/1 "2017-12-15T12:30:42Z")

</div>

I have the following code:

```julia
using Plots
plotlyjs()

p1=plot(x, y, fill = (0, 0.5, :black), label="",lw=3, lc = :black,
    ylims=(0,730000),
    title = "Construction of new houses, 1991-2014",
    xtickfont = font(10, "TimesNewRoman"),
    ytickfont = font(10, "TimesNewRoman"),
    titlefont = font(14, "TimesNewRoman"))
savefig(p1,"HousingStarts.png")

```

My problem is, that the my choice of the font does not get saved when, i.e. it is back to some sans-serif font instead of Times New Roman. Is that a bug and is there a workaround?

EDIT: Another “bug” I found it that if I press “save as png” in the Atom/Juno plot plane, I save the figure with the right font, but if I specified a different size, it does not get saved as well, for example:

```julia

final=plot(p1,p2,layout=(1,2),size= (900,300),
        xtickfont = font(10, "TimesNewRoman"),
        ytickfont = font(10, "TimesNewRoman"),
        titlefont = font(14, "TimesNewRoman"))

```

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [December 15, 2017, 1:20pm UTC](https://discourse.julialang.org/t/choice-of-font-does-not-get-saved-in-the-figure/7784/2 "2017-12-15T13:20:13Z")

</div>

This should be opened as an issue on the Plots.jl Github repository:

> **[Issues · JuliaPlots/Plots.jl](https://github.com/JuliaPlots/Plots.jl/issues)**
>
> Powerful convenience for Julia visualizations and data analysis - Issues · JuliaPlots/Plots.jl

@mkborregaard

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [December 15, 2017, 1:24pm UTC](https://discourse.julialang.org/t/choice-of-font-does-not-get-saved-in-the-figure/7784/3 "2017-12-15T13:24:27Z")

</div>

Thanks, I’ll do.
