SetCharWidth

テキスト、フォームフィールド

説明

選択したフォント内の特定文字の幅を設定します

使用される幅はテキストサイズに対する比率です。たとえば値 750 を使用すると、12pt テキストとして出力したときの文字幅は (750 / 1000) * 12 になります

構文

Delphi

Function TPDFlib.SetCharWidth(CharCode, NewWidth: Integer): Integer;

ActiveX

Function PDFlib::SetCharWidth(CharCode As Long, NewWidth As Long) As Long

DLL

int DLSetCharWidth(int InstanceID, int CharCode, int NewWidth);

パラメータ

CharCode設定するグリフ文字コード。たとえば "A" の場合は 65
NewWidth新しい幅

戻り値

0フォントが選択されていません 幅が正常に設定されました
1