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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 { | 52 { |
53 static const hb_tag_t tableTag = 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 public: |
63 LongHorMetric longHorMetric[VAR]; /* Paired advance width and left side | 63 LongHorMetric longHorMetric[VAR]; /* Paired advance width and left side |
64 * bearing values for each glyph. The | 64 * bearing values for each glyph. The |
65 * value numOfHMetrics comes from | 65 * value numOfHMetrics comes from |
66 * the 'hhea' table. If the font is | 66 * the 'hhea' table. If the font is |
67 * monospaced, only one entry need | 67 * monospaced, only one entry need |
68 * be in the array, but that entry is | 68 * be in the array, but that entry is |
69 * required. The last entry applies to | 69 * required. The last entry applies to |
70 * all subsequent glyphs. */ | 70 * all subsequent glyphs. */ |
71 SHORT leftSideBearingX[VAR]; /* Here the advanceWidth is assumed | 71 SHORT leftSideBearingX[VAR]; /* Here the advanceWidth is assumed |
72 * to be the same as the advanceWidth | 72 * to be the same as the advanceWidth |
(...skipping 10 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 |