00001 // Filename: textFont.I 00002 // Created by: drose (08Feb02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: TextFont::is_valid 00022 // Access: Published 00023 // Description: Returns true if the font is valid and ready to use, 00024 // false otherwise. 00025 //////////////////////////////////////////////////////////////////// 00026 INLINE bool TextFont:: 00027 is_valid() const { 00028 return _is_valid; 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: TextFont::get_line_height 00033 // Access: Published 00034 // Description: Returns the number of units high each line of text 00035 // is. 00036 //////////////////////////////////////////////////////////////////// 00037 INLINE float TextFont:: 00038 get_line_height() const { 00039 return _line_height; 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function: TextFont::set_line_height 00044 // Access: Published 00045 // Description: Changes the number of units high each line of text 00046 // is. 00047 //////////////////////////////////////////////////////////////////// 00048 INLINE void TextFont:: 00049 set_line_height(float line_height) { 00050 _line_height = line_height; 00051 } 00052 00053 //////////////////////////////////////////////////////////////////// 00054 // Function: TextFont::get_space_advance 00055 // Access: Published 00056 // Description: Returns the number of units wide a space is. 00057 //////////////////////////////////////////////////////////////////// 00058 INLINE float TextFont:: 00059 get_space_advance() const { 00060 return _space_advance; 00061 } 00062 00063 //////////////////////////////////////////////////////////////////// 00064 // Function: TextFont::set_space_advance 00065 // Access: Published 00066 // Description: Changes the number of units wide a space is. 00067 //////////////////////////////////////////////////////////////////// 00068 INLINE void TextFont:: 00069 set_space_advance(float space_advance) { 00070 _space_advance = space_advance; 00071 }