So, I've been trying to work out how to change the text/font size of individual lines within passages. I had a search on the forum and looked at some guides and tutorials, but couldn't find a quick way to do this. I'm using Harlow 1.2.2. The weird thing is, I just happened to put a # in front of some text just now, and it made the text bigger. The code is;
###(transition: "pulse")["Knock! Knock! Knock!"]
One hashtag makes the text really big, with more hashtags making it smaller, up until 6. After 6, it goes back to being really big.
I've tried copying this code into a different passage and it doesn't work.
Is this a bug? Or am I misusing the hashtags? I'd still like to be able to change my font size and I thought I was getting somewhere with this but it appears not.
Comments
You can use the (css: ) macro to change the CSS font-size property of the text you are displaying.
If you read the font-size documentation you will see that there are a number of different types of value you can assign to the property, in the following example I will be using percentages because I think they are easier to demonstrate cause and effect.