Graphic scaling in discrete steps
-ah-allowed-height-scale and -ah-allowed-width-scale specify a list of allowed values for scaling the height or width of a graphic. Their values are a list of percentages for the allowed scale values or ‘any’, for specifying no constraint on the scale-factor. The list is unordered, except that ‘any’ is considered last.
Controlling the scaling of a raster image can ensure that the image does not show Moiré effects from being rendered at an arbitrary scale. Controlling the scaling of all graphics can ensure that text in the graphics will appear at a discrete range of sizes rather than appearing to be arbitrary sizes because the graphics were arbitrarily scaled.
The scaling values shown below are generated using
content-width not specified
width: 4cm; height: 2.5cm; -ah-content-height: scale-to-fit;
-ah-allowed-height-scale: 25% 50% 75% 100%; width: 4cm; height: 2.5cm; -ah-content-height: scale-to-fit;
-ah-allowed-width-scale: 100% 75% 25% 50%; -ah-max-logical-width: 4cm; -ah-max-logical-height: 2.5cm; -ah-content-height: scale-to-fit;
-ah-allowed-width-scale: 100% 75%; -ah-allowed-height-scale: 100% 75%; width: 4cm; height: 2.5cm; -ah-content-width: scale-to-fit; -ah-content-height: scale-to-fit;
-ah-allowed-width-scale: 100% 75% any; -ah-allowed-height-scale: 100% 75% any; width: 4cm; height: 2.5cm; -ah-content-width: scale-to-fit; -ah-content-height: scale-to-fit;