diff options
| author | b5f0d6c3 <[email protected]> | 2022-05-01 23:01:55 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-05-01 23:01:55 +0800 |
| commit | 01ab2fd8d008f31309043c7ff341238ea3675a1e (patch) | |
| tree | 9320b1101174590f4a4744b94937aa5a8c378f54 /mkvlib/c/exports.go | |
| parent | b4eef8c40442c2883ff35eb61e302119c8570b6e (diff) | |
update mkvlib:add get font info
Diffstat (limited to 'mkvlib/c/exports.go')
| -rw-r--r-- | mkvlib/c/exports.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mkvlib/c/exports.go b/mkvlib/c/exports.go index c728b69..5cb8c0f 100644 --- a/mkvlib/c/exports.go +++ b/mkvlib/c/exports.go @@ -195,6 +195,16 @@ func Check(check, strict bool) { getter.GetProcessorInstance().Check(check, strict) } +//export GetFontInfo +func GetFontInfo(p *C.char) *C.char { + if !checkInstance() { + return cs("") + } + info := getter.GetProcessorInstance().GetFontInfo(gs(p)) + data, _ := json.Marshal(info) + return cs(string(data)) +} + func cs(gs string) *C.char { return C.CString(gs) } |
