Fork me on GitHub
#reveal
<
2021-03-22
>
skuro14:03:14

just started reveal/ui but on my system font size seems a bit on the teeny weenie side

skuro14:03:24

how do I increse the font size in the reveal window?

dpsutton14:03:03

https://vlaaad.github.io/reveal/ and look for "Look and feel customization". The headings dont have anchors so i can't directly link to it

dharrigan14:03:56

You can pass this in as a java property, i.e., -J-Dvlaaad.reveal.prefs='{:font-family "JetBrains Mono Medium" :font-size 14}'

skuro14:03:31

alright so I can't pass it in from a running jvm

dharrigan14:03:47

no, you can 🙂

dharrigan14:03:54

Just showing another way of doing it

dharrigan14:03:02

(so you don't have to remind yourself each time 🙂 )

dharrigan14:03:23

I have that as part of my clj alias.

vlaaad14:03:42

Actually, you can’t pass it in from a running JVM, it has to be a system property

vlaaad14:03:08

the reason for this is lazyness — too much stuff I needed to change to make fonts and stuff dynamic

skuro14:03:22

I'm trying some hacks here and there, such as

(System/setProperty "vlaaad.reveal.prefs" (pr-str {:font-family "Roboto" :font-size 22}))
;; recompile the vlaaad.reveal.prefs ns
@prefs
=> {:font-family [:system-font "Roboto"], :font-size 22}

skuro14:03:40

but font doesn't change

vlaaad14:03:46

there are actually varying stages of customisation dynamicity, I could have done it customisable live when window is already open, or (easier) customisable when window is created, but I thought that’s not as important since customisation is usually much rarer than actual use for output, so I should focus on that

vlaaad14:03:54

@skuro prefs is a delay, you can mess with the system property before requiring reveal namespaces, but once they are required, reveal will read the property once and then persist the prefs

skuro14:03:37

yeah I just in-ns into the prefs ns and re-eval the prefs definition, so the delay got reset

vlaaad14:03:59

other stuff that refers to prefs is also wrapped in delays

vlaaad14:03:24

so.. it’s easier to try out various reveal prefs using throw-away JVMs

vlaaad14:03:15

e.g. clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "1.3.196"}}}' -J-Dvlaaad.reveal.prefs='{:font-size 20}' -X vlaaad.reveal/repl

skuro14:03:31

yep definitely quicker 🙂