2016-11-30 103 views

回答

2

你可以得到的字體規格是這樣的:

convert -debug annotate -pointsize 12 label:"Apple" info: 

輸出

enter image description here

如果你想混24PT ,36pt和48pt字體大小,您需要運行它hree時間 - 每種字體大小一次。

如果更改分數大小,則會看到heightdescent會相應更改。您需要在較小字體的底部邊緣填充一定數量的像素,以使它們與較大的字體對齊。這個號碼與heightdescent這兩個字段有關 - 我想這只是height-abs(descent),但我還沒有進行過廣泛的測試。

當你有襯墊,可以行起來是這樣的:

convert -gravity south \ 
    -pointsize 24 label:"Apple" -splice x5 \ 
    \(-pointsize 36 label:"Apple" -splice x2 \) \ 
    -pointsize 48 label:"Apple" +append result.jpg 

enter image description here

所以,我剪接的5個像素的24PT文本的底部和2個像素的底部的24pt文本排列他們與36pt文本 - 底部對齊,因爲我設置-gravity south

+0

Mark Setchell。非常感謝答覆和細節 – hrlinc

相關問題