diff options
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) } |
