Class: Cairo::FontFace

Inherits:
Object
  • Object
show all
Defined in:
ext/cairo/rb_cairo_font_face.c

Direct Known Subclasses

FreeTypeFontFace, ToyFontFace, UserFontFace

Class Method Summary collapse

Class Method Details

.freetype_supported?Boolean

Returns:

  • (Boolean)


139
140
141
142
143
144
145
146
147
# File 'ext/cairo/rb_cairo_font_face.c', line 139

static VALUE
cr_font_face_freetype_supported_p (VALUE klass)
{
#ifdef CAIRO_HAS_FT_FONT
  return Qtrue;
#else
  return Qfalse;
#endif
}

.quartz_supported?Boolean

Returns:

  • (Boolean)


129
130
131
132
133
134
135
136
137
# File 'ext/cairo/rb_cairo_font_face.c', line 129

static VALUE
cr_font_face_quartz_supported_p (VALUE klass)
{
#ifdef CAIRO_HAS_QUARTZ_FONT
  return Qtrue;
#else
  return Qfalse;
#endif
}