Blame cairomm/quartz_font.cc

Packit 908522
/* Copyright (C) 2008 Jonathon Jongsma
Packit 908522
 *
Packit 908522
 * This library is free software; you can redistribute it and/or
Packit 908522
 * modify it under the terms of the GNU Library General Public
Packit 908522
 * License as published by the Free Software Foundation; either
Packit 908522
 * version 2 of the License, or (at your option) any later version.
Packit 908522
 *
Packit 908522
 * This library is distributed in the hope that it will be useful,
Packit 908522
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 908522
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 908522
 * Library General Public License for more details.
Packit 908522
 *
Packit 908522
 * You should have received a copy of the GNU Library General Public
Packit 908522
 * License along with this library; if not, write to the Free Software
Packit 908522
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
Packit 908522
 * 02110-1301, USA.
Packit 908522
 */
Packit 908522
Packit 908522
#include <cairomm/quartz_font.h>
Packit 908522
Packit 908522
#ifdef CAIRO_HAS_QUARTZ_FONT
Packit 908522
#include <cairomm/private.h>
Packit 908522
Packit 908522
namespace Cairo {
Packit 908522
Packit 908522
Packit 908522
QuartzFontFace::QuartzFontFace(CGFontRef font) :
Packit 908522
  FontFace(cairo_quartz_font_face_create_for_cgfont(font), true)
Packit 908522
{
Packit 908522
  check_object_status_and_throw_exception(*this);
Packit 908522
}
Packit 908522
Packit 908522
RefPtr<QuartzFontFace> QuartzFontFace::create(CGFontRef font)
Packit 908522
{
Packit 908522
  return RefPtr<QuartzFontFace>(new QuartzFontFace(font));
Packit 908522
}
Packit 908522
Packit 908522
Packit 908522
#ifndef __LP64__
Packit 908522
QuartzFontFace::QuartzFontFace(ATSUFontID font_id) :
Packit 908522
  FontFace(cairo_quartz_font_face_create_for_atsu_font_id(font_id), true)
Packit 908522
{
Packit 908522
  check_object_status_and_throw_exception(*this);
Packit 908522
}
Packit 908522
Packit 908522
RefPtr<QuartzFontFace> QuartzFontFace::create(ATSUFontID font_id)
Packit 908522
{
Packit 908522
  return RefPtr<QuartzFontFace>(new QuartzFontFace(font_id));
Packit 908522
}
Packit 908522
#endif
Packit 908522
Packit 908522
}
Packit 908522
Packit 908522
#endif // CAIRO_HAS_QUARTZ_FONT