14 #ifndef FREETYPEFACE_H 15 #define FREETYPEFACE_H 27 #include FT_FREETYPE_H 39 FT_Face acquire_face(
int char_size,
int dpi,
int pixel_width,
int pixel_height);
40 void release_face(FT_Face face);
42 void set_face(FT_Face face);
45 static void initialize_ft_library();
49 std::string _font_data;
59 static FT_Library _ft_library;
60 static bool _ft_initialized;
67 static void init_type() {
68 TypedReferenceCount::init_type();
70 TypedReferenceCount::get_class_type());
73 return get_class_type();
75 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
80 friend class FreetypeFont;
86 #endif // HAVE_FREETYPE void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.