Forum moved here!

Home / Ruler (overlay) display ? – (A way to know the actual Font-Size)

HenHanna

i’m using Latex (MiKTeX on Windows) and Sumatra PDF viewer every day.

i wish there was a way to know the actual Font-Size.

Ruler (overlay) display ? – when i hit a key – Would that be possible ?

What i’d want the Ruler to show is
[aaaaaaaaaaxxxxAAAXXXXXXXXX] ------- in 12 point, for comparision.

GitHubRulesOK

The fonts in a PDF may well have been inserted as say 12 point FontName but that is not what a PDF render has to show for F0 F1 or F2 etc if they were scaled to suite for example a different page size. So they could look like 7 point high on display.

Clearly if you are compiling at 100% / unscaled you could expect 12 point on screen but zoom in or out and its a moot relative size. However SumatraPDF has a M measuring tool which if you hold CTRL will show width and height in various units so here is using in points at any zoom. For multiple fonts inserted at 20 nominal Page Points High without scaling.

Here from the Font entry we know the Light Font is 4 multiple sizes including some at 17.5808 units high Same as the BOLD (REPORT) from the pages internal data but there is no way on the surface other than measure to know they are not the 15.4684 (Light) 17.816 (Light) 28.3209 (Light) or 50.7617 (Red)

HenHanna

Thank you! … that’s really interesting…

i can get the [Cursor Position] display (in 3 measurements – points, metric, inches)

How can get the [Selection:] display ?

GitHubRulesOK

Selection is only shown with CTRL and Left Mouse Button Drag
same as selection for copy print or zoom

HenHanna

Thanks (again)!

Could someone confirm this?

   \fontsize{12pt}{14pt}\selectfont

– that (correct or proper) Latex document (PDF output) with 12pt text (and 14pt spacing) would render the capital (uppercase) X as roughly (W,H) 8 x 8 points ?

(more precisely, it seems to be more like — Width 8.0 points , Height 8.2 points)

The [14 point] measurement (shown in Red in figure) seems correct

(Height of text + Vertical spacing )

GitHubRulesOK

You can guess at the used size but with no certainty the line spacing is often described in terms like 1, 1.15, 1.25, 1.5, 2 = which represents font block height (usually includes the diacritics above and descenders below, which is higher than the visible characters) plus leading which is the vertical gap to stop a diacritic colliding with a descender thus often included into the font height definition. Traditionally lead strips were a fixed thickness for each print house, but in computer publishing they are fixed spacing of lines, thus no longer a fixed thickness between characters.

Thus your 14 is potentially 12pt + 2pt at 1 line high if it is increased to double line spacing it may increase to 28 pt.

However it is not a good indication of font height since here are two fonts both at 20pt and their respective spacing for Line Spacing at 1x 1.5x and 2x look at the 3 measured values I added top right box as seen for each

HenHanna

Thank you for all the help. (Height =8.2 point seems good.)

and this 10.7 point seems good, too.

Using the table below, i should be able to Measure and confirm that the PDF file contains the actual 12-point font of the Roman (Latex’s Computer Modern) typeface.

  • cmr12 (ascender: 3.16664pt ) (x-height: 5.16667pt ) (descender: 2.33331pt) (total: 10.66663pt)

  • cmr11 (ascender: 2.88956pt ) (x-height: 4.7146pt ) (descender: 2.12914pt) (total: 9.73329pt)

  • cmr10 (ascender: 2.6389pt ) (x-height: 4.30554pt ) (descender: 1.94444pt) (total: 8.88889pt)

See also: fontsize - Why do different fonts have different point sizes? - TeX - LaTeX Stack Exchange

GitHubRulesOK

Always difficult to easily get the font metrics but your 12ptCMType=10.7 ish pt high, is good enough for me :slight_smile: as the line spacing is never a good indicator especially if latex fonts are mixed inline.