okamibl / xy-vsfilter

Automatically exported from code.google.com/p/xy-vsfilter
0 stars 0 forks source link

Sub-pixel alignment issues with multiple vector shapes in the same line #169

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Put adjacent vector drawings in the same line, some with odd number widths 
and some with even number widths.
2. Set the position and alignment such that these drawings are no longer 
aligned perfectly to the whole-number pixel grid (e.g. a center-aligned 3x3 
pixel box would extend 1.5 pixels from the center of the shape in all 
directions).

What is the expected output? What do you see instead?

The example line below would be expected to make a solid 15x5 rectangle, formed 
from the 5x5 rectangle and the adjacent 10x5 rectangle. Instead it creates 
subpixel gaps between the adjacent shapes.

Adjusting the position to (100.5,100) gets rid of the gaps and achieves the 
desired appearance.

What version of the product are you using? On what operating system?

Windows 7, 3.0.0.211

Please provide related subtitle script (if any). And the less characters
the script is, the less effort I have to make to fix the issue, so if you
could make the script as simple as possible, that would be appreciated.

Line with error:
Dialogue: 
0,0:00:00.00,0:00:05.00,Default,,0,0,0,,{\bord1\c&HFFFFFF&\3c&H000000&}{\an5\pos
(100,100)\p1}m 0 0 l 5 0 5 5 0 5{\p0\p1}m 0 0 l 10 0 10 5 0 5

Line without error:
Dialogue: 
0,0:00:00.00,0:00:05.00,Default,,0,0,0,,{\bord1\c&HFFFFFF&\3c&H000000&}{\an5\pos
(100.5,100)\p1}m 0 0 l 5 0 5 5 0 5{\p0\p1}m 0 0 l 10 0 10 5 0 5

Please provide any additional information below.

I'm sorry for always breaking vector stuff.

Original issue reported on code.google.com by lygerzer...@gmail.com on 18 Oct 2013 at 12:19

GoogleCodeExporter commented 8 years ago

Original comment by cyber.sp...@gmail.com on 8 Feb 2014 at 5:25