15 #ifndef FREETYPEFACE_H 16 #define FREETYPEFACE_H 18 #include "pandabase.h" 22 #include "typedReferenceCount.h" 25 #include "mutexHolder.h" 28 #include FT_FREETYPE_H 42 FT_Face acquire_face(
int char_size,
int dpi,
int pixel_width,
int pixel_height);
43 void release_face(FT_Face face);
45 void set_face(FT_Face face);
48 static void initialize_ft_library();
63 static FT_Library _ft_library;
64 static bool _ft_initialized;
71 static void init_type() {
72 TypedReferenceCount::init_type();
73 register_type(_type_handle,
"FreetypeFace",
74 TypedReferenceCount::get_class_type());
77 return get_class_type();
79 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
84 friend class FreetypeFont;
88 #include "freetypeFace.I" 90 #endif // HAVE_FREETYPE A base class for things which need to inherit from both TypedObject and from ReferenceCount.
A standard mutex, or mutual exclusion lock.
A base class for all things which can have a name.
TypeHandle is the identifier used to differentiate C++ class types.