#include <Flags.hh>
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.
|
|
a simpler way to tell the type of the font
00051 { serif, sans, symbol, script } ;
|
|
||||||||||||
|
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 }
|
|
|
get the result
00061 { return m_flags.to_ulong( ) ; }
|
|
|
the bit mask
|
1.2.16