Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46d57ea

Browse files
committed
Remove now unused patches to ttconv.
get_pdf_charprocs and TTDictionaryCallback were added in 7a10b51.
1 parent 8b9890e commit 46d57ea

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

extern/ttconv/pprdrv.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,6 @@ class TTStreamWriter
4848
virtual void putline(const char* a);
4949
};
5050

51-
class TTDictionaryCallback
52-
{
53-
private:
54-
// Private copy and assignment
55-
TTDictionaryCallback& operator=(const TTStreamWriter& other);
56-
TTDictionaryCallback(const TTStreamWriter& other);
57-
58-
public:
59-
TTDictionaryCallback() { }
60-
virtual ~TTDictionaryCallback() { }
61-
62-
virtual void add_pair(const char* key, const char* value) = 0;
63-
};
64-
6551
void replace_newlines_with_spaces(char* a);
6652

6753
/*
@@ -108,6 +94,4 @@ enum font_type_enum
10894
/* routines in pprdrv_tt.c */
10995
void insert_ttfont(const char *filename, TTStreamWriter& stream, font_type_enum target_type, std::vector<int>& glyph_ids);
11096

111-
void get_pdf_charprocs(const char *filename, std::vector<int>& glyph_ids, TTDictionaryCallback& dict);
112-
11397
/* end of file */

extern/ttconv/pprdrv_tt.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,22 +1417,6 @@ class StringStreamWriter : public TTStreamWriter
14171417
}
14181418
};
14191419

1420-
void get_pdf_charprocs(const char *filename, std::vector<int>& glyph_ids, TTDictionaryCallback& dict)
1421-
{
1422-
struct TTFONT font;
1423-
1424-
read_font(filename, PDF_TYPE_3, glyph_ids, font);
1425-
1426-
for (std::vector<int>::const_iterator i = glyph_ids.begin();
1427-
i != glyph_ids.end(); ++i)
1428-
{
1429-
StringStreamWriter writer;
1430-
tt_type3_charproc(writer, &font, *i);
1431-
const char* name = ttfont_CharStrings_getname(&font, *i);
1432-
dict.add_pair(name, writer.str().c_str());
1433-
}
1434-
}
1435-
14361420
TTFONT::TTFONT() :
14371421
file(NULL),
14381422
PostName(NULL),

0 commit comments

Comments
 (0)