52#ifndef _SO_FONT_NAME_ELEMENT
53#define _SO_FONT_NAME_ELEMENT
55#include <Inventor/SbString.h>
56#include <Inventor/elements/SoReplacedElement.h>
57#include <Inventor/nodes/SoFont.h>
73SoEXTENDER_Documented
class SoFontNameElement :
public SoReplacedElement {
75 SO_ELEMENT_HEADER(SoFontNameElement);
97 virtual void print(FILE *fp)
const;
102 virtual void init(
SoState *state);
107 virtual SbBool matches(
const SoElement* elt)
const;
112 virtual SoElement* copyMatchInfo()
const;
116 static void initClass();
117 static void exitClass();
123 static const SbString& getFontServerFontName();
126 static void setFontServerFontName(
const SbString& fontName );
132 virtual ~SoFontNameElement();
Class for smart character strings.
Node that defines font name, size, and type for text.
static const SbString & getDefault()
Returns the default font name.
static void set(SoState *state, SoNode *node, const SbString &fontName)
Sets the current font name.
virtual void print(FILE *fp) const
Prints element (for debugging).
static const SbString & get(SoState *state)
Returns the current font name from the state.
Abstract base class for all database nodes.