PDFTool.NET 7.0
NetParamFont.h
1
10#ifndef PDFTK_NET_PTLPARAM_FONT_H_
11#define PDFTK_NET_PTLPARAM_FONT_H_
12
13#include <PdfTkNet/NetTk.h>
14
15namespace PdfTkNet {
16
20
21public ref class PtlParamFont : public System::IDisposable
22{
23public:
37
38protected:
39 PdfTk::PtlParamFont* m_native;
40public:
41 PdfTk::PtlParamFont* getNative() { return m_native; };
42
43public:
49
60 PtlParamFont(String^ name, float size, bool bBold, bool bItalic, bool bEmbed);
61
74 PtlParamFont(String^ name, float size, WEIGHT weight, bool bItalic, bool bEmbed);
75
83
88
93
94public:
101
102public:
108 void setName(String^ name);
109
118 void setSize(float size);
119
127 void setFontSize(float size);
128
136 void setBold(bool bBold);
137
147 void setWeight(WEIGHT weight);
148
158 void setItalic(bool bItalic);
159
167 void setEmbed(bool bEmbed);
168
169public:
178 float getStringWidth(String^ str);
179};
180
181} // namespace PdfTkNet
182
183#endif // PDFTK_NET_PTLPARAM_FONT_H_
void setFontSize(float size)
フォントサイズを設定。
‾PtlParamFont()
デストラクタ
PtlParamFont operator=(PtlParamFont^ obj)
コピーオペレータ alias copy
PtlParamFont(PtlParamFont^ obj)
コピーコンストラクタ alias copy
void setName(String^ name)
フォント名を設定。
PtlParamFont(String^ name, float size, bool bBold, bool bItalic, bool bEmbed)
コンストラクタ
WEIGHT
ウェイト
Definition NetParamFont.h:27
@ WEIGHT_LIGHT
ライト
Definition NetParamFont.h:29
@ WEIGHT_EXTRABOLD
エクストラボールド
Definition NetParamFont.h:34
@ WEIGHT_MEDIUM
ミディアム
Definition NetParamFont.h:31
@ WEIGHT_NORMAL
ノーマル
Definition NetParamFont.h:30
@ WEIGHT_BOLD
ボールド
Definition NetParamFont.h:33
@ WEIGHT_SEMIBOLD
セミボールド
Definition NetParamFont.h:32
@ WEIGHT_HEAVY
ヘビー
Definition NetParamFont.h:35
@ WEIGHT_EXTRALIGHT
エクストラライト
Definition NetParamFont.h:28
float getStringWidth(String^ str)
文字列幅を取得。
void setEmbed(bool bEmbed)
フォント埋め込みにするか否かを設定。
void setItalic(bool bItalic)
イタリックか否かを設定。
void setSize(float size)
フォントサイズを設定(ポイント)。
void setWeight(WEIGHT weight)
ウエイトを設定。
PtlParamFont()
コンストラクタ
void setBold(bool bBold)
ボールドか否かを設定。
PtlParamFont(String^ name, float size, WEIGHT weight, bool bItalic, bool bEmbed)
コンストラクタ