| 
    OpenCMISS-Zinc C++ API Documentation
    
   | 
 
Font object controlling attributes of rendering text. More...
#include <font.hpp>
Public Types | |
| enum | RenderType {  RENDER_TYPE_INVALID = CMZN_FONT_RENDER_TYPE_INVALID, RENDER_TYPE_BITMAP = CMZN_FONT_RENDER_TYPE_BITMAP, RENDER_TYPE_PIXMAP = CMZN_FONT_RENDER_TYPE_PIXMAP, RENDER_TYPE_POLYGON = CMZN_FONT_RENDER_TYPE_POLYGON, RENDER_TYPE_OUTLINE = CMZN_FONT_RENDER_TYPE_OUTLINE, RENDER_TYPE_EXTRUDE = CMZN_FONT_RENDER_TYPE_EXTRUDE }  | 
| enum | TypefaceType { TYPEFACE_TYPE_INVALID = CMZN_FONT_TYPEFACE_TYPE_INVALID, TYPEFACE_TYPE_OPENSANS = CMZN_FONT_TYPEFACE_TYPE_OPENSANS } | 
Public Member Functions | |
| Font (cmzn_font_id font_id) | |
| Font (const Font &font) | |
| Font & | operator= (const Font &font) | 
| bool | isValid () const | 
| cmzn_font_id | getId () const | 
| char * | getName () | 
| int | setName (const char *name) | 
| bool | isBold () | 
| int | setBold (bool bold) | 
| double | getDepth () | 
| int | setDepth (double depth) | 
| bool | isItalic () | 
| int | setItalic (bool italic) | 
| int | getPointSize () | 
| int | setPointSize (int size) | 
| enum RenderType | getRenderType () | 
| int | setRenderType (RenderType renderType) | 
| TypefaceType | getTypefaceType () | 
| int | setTypefaceType (TypefaceType typefaceType) | 
Protected Attributes | |
| cmzn_font_id | id | 
Font object controlling attributes of rendering text.
Font object incorporating typeface, size and other attributes for rendering text in graphics.
How a font is rendered in graphics.
| Enumerator | |
|---|---|
| RENDER_TYPE_INVALID | 
 Unspecified render type  | 
| RENDER_TYPE_BITMAP | 
 Font will be rendered using OpenGL bitmap, this is the default render type for font  | 
| RENDER_TYPE_PIXMAP | 
 Font will be rendered using OpenGL pixmap  | 
| RENDER_TYPE_POLYGON | 
 Font will be rendered as 2-D Polygons  | 
| RENDER_TYPE_OUTLINE | 
 Font will be rendered as Polygon but only the outline will be drawn  | 
| RENDER_TYPE_EXTRUDE | 
 Font will be rendered as Polygon with thickness  | 
Enumeration of available font typefaces.
| Enumerator | |
|---|---|
| TYPEFACE_TYPE_INVALID | 
 Unspecified typeface  | 
| TYPEFACE_TYPE_OPENSANS | 
 Font to be rendered with OpenSans typeface  | 
      
  | 
  inline | 
Get the depth for extrude font type.
      
  | 
  inline | 
      
  | 
  inline | 
Return an allocated string containing font name.
| spectrum | handle to the zinc graphics font. | 
      
  | 
  inline | 
Get the point size for the font.
      
  | 
  inline | 
Get the render type of the given font.
      
  | 
  inline | 
Get the True Type typeface type of the font.
      
  | 
  inline | 
Query whether the font is bold.
      
  | 
  inline | 
Query whether the font is italic.
      
  | 
  inline | 
Check if this is a valid Font object.
      
  | 
  inline | 
Set whether the font is bold.
| bold | New state of bold flag, true = bold, false = normal. | 
      
  | 
  inline | 
Set the depth for extrude font type.
| depth | depth of the font to be set. | 
      
  | 
  inline | 
Set whether the font is italic.
| italic | New state of italic flag, true = italic, false = normal. | 
      
  | 
  inline | 
Set/change name for <font>.
| name | name to be set to the font | 
      
  | 
  inline | 
Set the point size for font type.
| size | Point size of the font to be set, > 0. | 
      
  | 
  inline | 
Set the rendering type of the given font.
| renderType | the render type to use for font. | 
      
  | 
  inline | 
Set the True Type typeface type of the font.
| typefaceType | The enumerator of the TrueType typeface to use for font. | 
 1.8.6