studioearl Posted September 12, 2021 Share Posted September 12, 2021 (edited) Hi, I would like to create titles like the ones below (with one sans-script font and one handwritten font below in another color). Is it possible to do this via custom code? Because I was thinking about creating the titles in images, and then uploading them to the website. But I'm afraid scaling will go wrong when going mobile. Any opinions or experiences with this? Thank you! Edited September 12, 2021 by studioearl Link to comment
Wolfsilon Posted September 12, 2021 Share Posted September 12, 2021 Hello there, You're probably right in not making images because scaling will certainly cause problems although, the alternative might cause just as many smaller problems... What I would do is write the titles twice, once in the regular font but the second one (the one you want to have the handwritten font) should be in Italics or Bold. 1) Install your handwritten font to your website. 2) Identify the block-ID for each block with the two titles. 3) Target the "em"(italic) or "strong"(bold) and set the font family for it to your custom handwritten font -- adjust the font-size, line-height, weight, and maybe width/height -- You might have to do this for the regular font too. This should help you create two different fonts on one block but you might have word or line wrap problems. You'll have to play around with these but you can also create a pseudo layer to help. Hope this helps, Dan studioearl 1 Link to comment
studioearl Posted September 13, 2021 Author Share Posted September 13, 2021 Thank you so much, I will try this out! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment