- This topic has 11 replies, 2 voices, and was last updated 5 years, 9 months ago by David.
-
AuthorPosts
-
July 19, 2018 at 3:52 am #627296Sonja
If i set typographie font and font size, then this settings appears on desktop and on mobile. But is this right? I thought, that on mobile the font size has to adapt to smaller screen size.
July 19, 2018 at 3:55 am #627300DavidStaffCustomer SupportHi there,
only the H1 and H2 Headings have a mobile font size, the body remains the same across all devices. If you want to adjust it for mobile then we can add this CSS:
@media (max-width: 420px) { body { font-size: 16px; } }
The usual mobile breakpoint is 360px i up it to 420px to include the Plus size phones.
July 19, 2018 at 4:08 am #627309SonjaOkay, thanks. But why do you have decided, that only the H1 and H2 have a mobile font size? Is it not recommended, to have mobile font size for the body text?
July 19, 2018 at 4:18 am #627314DavidStaffCustomer SupportGP tries to keep things as light as possible. It only introduces extra customiser conditions if there is a great demand from the community.
Body font sizes generally remain the same across devices. I rarely change them.
H1 and H2, the most commonly used headings, and they do vary quite considerably across devices.Tom has been looking at this for possible future updates. Any opinions or ideas are welcome 🙂
July 19, 2018 at 4:25 am #627319SonjaI am not an expert on such things, but I think, that the font size, line height, etc. should work automaticly for all devices.
What do you think of the golden ratio? (grtcalculator.com) Is this something to build in the theme? Or is this not advisible?
July 19, 2018 at 4:50 am #627340DavidStaffCustomer SupportGolden Ratio typograpghy is a great foundation for setting out your typography requirements. I generally use it for the basis of text rich sites. Particularly if i am using a single font. Or fonts that have the same ‘sizing’.
The tricky part when using different fonts is they can vary wildly in size, unlike traditional typesetting. Which creates a problem when trying a ‘one size fits all’ approach. Also the more ‘creative’ designers like to ignore rules.
Hence the reason we prefer to keep the system simple which in turn provides flexibility for all. If you really want to blow your mind on responsive typography, this is an interesting article:
July 19, 2018 at 5:22 am #627364SonjaOkay, but I think, that I don´t understand the Golden Ratio.
For a new site with GP, i want the Roboto font and have a 900 px container.
If i put these numbers in the Golden Ratio calculator, i get very big fonts with Font Size: 27 and Line Height: 44.
Can this be correct?
I also dont understand these numbers for the settings:
Golden Scale for 27 @ 900
71/101
56/82
44/66
34/53
27/44
21/36Also, if i take the 27 font size, then this can never work on mobile. How would I calculate this?
July 19, 2018 at 5:56 am #627382DavidStaffCustomer SupportOK, so with that calculator if you don’t specify a font size then it aims to achieve the optimum CPL (characters per line) which is 76. Hence the huge font size. Personally i would work with 18px font size for Roboto.
This would mean – font size / line height / line height in EMs.
H1: 47 / 67 / 1.42
H2: 37 / 54 /1.46
H3: 29 / 44 / 1.51
H4: 23 / 36 / 1.56
Body: 18 / 29 / 1.6Then for mobile i would probably only change the H1 and H2 and would set them to H3 and H4 sizes respectively.
July 19, 2018 at 6:06 am #627394SonjaAh, okay, thanks. I thought this tool calculates for me the best font size, so i don´t have to specify.
But how to understand the line height? Because in customizer i have a line height 1,5. Is this a different measure?
July 19, 2018 at 6:25 am #627410DavidStaffCustomer SupportIts designed about readability the optimum width of the container so i generally work with around 700px container width (taking into account padding) to get around 60-70 CPL on a 18px font size. Depending on font that is.
Yes, sorry the line height is based on EM sizes. Which is another web font unit, if you’re body font is 18px then 1 em = 18px. So to get a line height of 29 you would need 1.6 em (that is 29 / 16 ) – i updated the table above 🙂 Personally 1.5 to 1.6 as a standard rule and apply them to all.
July 19, 2018 at 6:44 am #627416SonjaThanks a lot. This was good explanation and i have learned something 🙂
July 19, 2018 at 7:19 am #627442DavidStaffCustomer SupportI am glad to be of help, its a good day when something new is learnt 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.