Imager :: DTP ::文字

Imager :: DTP :: Letterは、Imager :: DTPパッケージ用の文字処理モジュールです。
今すぐダウンロード

Imager :: DTP ::文字 ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • Perl Artistic License
  • 価格:
  • FREE
  • 出版社名:
  • Toshimasa Ishibashi
  • 出版社のWebサイト:
  • http://search.cpan.org/bashi/Imager-DTP-0.06/lib/Imager/DTP/Letter.pm

Imager :: DTP ::文字 タグ


Imager :: DTP ::文字 説明

Imager :: DTP :: LetterはImager :: DTPパッケージ用の手紙処理モジュールです。 Imager :: DTP ::文字はImager :: DTP Package.Synopsisの文字処理モジュールです。 #最初に、フォントとレター文字列My $ FONT = Imager :: Font-> New(ファイル=> 'path / to / foo.ttf'、type => 'ft2'、size => 16、color => '# 000000 '、aa => 1)。私の$ text = 'a'; #登録インスタンス - 基本的な方法My $ LTR = Imager :: DTP :: Letter-> New(); $ LTR-> SETTEXT(text => $ text); #text text $ ltr-> setfont(font => $ font)を設定します。 #set font $ ltr-> setscale(x => 1.2、y => 0.5)。 #set変換スケール(オプション)#登録インスタンス - またはShorcut Way My $ LTR = Imager :: DTP :: Letter-> New(text => $ text、font => $ font、xscale => 1.2、yscale => 0.5)。 #ターゲットイメージに描画文字を描画するMy $ target = imager-> new(xsize => 50、ysize => 50)。 $ target-> box(filled => 1、color => '#ffffff'); #白い背景を持つ$ ltr-> draw(target => $ target、x => 10、y => 10)。 #そしてファイルをファイルに書き出す$ target-> write(file => 'result.jpg' type => 'jpeg'); Imager :: DTP ::文字は、各文字/文字全体を処理するためのモジュールです。テキスト文字列(文または段落)。各Imager :: DTP :: Letterインスタンスは内部的に1つの文字/文字を保持し、文字/文字に関するさまざまな情報を保持します。そのほとんどはImager :: font-> bounding_box()メソッドからArequiredされます。したがって、Imager :: DTP ::文字は、フォント情報(昇降/降下など)がまとめられている単一の文字として機能することを目的としています。 1つのImager :: DTP :: Fleterインスタンスに複数の文字/文字を設定することが許可されていますが、Imager :: DTPパッケージはインスタンスを「単一文字」として処理します。要件: ・Perl


Imager :: DTP ::文字 関連ソフトウェア