okamibl / xy-vsfilter

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

Borders are not rotated or sheared #144

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. {\frx89\bord10}text
2. {\fax1\bord10}text

What is the expected output? What do you see instead?
I expect the border to be transformed along with the text, because this makes 
physical sense: http://i.minus.com/i7dtcggxw9qCZ.png
Instead, the border is drawn after the text is transformed and projected onto 
the screen: http://i.minus.com/iPBnkL49LFWnR.png

What version of the product are you using? On what operating system?
Latest CCCP on Windows 7.

Please provide any additional information below.

Libass creates a widened vector outline out of the glyph outline as soon as it 
gets the glyph outline itself and then carries them around together.

Original issue reported on code.google.com by chortos@inbox.lv on 26 Apr 2013 at 10:39

GoogleCodeExporter commented 8 years ago
Extra information:

* I haven't heard of people noticing this before, either in the context of 
VSFilter alone or in the context of differences between VSFilter and libass.

* When I asked people in #commie-subs about this, I didn't get told to not 
touch VSFilter. Indeed, some of the responses seemed to encourage fixing it, as 
opposed to freezing the bug/misfeature and modifying libass to match. (Not sure 
how much sarcasm they contained...)

* Currently, VSFilter seems to special-case \frx90 to hide the border.

Original comment by chortos@inbox.lv on 26 Apr 2013 at 11:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
AFAIK Libass uses freetype's stroker to create the border. But in VSFilter it 
is different. VSFilter creates the border after ScanConvert. By widening every 
horizontal line in the graph to thick round head lines we get the widened 
graph. And then by substracting the original graph from the widened graph, we 
get the border. This issue is hard to fix because rotate an graph after 
ScanConvert is expensive/hard. But I have some vague feeling that there is an 
solution. I'll let you know once I make it clear.

Original comment by YuZhuoHu...@gmail.com on 5 Jul 2013 at 1:14