Beispiel #1
0
// Returns any font that match the specified pattern (e.g. "*" for all)
func (mw *MagickWand) QueryFonts(pattern string) (fonts []string) {
	cspattern := C.CString(pattern)
	defer C.free(unsafe.Pointer(cspattern))
	var num C.size_t
	copts := C.MagickQueryFonts(cspattern, &num)
	fonts = sizedCStringArrayToStringSlice(copts, num)
	return
}
// Returns any font that match the specified pattern (e.g. "*" for all)
func (mw *MagickWand) QueryFonts(pattern string) (fonts []string) {
	cspattern := C.CString(pattern)
	defer C.free(unsafe.Pointer(cspattern))
	var num C.ulong
	copts := C.MagickQueryFonts(cspattern, &num)
	defer relinquishMemoryCStringArray(copts)
	fonts = sizedCStringArrayToStringSliceLong(copts, num)
	return
}