diff options
Diffstat (limited to 'Build/source/texk/lcdf-typetools/include/efont/otf.hh')
-rw-r--r-- | Build/source/texk/lcdf-typetools/include/efont/otf.hh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Build/source/texk/lcdf-typetools/include/efont/otf.hh b/Build/source/texk/lcdf-typetools/include/efont/otf.hh index 3c699c2143b..816206f63ba 100644 --- a/Build/source/texk/lcdf-typetools/include/efont/otf.hh +++ b/Build/source/texk/lcdf-typetools/include/efont/otf.hh @@ -2,6 +2,7 @@ #ifndef EFONT_OTF_HH #define EFONT_OTF_HH #include <efont/otfdata.hh> +#include <lcdf/hashcode.hh> class ErrorHandler; namespace Efont { namespace OpenType { class Post; @@ -13,8 +14,8 @@ class Tag { public: Tag() : _tag(0U) { } explicit Tag(uint32_t tag) : _tag(tag) { } - Tag(const char*); - Tag(const String&); + Tag(const char *name); + Tag(const String &name); // default destructor bool null() const { return _tag == 0; } @@ -52,9 +53,10 @@ class Font { public: int length() const { return _str.length(); } int ntables() const; - String table(Tag) const; - uint32_t table_checksum(Tag) const; - Tag table_tag(int) const; + bool has_table(Tag tag) const; + String table(Tag tag) const; + uint32_t table_checksum(Tag tag) const; + Tag table_tag(int i) const; static uint32_t checksum(const uint8_t *, const uint8_t *); static uint32_t checksum(const String &); @@ -377,7 +379,7 @@ inline bool GlyphSet::operator[](Glyph g) const }} -inline unsigned hashcode(Efont::OpenType::Tag t) +inline hashcode_t hashcode(Efont::OpenType::Tag t) { return t.value(); } |