Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

How to change font size in Macro Output

December 07 (4 years ago)

So I've searched on changing font-size when it comes to macros but I can't seem to get it, or if it's possible

the example of a macro I want to make 

"&{template:desc} 

 {{desc=Your search finds the following treasure [[1t[Treasure-Find]]] }}"

How do I increase the font size of "Your search..."

I tried using the roll templates

.sheet-rolltemplate-test .sheet-template-header {
	background-color: rgba(112, 32, 130,1);
	color: #000;
	padding: 2px;
	border-bottom: 1px solid black;
	line-height: 1.6em;
	font-size: 1.2em;
}

but I don't know how to apply it in the macro  as well as doing {font-size:120%} but I have no idea if that's right


help is appreciated!

December 07 (4 years ago)

Edited December 07 (4 years ago)
Oosh
Sheet Author
API Scripter

For a bit of clarity, it looks like you're trying to use Stylus (or similar) to increase the font size on the "desc" template? Is this the 5e template or another one?

If it's for 5e, and you're using Stylus, this should do the trick:

.textchatcontainer .sheet-rolltemplate-desc .sheet-middle {
font-size:18px;
line-height:18px;
}


Note that you can't insert this into a macro - this is for a CSS editor. It will only change the appearance on your browser.

If you're trying to change the appearance for all players (not just yourself), you'll need to use another option - a different template would be the simplest solution (desc has a tiny font), though you can also use style injection in your macros - this is a little more complicated though.

December 09 (4 years ago)


Oosh said:

For a bit of clarity, it looks like you're trying to use Stylus (or similar) to increase the font size on the "desc" template? Is this the 5e template or another one?

If it's for 5e, and you're using Stylus, this should do the trick:

.textchatcontainer .sheet-rolltemplate-desc .sheet-middle {
font-size:18px;
line-height:18px;
}

I want to increase the font for all players to see in the "desc" template . I don't know why roll20 has decided to make the font so freaking small

and I don't know what other templates would improve it

Note that you can't insert this into a macro - this is for a CSS editor. It will only change the appearance on your browser.

If you're trying to change the appearance for all players (not just yourself), you'll need to use another option - a different template would be the simplest solution (desc has a tiny font), though you can also use style injection in your macros - this is a little more complicated though.




December 09 (4 years ago)

Edited December 09 (4 years ago)
Oosh
Sheet Author
API Scripter

Ok, there's a trick to insert some style (like a font size change) into text, but it won't work with a rollable table result. Consider using another template, like &{template:npcaction} {{rname=Title}} {{description=Text here}}, or just using the /desc Text here description block (/desc is only available to GM).

The other option is to get the players to install Stylus (style thread here) if they have trouble reading the fonts, and share the above code with them - each player can customise the appearance with this method (or not bother if they can read it OK). They can also do other things, like change colours around, if it helps with visibility of elements.

And a low tech, easy solution - players can also zoom in on their browser (and zoom out on the Roll20 map control) to increase all font sizes in the chat bar. It'll blur the token art if you zoom too much though.

FWIW I can read the {desc} and {traits} templates fine on a 1440p screen (I'm a big fan of the traits template... very clean, but the text is the same size as desc so I didn't recommend it above). So your players may not all need the text size increase.

December 09 (4 years ago)
Oosh
Sheet Author
API Scripter

If you're not a bot - I'm confused as to what using VBA to draft an email template has to do with anything on this site.

If you are a bot - I'm confused as to what that code would achieve if someone ran it without the accompanying spreadsheet data. It would be really clever if it somehow sent a phishing email back home from the person who ran the code, but I'm just not seeing it.

thanks for the replies