
I’m trying to build an app with dynamic font sizing for various components.
I’ve been using a yaml file, e.g.
attrs:
Axis:
axis_label_text_font: arial
axis_label_text_font_size: 5vw
axis_label_text_font_style: bold
axis_label_text_color: '#17648D'
What I’m running into is that 5vw (or other relative sizing) work well loading the app on mobile/smaller screens (i.e. ensuring the text isn’t too big), but they get WAY too big when loading on a big monitor/desktop.
I read into this a bit a found that you there are the means to spec “max/min” sizing in css → css - How to implement max-font-size? - Stack Overflow
e.g.
min(5vw, 18px) , which should “cap” the font size at 18 px.
This doesn’t work on bokeh’s side of things:
Is this feature request material? Or simply not feasible and I’m going about this all wrong? Any workarounds/other options welcome… thanks…





