|
|
@@ -24,6 +24,17 @@ is_valid() const {
|
|
|
return _is_valid;
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: TextFont::operator bool
|
|
|
+// Access: Published
|
|
|
+// Description: Returns true if the font is valid and ready to use,
|
|
|
+// false otherwise.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+INLINE TextFont::
|
|
|
+operator bool () const {
|
|
|
+ return is_valid();
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: TextFont::get_line_height
|
|
|
// Access: Published
|