64 lines
1.6 KiB
C++
64 lines
1.6 KiB
C++
// Filename: indexify.h
|
|
// Created by: drose (07Apr02)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 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 .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef FONTSAMPLES_H
|
|
#define FONTSAMPLES_H
|
|
|
|
#include "pandatoolbase.h"
|
|
|
|
#include "programBase.h"
|
|
#include "filename.h"
|
|
#include "pvector.h"
|
|
|
|
class PNMTextMaker;
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Class : FontSamples
|
|
// Description : A program to generate one or more image files showing
|
|
// samples of various fonts.
|
|
////////////////////////////////////////////////////////////////////
|
|
class FontSamples : public ProgramBase {
|
|
public:
|
|
FontSamples();
|
|
virtual ~FontSamples();
|
|
|
|
protected:
|
|
virtual bool handle_args(Args &args);
|
|
virtual bool post_command_line();
|
|
|
|
public:
|
|
void run();
|
|
|
|
string _sample_text;
|
|
int _sample_height;
|
|
int _name_height;
|
|
Filename _name_font_filename;
|
|
double _font_aa_factor;
|
|
int _vert_space;
|
|
int _image_width;
|
|
int _image_height;
|
|
string _output_filename;
|
|
|
|
typedef pvector<Filename> Filenames;
|
|
Filenames _font_filenames;
|
|
|
|
PNMTextMaker *_name_text_maker;
|
|
};
|
|
|
|
#endif
|