Martin Huber wrote: ↑Mon 20 Mar 2017 10:52
Herbert123 wrote: ↑Fri 17 Mar 2017 00:45
Pixel snapping inconsistency:
1) turn on pixel snapping ("document alignment" --> this should be translated differently. "Pixel Snapping" or "Snap to Pixels" is the correct English term)
I don't understand, what that means. In my English version there is the alignment attribute in the Layer Attributes and there is the command "Layout > Alignment > Align To Pixels".
Herbert123 wrote: ↑Fri 17 Mar 2017 00:452) Move any layer.
Result (in most cases): the layer is positioned at a decimal positional value.
Expected: the layer should be positioned to exact pixel values, without decimals, when pixel snapping is activated.
I see no inconsistency: There is an layer attribute and a command. Neither of them is changing or intended to change the behaviour of the Layer Tool.
Martin
Quoted from the documentation:
7.4.58 Alignment/Align To Pixels
The command Align To Pixels aligns the content of the selected layers to the pixel grid of the current document.
For groups the layers within the group will be aligned, too. For vectors the single points of the vector layer might be modified.
This command is similar to the layer attribute Alignment (see chapter 4.11) with the one difference, that this command modifies the layers permanently
(1) "Align to Pixel" is a correct English translation and use. But compare the term "Alignment" in both the Layer panel and the Document panel: that is a confusing word, because what is actually aligned? And the objects are not aligned to pixels - only the visual rendering. In my opinion, the word "Alignment" in these two panels should be renamed to "Snap to Pixel" (that is how it is called in other applications, like Illustrator). Or "Pixel Snapping" - anything but the generic "Alignment"
(2) The word "permanently" in the documentation for the "Align to Pixels" command infers that from that point onward, any scaling and positioning will keep the non-decimal scaling and positional values. It does not: after scaling and positioning, more often than not decimal values are re-introduced.
(3) "Align to Pixels" does not work with text layers. And that is the one really needed, because with small pixel text the pixel rendering changes based on the position. I now have to position pixel text manually by hand again and again and again to maintain the same pixel rendering.
(4) When "Alignment" is activated for either the document or a specific layer, I expect that positioning and scaling with the visual handles and the Layer input fields occur on a non-decimal "pixel" unit basis. But after activating re-positioning and scaling introduce decimal values again.
(5) When "Alignment" for a layer or the document is activated, and even after performing the "Align to Pixels" command, using the arrow keys to position the layer results in decimal values again. (Only works when the user is zoomed to 100%)
Here is how I see it would work best:
a) keep the current function "Align to Pixels", no change to functionality, AND PLEASE also allow it to work on text layers.
b) change the "Alignment" property name in the Layer panel and the Document panel to "Snap to Pixel".
c) when "Snap to Pixel" (Alignment) is active for the document or the active layer, positioning and scaling ALWAYS maintains non-decimal px values. No 60.4px after positioning or scaling: round down to 60px.
d) when "Snap to Pixel" (Alignment) is active for the document or the active layer, using the arrow keys moves the layer by exactly 1 pixel, or 10 pixels with <CTRL> pushed down.
e) if "Snap to Pixels" (Alignment) is turned off, the current behaviour is fine. No changes.
This would be a perfect setup when working with pixel-precise designs. This is also how it tends to work in other applications, for example Illustrator.