: What is the widest glyph in Arial? I'm designing a div container that will contain some rows of text. Every row can contain 0 to 35 chars. I need to specify a fixed width for the div, but
I'm designing a div container that will contain some rows of text. Every row can contain 0 to 35 chars.
I need to specify a fixed width for the div, but I cannot predict how "wide" the string can be.
An example of strings (all 35 chars):
aeR1riPhah9chaicaegae7oobaiz8eiquoL
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
da da da 35 chars text With CApital
As you can see, the glyph "i" is narrower than the glyph "L".
A possible solution could be to use a Monospaced font, but for some stylistic constraints I need to use Arial (or equivalent font).
The idea is to size the container considering a string that contains the largest glyphs, but I am not sure what is the largest glyph, especially if we consider all the UTF characters.
More posts by @Michele215
5 Comments
Sorted by latest first Latest Oldest Best
Easy
௵௵௵௵௵௵௵
i found this in a game called agar.io someone likes long names
Usually, the em dash is the widest glyph in any typeface. The italic f is the rare glyph that extends into the ascender and the descender space making it one of the tallest in any typeface.
A handy practical measure is an "alphabet" composed of the lower case letters a through z. A normal typeface is roughly 13 ems long. If the typeface alphabet is less, it is a condensed typeface suitable for composing narrow-measure paragraphs. Easily readable line lengths range from 1-1/2 to 2-1/2 alphabets.
An em is a horizontal distance that is the equivalent to the vertical height of the typeface.
An em space for 24 pt typeface is 24 pts long. It's proportional to the typeface and varies with each different size.
Still checking, but in the set of Latin glyphs,
DŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽDŽ
is looking pretty wide.
Or there's
‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱‱
Or maybe ﷺ "ARABIC LIGATURE SALLALLAHOU ALAYHE WASALLAM" (doesn't seem to render in the Tahoma used here):
ﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺﷺ
Obviously these are extreme examples and it's very unlikely anyone's going to type these, but it underlines Farray's point above: you need to find a compromise that will cover the vast majority of cases for your audience, but not necessarily anything that might conceiveably appear.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.