The documentation says FontSize
specifies the vertical size of a font, in printer's points, and that Spacer
specifies a spacer as wide as the number provided in its argument, also in printer's points.
Why then the following two do not have the same width?:
Rotate[Style["X", FontSize -> 50], Pi/2]
what outputs (after rasterization)
and
Framed@Spacer@50
what outputs
I am using this to control gaps for some elements in some plots (namely axes labels, after having set them manually using this) but this is preventing me from adding the amount of space in an automatic way so that everything fits nicely for any plot generated.
Maybe I am missing something very obvious but cannot understand that.
Framed@Style[Invisible@"X", FontSize -> 50]
orFramed@Spacer[Rasterize[Style["X", FontSize -> 50], "RasterSize"]]
? $\endgroup$