< inherit ass header = false >
< k mode = syllable >
< text layout = horizontal >
< tcaxpy init = true >
< tcaxpy user = false >
< tcaxpy fin = false >
# py settings
< py file = western.py > < beg line = 1 > < end line = 6 >
# main settings
< k-timed ass file = testop.ass >
< font file = SIMFANG.TTF > < font face id = 1 > < font size = 36 >
< fx width = 1280 > < fx height = 720 > < fx fps = 23.976 >
< alignment = 7 >
< x offset = 30 > < y offset = 15 >
< spacing = 0 > < space scale = 1.000 >
# style settings
< font face name = "" >
< bord = 1 > < shad = 0 >
< primary color = FFFFFF > < secondary color = 000000 > < outline color = 000000 > < back color = 000000 >
< primary alpha = 0 > < secondary alpha = 255 > < outline alpha = 0 > < back alpha = 255 >
# additional settings
< blur = 0.000 >
作者: ccx 时间: 2013-10-27 13:49:30
不多解释 大神你懂得作者: ccx 时间: 2013-10-27 13:50:55
from tcaxPy import *
from gdiFont import *
def tcaxPy_Init():
global _FontFileName
global _FaceID
global _Fs
global _TextWidth
global _TextHeight
global _TextLength
global _TextAdvDiff
global _ResolutionX
global _FD
global GdiFont #GDIfont
if _i ==0 or _i ==1 or _i>2 and _i<7 or _i ==8 or _i ==10 or _i ==12 or _i ==14:
for a in range(16):
R = randint(0,15)
dx = _x - int(_a / 2 + 0.5)
dy = _y - int(_Fs / 2 + 0.5)