17 typedef unsigned int HK_CHARSIZE;
30 hk_font(
const hk_string& fontname,
int fontsize);
33 void set_font(
const hk_string& fontname,
int fontsize);
35 hk_string fontname(
void)
const;
36 int fontsize(
void)
const;
38 bool bold(
void)
const;
39 void set_italic(
bool);
40 bool italic(
void)
const;
42 bool operator==(
const hk_font&);
43 bool operator!=(
const hk_font&);
44 hk_string psfontname(
void);
45 static void set_defaultfont(
const hk_string& d,
int s);
46 static hk_string defaultfontname(
void);
47 static int defaultfontsize(
void);
48 static list<hk_string>* fontlist();
52 bool text2lines(
int fixedwidth,list<hk_string>* l,
const hk_string& text);
55 virtual void loaddata(xmlNodePtr definition);
60 hk_string psfontembeddefinition(
void);
61 HK_CHARSIZE char_ascender_size();
62 HK_CHARSIZE char_descender_size();
63 bool is_scaleable(
void) ;
64 list<int>* available_sizes() ;
67 void register_string(
const hk_string&);
71 void set_fontface(
void);
80 static hk_string p_defaultfont;
81 static int p_defaultfontsize;
84 static list<hk_string> p_fontlist;
88 ostream& operator<<(ostream&,
hk_font&);
89 ostream& operator<<(ostream&,
const hk_font&);
98 void register_unicode(HK_CHARSIZE code);
99 void register_unicode(HK_CHARSIZE code,
const hk_string & glyphname);
100 HK_CHARSIZE max_nr()
const;
101 HK_CHARSIZE local (HK_CHARSIZE unicode);
102 hk_string glyphname (HK_CHARSIZE unicode);
103 HK_CHARSIZE unicode(HK_CHARSIZE local);
105 void reset_has_changed(
void);
106 bool has_changed(
void)
const;
basic class for all other defined classes.
Definition: hk_class.h:52
Definition: hk_font.cpp:913
represents a font
Definition: hk_font.h:26
Definition: hk_font.cpp:29
virtual void loaddata(xmlNodePtr definition)
Definition: hk_font.cpp:374
bool text2lines(int fixedwidth, list< hk_string > *l, const hk_string &text)
Definition: hk_font.cpp:669
virtual void savedata(ostream &s)
Definition: hk_font.cpp:361