commit | e30ebd2794b37bd8ec716a258d5cb017fb1dfadc | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <[email protected]> | Thu Sep 06 22:09:06 2012 -0400 |
committer | Behdad Esfahbod <[email protected]> | Thu Sep 06 22:09:06 2012 -0400 |
tree | 2409ee452faa07932cd7a6a691ade9e57018deaf | |
parent | f67917161bbe317a33d6407fbc62ebffcafe7154 [diff] [blame] |
Add hb_feature_to/from_string()
diff --git a/src/hb-common.cc b/src/hb-common.cc index 1301ab2..33a514d 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc
@@ -58,6 +58,15 @@ return HB_TAG_CHAR4 (tag); } +void +hb_tag_to_string (hb_tag_t tag, char *buf) +{ + buf[0] = (char) (uint8_t) (tag >> 24); + buf[1] = (char) (uint8_t) (tag >> 16); + buf[2] = (char) (uint8_t) (tag >> 8); + buf[3] = (char) (uint8_t) (tag >> 0); +} + /* hb_direction_t */