# quartz_font.h

Go to the documentation of this file.

    00001 /* Copyright (C) 2008 Jonathon Jongsma
    00002  *
    00003  * This library is free software; you can redistribute it and/or
    00004  * modify it under the terms of the GNU Library General Public
    00005  * License as published by the Free Software Foundation; either
    00006  * version 2 of the License, or (at your option) any later version.
    00007  *
    00008  * This library is distributed in the hope that it will be useful,
    00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00011  * Library General Public License for more details.
    00012  *
    00013  * You should have received a copy of the GNU Library General Public
    00014  * License along with this library; if not, write to the Free Software
    00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    00016  * 02110-1301, USA.
    00017  */
    00018 #ifndef __CAIROMM_QUARTZ_FONT_H
    00019 #define __CAIROMM_QUARTZ_FONT_H
    00020
    00021 #include <cairo-features.h>
    00022
    00023 #ifdef CAIRO_HAS_QUARTZ_FONT
    00024 #include <cairo-quartz.h>
    00025 #include <cairomm/fontface.h>
    00026 #include <cairomm/scaledfont.h>
    00027
    00028 namespace Cairo
    00029 {
    00030
    00035 class QuartzFontFace : public FontFace
    00036 {
    00037 public:
    00038
    00047   static RefPtr<QuartzFontFace> create(CGFontRef font);
    00048
    00057   static RefPtr<QuartzFontFace> create(ATSUFontID font_id);
    00058
    00059
    00060 protected:
    00061   QuartzFontFace(CGFontRef font);
    00062   QuartzFontFace(ATSUFontID font_id);
    00063 };
    00064
    00065 }
    00066
    00067 #endif // CAIRO_HAS_QUARTZ_FONT
    00068
    00069 #endif // __CAIROMM_QUARTZ_FONT_H