Documentation
¶
Overview ¶
字体.
Index ¶
- type Font
- func NewFont(size int) *Font
- func NewFontByHandle(handle int) *Font
- func NewFontByName(name string) *Font
- func NewFontEX(pName string, size int, style int) *Font
- func NewFontFromFile(pFontFile string, size int, style int) *Font
- func NewFontFromFont(pFont int) *Font
- func NewFontFromHFONT(hFont int) *Font
- func NewFontFromMem(data []byte, fontSize, style int) *Font
- func NewFontFromRes(id int, pType string, fontSize int, style int, hModule int) *Font
- func NewFontLOGFONTW(pFontInfo *xc.LOGFONTW) *Font
- func (f *Font) AddRef() int
- func (f *Font) Destroy() int
- func (f *Font) EnableAutoDestroy(bEnable bool) int
- func (f *Font) GetFont() int
- func (f *Font) GetFontInfo(pInfo *xc.Font_Info_) int
- func (f *Font) GetLOGFONTW(hdc int, pOut *xc.LOGFONTW) bool
- func (f *Font) GetRefCount() int
- func (f *Font) Release() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font struct {
objectbase.ObjectBase
}
字体.
func NewFontEX ¶
字体_创建扩展, 创建炫彩字体, 返回字体句柄.
pName: 字体名称.
size: 字体大小, 单位(pt,磅).
style: 字体样式, FontStyle_.
func NewFontFromFile ¶
字体_创建从文件, 创建字体从文件.
pFontFile: 字体文件名.
size: 字体大小, 单位(pt,磅).
style: 字体样式, FontStyle_.
func NewFontFromMem ¶
字体_创建从内存, 创建炫彩字体从内存, 返回字体句柄.
data: 字体文件数据.
fontSize: 字体大小, 单位(pt,磅).
style: 字体样式, FontStyle_.
func NewFontFromRes ¶
字体_创建从资源, 创建字体从资源, 返回炫彩字体句柄.
id: xx.
pType: xx.
fontSize: 字体大小, 单位(pt,磅).
style: 字体样式, FontStyle_.
hModule: xx.
func (*Font) GetFontInfo ¶
func (f *Font) GetFontInfo(pInfo *xc.Font_Info_) int
字体_取信息, 获取字体信息.
pInfo: 接收返回的字体信息.
Click to show internal directories.
Click to hide internal directories.