You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I want to implement is the Microsoft Office's vertical text in the bounding box. Visualization like below.
But with the pango markup shell, it seems there is no way to adjust gravity only for Chinese characters (the gravity property in the span tag makes no effects).
With melt shell, it seems there is no way to implement vertical text from pango producer since the rotate parameter makes no effects in the first described video.
The text was updated successfully, but these errors were encountered:
following shell will produce non-rotated text rendering in the video.
Rotated text is not supported when the pixel aspect ratio is not 1.0.
You can work around this by specifying a profile with square pixels.
For example, try this: melt -profile atsc_720p_30 color:red out=250 -track -producer pango rotate=-90 text="Hello2" out=250 -transition composite
Result:
Your comments about the gravity are true, but not a bug. Just not implemented. We would welcome a patch to improve it. Also, just so you know, the pango producer is pretty old and has fallen out of favor for the qtext producer. I don't think that producer will support your rotation needs either. But if you are thinking about submitting code improvements, you might want to focus on qtext instead of pango.
This tracker is for defects only! For feature requests, you can submit a pull
request with the changes.
If you’re reporting a defect, make it as detailed as possible, and include both your operating system and MLT versions (e.g.
macOS 10.16; MLT v7.4.0
).OSX 13.6.9 MLT v7.24.0
following shell will produce non-rotated text rendering in the video.
melt color:red out=250 -track -producer pango rotate=-90 text="Hello.你好" out=250 -transition composite -consumer avformat:pango.mp4
pango.mp4
Please take a look at some examples of pango text.
pango-view --text "Hello" --rotate -90 -o pango.png
pango-view --text "你好" --rotate -90 --gravity=east -o pango.png
gravity sets to auto will have same visualization.
I notice two things:
pango-view --markup --text "<span gravity='east'>你好</span>" --rotate -90 -o pango.png
mlt/src/modules/gdk/producer_pango.c
Line 897 in 460fde2
What I want to implement is the Microsoft Office's vertical text in the bounding box. Visualization like below.
But with the pango markup shell, it seems there is no way to adjust gravity only for Chinese characters (the gravity property in the span tag makes no effects).
pango-view --markup --text "<span>Hello,</span><span gravity='east'>你好</span>" --rotate -90 -o pango.png
With melt shell, it seems there is no way to implement vertical text from pango producer since the rotate parameter makes no effects in the first described video.
The text was updated successfully, but these errors were encountered: