I have discovered the unit for ImageSize
is "DesktopPublishingPoints"
as setting
ImageSize -> {
QuantityMagnitude@ UnitConvert[Quantity[10, "Centimeters"], "DesktopPublishingPoints"],
Automatic}
produces an image that is 10cm wide. This agrees with the toolbar ruler and printing.
However, the same conversion does not work with either ItemSize
nor FieldSize
. The results are too wide (confirmed by toolbar ruler) but they are of equal width which indicates they are of the same unit.
What UnitConvert
unit should be use for ItemSize
and FieldSize
options to produce output of a specified size?
Mma 11.0.1 on Win 7 Pro
This produces a Panel
that is 10cm wide by toolbar ruler and when printed.
Panel["Select something", Background -> LightBlue,
ImageSize -> {
QuantityMagnitude@UnitConvert[Quantity[10, "Centimeters"], "DesktopPublishingPoints"],
Automatic}]
These produce outputs that are much too wide.
Grid[{{Null}},
ItemSize ->
QuantityMagnitude@UnitConvert[Quantity[10, "Centimeters"],"DesktopPublishingPoints"],
Background -> LightBlue]
InputField[Null,
FieldSize ->
QuantityMagnitude@UnitConvert[Quantity[10, "Centimeters"],"DesktopPublishingPoints"],
Background -> LightBlue]