Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

pdf::font::CFlags Class Reference

the font type flags in PDF font descriptor More...

#include <Flags.hh>

List of all members.

Public Types

Public Methods

Private Attributes


Detailed Description

the font type flags in PDF font descriptor

it defines an enum EFlags. the main purpose of this class is to transform the enum and a font into a 32 bit mask to represent the type of the font.


Member Enumeration Documentation

enum pdf::font::CFlags::EFlags
 

a simpler way to tell the type of the font

00051 { serif, sans, symbol, script } ;


Constructor & Destructor Documentation

pdf::font::CFlags::CFlags const freetype::CFace   face,
EFlags    f = serif
[explicit]
 

given a font and an enum to construct the object. the constructor will calculate the bit mask.

00036 {
00037     m_flags[0] = face.IsFixed( ) ;
00038     
00039     m_flags[1] = ( f == serif ) ;
00040     
00041     m_flags[2] = ( f == symbol ) ;
00042     
00043     m_flags[3] = ( f == script ) ;
00044     
00045     m_flags[5] = ( f != symbol ) ;
00046     
00047     m_flags[6] = ( face.ItalicAngle( ) > 0 ) ;
00048     
00049     // AllCap, SmallCap and ForceBold is false by default
00050     m_flags[16] = m_flags[17] = m_flags[18] = false ;
00051 }


Member Function Documentation

boost::int32_t pdf::font::CFlags::Flags   const [inline]
 

get the result

00061 { return m_flags.to_ulong( ) ; }


Member Data Documentation

std::bitset<32> pdf::font::CFlags::m_flags [private]
 

the bit mask


The documentation for this class was generated from the following files:
Generated on Sun Feb 2 09:17:18 2003 for libpdf++ by doxygen1.2.16