1/22/2023 0 Comments Arial font metricsIf you pass neither the text will follow the default spacing of the specified font, e.g. This can be useful when needed to match a concrete design spec or fitting into an existing product.Ĭapsize supports two mental models for specifying line height, lineGap and leading. Setting the font size allows you to get all the benefits of the white space trimming, while still specifying an explicit font-size for your text. Defining typography in this way makes aligning to a grid or with other elements, e.g. Sets the height of the capital letters to the defined value. NOTE: You should only ever pass one or the other, not both. write ( ` $ My capsized text □ ` ) Options Text sizeĬapsize supports two methods of defining the size of text, capHeight and fontSize.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |