
/* 
A* -------------------------------------------------------------------
B* This file contains source code for the PyMOL computer program
C* copyright 1998-2003 by Warren Lyford Delano of DeLano Scientific. 
D* -------------------------------------------------------------------
E* It is unlawful to modify or remove this copyright notice.
F* -------------------------------------------------------------------
G* Please see the accompanying LICENSE file for further information. 
H* --------------------------------------------------\-----------------
I* Additional authors of this source file include:
-* 
-* 
-*
Z* -------------------------------------------------------------------
*/

#ifndef _H_FontType
#define _H_FontType

#include"Font.h"
#include"TypeFace.h"

struct CFontType : public CFont {
  CTypeFace* TypeFace;
  CFontType(PyMOLGlobals* G, unsigned char* dat, unsigned int len);
  const char* RenderOpenGL(RenderInfo* info, const char* text, float size,
      float* rpos, bool needSize, short relativeMode, bool shouldRender,
      CGO* shaderCGO) override;
  const char* RenderOpenGLFlat(RenderInfo* info, const char* text, float size,
      float* rpos, bool needSize, short relativeMode, bool shouldRender,
      CGO* shaderCGO) override;
  const char* RenderRay(CRay* ray, const char* text, float size, float* rpos,
      bool needSize, short relativeMode) override;
};

CFont *FontTypeNew(PyMOLGlobals * G, unsigned char *dat, unsigned int len);

#endif
