quartz_font.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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