| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2011,2012 Google, Inc. | 2 * Copyright © 2011,2012 Google, Inc. |
| 3 * | 3 * |
| 4 * This is part of HarfBuzz, a text shaping library. | 4 * This is part of HarfBuzz, a text shaping library. |
| 5 * | 5 * |
| 6 * Permission is hereby granted, without written agreement and without | 6 * Permission is hereby granted, without written agreement and without |
| 7 * license or royalty fees, to use, copy, modify, and distribute this | 7 * license or royalty fees, to use, copy, modify, and distribute this |
| 8 * software and its documentation for any purpose, provided that the | 8 * software and its documentation for any purpose, provided that the |
| 9 * above copyright notice and the following two paragraphs appear in | 9 * above copyright notice and the following two paragraphs appear in |
| 10 * all copies of this software. | 10 * all copies of this software. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 struct LongHorMetric | 43 struct LongHorMetric |
| 44 { | 44 { |
| 45 USHORT advanceWidth; | 45 USHORT advanceWidth; |
| 46 SHORT lsb; | 46 SHORT lsb; |
| 47 public: | 47 public: |
| 48 DEFINE_SIZE_STATIC (4); | 48 DEFINE_SIZE_STATIC (4); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 struct hmtx | 51 struct hmtx |
| 52 { | 52 { |
| 53 static const hb_tag_t Tag» = HB_OT_TAG_hmtx; | 53 static const hb_tag_t tableTag» = HB_OT_TAG_hmtx; |
| 54 | 54 |
| 55 inline bool sanitize (hb_sanitize_context_t *c) { | 55 inline bool sanitize (hb_sanitize_context_t *c) { |
| 56 TRACE_SANITIZE (this); | 56 TRACE_SANITIZE (this); |
| 57 /* We don't check for anything specific here. The users of the | 57 /* We don't check for anything specific here. The users of the |
| 58 * struct do all the hard work... */ | 58 * struct do all the hard work... */ |
| 59 return TRACE_RETURN (true); | 59 return TRACE_RETURN (true); |
| 60 } | 60 } |
| 61 | 61 |
| 62 protected: | 62 protected: |
| 63 LongHorMetric longHorMetric[VAR]; /* Paired advance width and left side | 63 LongHorMetric longHorMetric[VAR]; /* Paired advance width and left side |
| (...skipping 19 matching lines...) Expand all Loading... |
| 83 * values for each glyph. */ | 83 * values for each glyph. */ |
| 84 public: | 84 public: |
| 85 DEFINE_SIZE_ARRAY2 (0, longHorMetric, leftSideBearingX); | 85 DEFINE_SIZE_ARRAY2 (0, longHorMetric, leftSideBearingX); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 | 88 |
| 89 } /* namespace OT */ | 89 } /* namespace OT */ |
| 90 | 90 |
| 91 | 91 |
| 92 #endif /* HB_OT_HMTX_TABLE_HH */ | 92 #endif /* HB_OT_HMTX_TABLE_HH */ |
| OLD | NEW |