Log in

View Full Version : AviSynth "Subtitle" function: How to select bold / italic variants?


LigH
19th October 2010, 15:40
I just tried to put several text blocks in a video but wanted to format one of them in bold, another one in plain weight.

Please note that I have a german Windows XP Pro 32 bit.

I tried to use "Verdana" for the normal and "Verdana Bold" for the bold text; this resulted in a vice-versa effect.

Then I tried the german names: "Verdana" and "Verdana Fett". Now both were bold.

Trial&Error seems to be inefficient - so I just ask here: How was it planned?

Gavino
19th October 2010, 16:51
Perhaps a simpler way would be to use the SubtitleEx (http://avisynth.org/mediawiki/External_filters#Subtitling) plugin instead. This supports effects such as bold and italic, as well as fades and text movement.

LigH
19th October 2010, 17:02
Good idea - thank you. :thanks:

IanB
19th October 2010, 23:01
Eeeeeeeewwww yuck! Yes CreateFont() is always called with FW_BOLD

Mug Funky
20th October 2010, 03:36
this couldn't be toggle-able with "^i" could it?

my super-secret DVD sub renderer uses Subtitle calls and the idea of splitting a string and determining the correct offsets in script makes my head hurt real bad. i can do it per-line, but per word is another matter and occasionally is needed.

IanB
20th October 2010, 07:20
this couldn't be toggle-able with "^i" could it?

my super-secret DVD sub renderer uses Subtitle calls and the idea of splitting a string and determining the correct offsets in script makes my head hurt real bad. i can do it per-line, but per word is another matter and occasionally is needed.

:confused: more context please ...

Mug Funky
20th October 2010, 07:30
i meant the ability to call (for example):

subtitle("blah ^iblah^i blah")

and get:

blah blah blah.

it seems subtitle will only allow italic etc to be set by changing the font name.

i was wondering if changing this would be a trivial matter or not (though i should probably get into subtitleex)

LigH
20th October 2010, 08:06
Eeeeeeeewwww yuck! Yes CreateFont() is always called with FW_BOLD

:o Ehm, so I ... discovered a "bug"?! :eek:

No panic.

But yes ... support for something like HTML (as used in SRT) or bbCode tags could be useful.

But let's check SubtitleEx today... :rolleyes:

cretindesalpes
20th October 2010, 12:35
You can use TextSub with a .ass script if you want fancy character styles.