Panda3D
 All Classes Functions Variables Enumerations
config_pnmtext.cxx
00001 // Filename: config_pnmtext.cxx
00002 // Created by:  drose (08Sep03)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_pnmtext.h"
00016 
00017 #include "dconfig.h"
00018 #include "freetypeFace.h"
00019 
00020 Configure(config_pnmtext);
00021 NotifyCategoryDef(pnmtext, "");
00022 
00023 ConfigureFn(config_pnmtext) {
00024   init_libpnmtext();
00025 }
00026 
00027 ConfigVariableDouble text_point_size
00028 ("text-point-size", 10.0f);
00029 ConfigVariableDouble text_pixels_per_unit
00030 ("text-pixels-per-unit", 30.0f);
00031 ConfigVariableDouble text_scale_factor
00032 ("text-scale-factor", 2.0f);
00033 ConfigVariableBool text_native_antialias
00034 ("text-native-antialias", true);
00035 
00036 ////////////////////////////////////////////////////////////////////
00037 //     Function: init_libpnmtext
00038 //  Description: Initializes the library.  This must be called at
00039 //               least once before any of the functions or classes in
00040 //               this library can be used.  Normally it will be
00041 //               called by the static initializers and need not be
00042 //               called explicitly, but special cases exist.
00043 ////////////////////////////////////////////////////////////////////
00044 void
00045 init_libpnmtext() {
00046   static bool initialized = false;
00047   if (initialized) {
00048     return;
00049   }
00050   initialized = true;
00051 
00052   FreetypeFace::init_type();
00053 }
 All Classes Functions Variables Enumerations