// See cairo_font_options_status().
//
// C API documentation: http://cairographics.org/manual/cairo-cairo-font-options-t.html#cairo-font-options-status
978029
func (options *FontOptions) status() error {
	ret := Status(C.cairo_font_options_status(options.Ptr)).toError()
	return ret
}
722067
func (options *FontOptions) GetAntialias() Antialias {
	ret := Antialias(C.cairo_font_options_get_antialias(options.Ptr))
	if err := options.status(); err != nil {
		panic(err)
	}
	return ret
}
1371829
func (fontFace *ToyFontFace) GetFamily() string {
	ret := C.GoString(C.cairo_toy_font_face_get_family(fontFace.Ptr))
	if err := fontFace.status(); err != nil {
		panic(err)
	}
	return ret
}
694591
func (options *FontOptions) GetHintMetrics() HintMetrics {
	ret := HintMetrics(C.cairo_font_options_get_hint_metrics(options.Ptr))
	if err := options.status(); err != nil {
		panic(err)
	}
	return ret
}
709783
func (sbc StackedBarChart) GetFont() *truetype.Font {
	if sbc.Font == nil {
		return sbc.defaultFont
	}
	return sbc.Font
}
797307
func (cr *Context) SetFontMatrix(matrix *Matrix) {
	C.cairo_set_font_matrix(cr.Ptr, (*C.cairo_matrix_t)(unsafe.Pointer(matrix)))
	if err := cr.status(); err != nil {
		panic(err)
	}
}
801355
func (scaledFont *ScaledFont) GlyphExtents(glyphs []Glyph, extents *TextExtents) {
	C.cairo_scaled_font_glyph_extents(scaledFont.Ptr, (*C.cairo_glyph_t)(sliceBytes(unsafe.Pointer(&glyphs))), C.int(len(glyphs)), (*C.cairo_text_extents_t)(unsafe.Pointer(extents)))
	if err := scaledFont.status(); err != nil {
		panic(err)
	}
}
310378
func (d *Driver) Status() [][2]string {
	return [][2]string{
		{"Backing Filesystem", backingFs},
		{"Supports d_type", strconv.FormatBool(d.supportsDType)},
		{"Native Overlay Diff", strconv.FormatBool(!d.useNaiveDiff())},
		{"Using metacopy", strconv.FormatBool(d.usingMetacopy)},
	}
}
452376
func (cr *Context) GetScaledFont() *ScaledFont {
	ret := wrapScaledFont(C.cairo_get_scaled_font(cr.Ptr))
	if err := cr.status(); err != nil {
		panic(err)
	}
	return ret
}
873218
func Font(buf []byte) (types.Type, error) {
	return doMatchMap(buf, matchers.Font)
}
756315
func (surface *Surface) GetFontOptions(options *FontOptions) {
	C.cairo_surface_get_font_options(surface.Ptr, options.Ptr)
	if err := surface.status(); err != nil {
		panic(err)
	}
}
62671
func (c *Page) SetFontFamilies(fontFamilies *PageFontFamilies) (*gcdmessage.ChromeResponse, error) {
	var v PageSetFontFamiliesParams
	v.FontFamilies = fontFamilies
	return c.SetFontFamiliesWithParams(&v)
}
1034427
func (c *CSS) GetPlatformFontsForNode(nodeId int) ([]*CSSPlatformFontUsage, error) {
	var v CSSGetPlatformFontsForNodeParams
	v.NodeId = nodeId
	return c.GetPlatformFontsForNodeWithParams(&v)
}
248463
func (surface *Surface) status() error {
	ret := Status(C.cairo_surface_status(surface.Ptr)).toError()
	return ret
}
860437
func (cmd SSHCommand) EvaluateTTYOption() (sharedaction.TTYOption, error) {
	var count int

	option := sharedaction.RequestTTYAuto
	if cmd.DisablePseudoTTY {
		option = sharedaction.RequestTTYNo
		count++
	}
	if cmd.ForcePseudoTTY {
		option = sharedaction.RequestTTYForce
		count++
	}
	if cmd.RequestPseudoTTY {
		option = sharedaction.RequestTTYYes
		count++
	}

	if count > 1 {
		return option, translatableerror.ArgumentCombinationError{Args: []string{
			"--disable-pseudo-tty", "-T", "--force-pseudo-tty", "--request-pseudo-tty", "-t",
		}}
	}

	return option, nil
}
1156571
func (f *Font) Close() {
	C.TTF_CloseFont(f.f)
	f.f = nil
}
651284
func (cr *Context) PaintWithAlpha(alpha float64) {
	C.cairo_paint_with_alpha(cr.Ptr, C.double(alpha))
	if err := cr.status(); err != nil {
		panic(err)
	}
}