cap-height
cap-height copied to clipboard
Cap-Width
Hey @sebdesign, is there a way to get the character width for a font using your cap-height JS?
I am wanting to easily calculate the max-width of a paragraph/line-of-text should be based on characters per line, font-size, and character width.
Thank you for this awesome tool!
Hello @glennphilp ,
I'm sorry for never replying to your issue. About the glyph width, that would be more tricky. For proportionate-width typefaces, we would have to calculate the average or the median of all the character widths.
I'll see what I can do, but maybe it would be more suitable for a new package.