+SWFFont::SWFFont(int t1fontindex)
+{
+ int t;
+ for(t=0;t<256;t++)
+ {
+ int width = T1_GetCharWidth(t1fontindex, t);
+ BBox bbox = T1_GetCharBBox(t1fontindex, t);
+ T1_OUTLINE*outline = T1_GetCharOutline(t1fontindex,t,100.0,0);
+
+ char*name;
+ this->outline[t] = T1_CopyOutline(outline);
+
+ name = T1_GetCharName(t1fontindex, t);
+ if(!name || name[0]=='.')
+ {
+ this->charname[t] = 0;
+ this->outline[t] = 0;
+ }
+ else
+ this->charname[t] = strdup(name);
+ }
+ this->name = strdup(T1_GetFontFileName(t1fontindex));
+}
+
+T1_OUTLINE*SWFFont::getOutline(unsigned char nr)
+{
+ return outline[nr];
+}
+
+char*SWFFont::getCharName(int t)
+{
+ return this->charname[t];
+}
+
+char*SWFFont::getName()
+{
+ return this->name;
+}
+
+struct fontlist_t
+{
+ SWFFont * font;
+ fontlist_t*next;
+} *fontlist = 0;