Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Using hashtags to change text size, Harlowe?

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

  • If you read the Heading markup section of the Harlowe Manual you will see that you can use the # Hash symbol (aka pound sign, number sign, and maybe now a hashtag) to wrap your text in HTML Heading elements. (note: You can change the size of each heading element using CSS)

    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.
    (css: "font-size: 200%")["Knock! Knock! Knock!"]
    
    (css: "font-size: 160%")["Knock! Knock! Knock!"]
    
    (css: "font-size: 130%")["Knock! Knock! Knock!"]
    
Sign In or Register to comment.