| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2010 Red Hat, Inc. | 2 * Copyright © 2010 Red Hat, Inc. |
| 3 * Copyright © 2012 Google, Inc. | 3 * Copyright © 2012 Google, Inc. |
| 4 * | 4 * |
| 5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
| 6 * | 6 * |
| 7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
| 8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
| 9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
| 10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 | 37 |
| 38 /* | 38 /* |
| 39 * head -- Font Header | 39 * head -- Font Header |
| 40 */ | 40 */ |
| 41 | 41 |
| 42 #define HB_OT_TAG_head HB_TAG('h','e','a','d') | 42 #define HB_OT_TAG_head HB_TAG('h','e','a','d') |
| 43 | 43 |
| 44 struct head | 44 struct head |
| 45 { | 45 { |
| 46 static const hb_tag_t Tag» = HB_OT_TAG_head; | 46 static const hb_tag_t tableTag» = HB_OT_TAG_head; |
| 47 | 47 |
| 48 inline unsigned int get_upem (void) const { | 48 inline unsigned int get_upem (void) const { |
| 49 unsigned int upem = unitsPerEm; | 49 unsigned int upem = unitsPerEm; |
| 50 /* If no valid head table found, assume 1000, which matches typical Type1 us
age. */ | 50 /* If no valid head table found, assume 1000, which matches typical Type1 us
age. */ |
| 51 return 16 <= upem && upem <= 16384 ? upem : 1000; | 51 return 16 <= upem && upem <= 16384 ? upem : 1000; |
| 52 } | 52 } |
| 53 | 53 |
| 54 inline bool sanitize (hb_sanitize_context_t *c) { | 54 inline bool sanitize (hb_sanitize_context_t *c) { |
| 55 TRACE_SANITIZE (this); | 55 TRACE_SANITIZE (this); |
| 56 return TRACE_RETURN (c->check_struct (this) && likely (version.major == 1)); | 56 return TRACE_RETURN (c->check_struct (this) && likely (version.major == 1)); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 SHORT glyphDataFormat; /* 0 for current format. */ | 140 SHORT glyphDataFormat; /* 0 for current format. */ |
| 141 public: | 141 public: |
| 142 DEFINE_SIZE_STATIC (54); | 142 DEFINE_SIZE_STATIC (54); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 | 145 |
| 146 } /* namespace OT */ | 146 } /* namespace OT */ |
| 147 | 147 |
| 148 | 148 |
| 149 #endif /* HB_OT_HEAD_TABLE_HH */ | 149 #endif /* HB_OT_HEAD_TABLE_HH */ |
| OLD | NEW |