[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(DTPtechNote:689) Illustrator 10のtext art item

本来、text art itemクラスのwidthとhightはR/Oではないのに、setするとはねられてしまうんですよね。仕方なので、path itemクラスにtellしてひとつひとつのポイント座標をセットしました。


tell application "Adobe Illustrator 10"
	tell document 1
		set my_str to "市川せうぞー" & return & "ym3s-ickw@asahi-net.or.jp"
		set my_font to "RyuminPro-Medium-83pv-RKSJ-H"--★
		set my_color to {cyan:0, magenta:100, yellow:100, black:0}
		--set my_color to {red:255, green:0, blue:0}
		set {my_left, my_top, my_width, my_height} to {0, 0, 200, 50}
		--text art itemの作成と属性の設定
		set my_textframe to make text art item at front with properties {kind:area text, contents:my_str}
		set properties of text of my_textframe to {filled:true, fill color:my_color, font:my_font, size:16, stroked:false}
		--path itemのポイントの設定
		set my_point to {{my_left, my_top - my_height}, {my_left, my_top}, {my_left + my_width, my_top}, {my_left + my_width, my_top - my_height}}
		set entire path of path item 1 in my_textframe to my_point
	end tell
end tell


tell application "Adobe Illustrator 10"
	name of every text face
end tell