google / google/fonts

Is there a ration between font-size and line-height on the roboto font family?

Open
#3,970 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

I'm building a website project where I need to clip a text to a specific number of lines, maintaining the font default line-height.
To accomplish that I'm going to set the containing div height to a multiple of the line-height, but the font-size depends on the viewport height.

Is there a ration between font-size and line-height on the roboto font family?

Thanks,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.