From af56d6f2650fe24fda7beb64a8eab43eba6f0fa3 Mon Sep 17 00:00:00 2001 From: Florian Oswald Date: Wed, 17 May 2017 15:31:26 +0200 Subject: [PATCH] added resetfontsizes() --- src/components.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components.jl b/src/components.jl index b20eb3d0..bff21a7c 100644 --- a/src/components.jl +++ b/src/components.jl @@ -303,6 +303,18 @@ function scalefontsizes(factor::Number) end end +function resetfontsize(k::Symbol) + f = default(k) + default(k,f) +end + +"Reset all fonts to default size" +function resetfontsizes() + for k in (:titlefont, :guidefont, :tickfont, :legendfont) + resetfontsize(k, factor) + end +end + "Wrap a string with font info" immutable PlotText str::AbstractString