72 lines
2.4 KiB
Plaintext
72 lines
2.4 KiB
Plaintext
// Filename: textFont.I
|
|
// Created by: drose (08Feb02)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://www.panda3d.org/license.txt .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d@yahoogroups.com .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: TextFont::is_valid
|
|
// Access: Published
|
|
// Description: Returns true if the font is valid and ready to use,
|
|
// false otherwise.
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE bool TextFont::
|
|
is_valid() const {
|
|
return _is_valid;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: TextFont::get_line_height
|
|
// Access: Published
|
|
// Description: Returns the number of units high each line of text
|
|
// is.
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float TextFont::
|
|
get_line_height() const {
|
|
return _line_height;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: TextFont::set_line_height
|
|
// Access: Published
|
|
// Description: Changes the number of units high each line of text
|
|
// is.
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void TextFont::
|
|
set_line_height(float line_height) {
|
|
_line_height = line_height;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: TextFont::get_space_advance
|
|
// Access: Published
|
|
// Description: Returns the number of units wide a space is.
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float TextFont::
|
|
get_space_advance() const {
|
|
return _space_advance;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: TextFont::set_space_advance
|
|
// Access: Published
|
|
// Description: Changes the number of units wide a space is.
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void TextFont::
|
|
set_space_advance(float space_advance) {
|
|
_space_advance = space_advance;
|
|
}
|