Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-hmtx-table.hh

Issue 1005693006: Roll harfbuzz-ng to 0.9.40 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 DEFINE_SIZE_STATIC (4); 50 DEFINE_SIZE_STATIC (4);
51 }; 51 };
52 52
53 struct _mtx 53 struct _mtx
54 { 54 {
55 static const hb_tag_t tableTag = HB_TAG('_','m','t','x'); 55 static const hb_tag_t tableTag = HB_TAG('_','m','t','x');
56 56
57 static const hb_tag_t hmtxTag = HB_OT_TAG_hmtx; 57 static const hb_tag_t hmtxTag = HB_OT_TAG_hmtx;
58 static const hb_tag_t vmtxTag = HB_OT_TAG_vmtx; 58 static const hb_tag_t vmtxTag = HB_OT_TAG_vmtx;
59 59
60 inline bool sanitize (hb_sanitize_context_t *c) { 60 inline bool sanitize (hb_sanitize_context_t *c) const
61 {
61 TRACE_SANITIZE (this); 62 TRACE_SANITIZE (this);
62 /* We don't check for anything specific here. The users of the 63 /* We don't check for anything specific here. The users of the
63 * struct do all the hard work... */ 64 * struct do all the hard work... */
64 return TRACE_RETURN (true); 65 return TRACE_RETURN (true);
65 } 66 }
66 67
67 public: 68 public:
68 LongMetric longMetric[VAR]; /* Paired advance width and leading 69 LongMetric longMetric[VAR]; /* Paired advance width and leading
69 * bearing values for each glyph. The 70 * bearing values for each glyph. The
70 * value numOfHMetrics comes from 71 * value numOfHMetrics comes from
(...skipping 23 matching lines...) Expand all
94 static const hb_tag_t tableTag = HB_OT_TAG_hmtx; 95 static const hb_tag_t tableTag = HB_OT_TAG_hmtx;
95 }; 96 };
96 struct vmtx : _mtx { 97 struct vmtx : _mtx {
97 static const hb_tag_t tableTag = HB_OT_TAG_vmtx; 98 static const hb_tag_t tableTag = HB_OT_TAG_vmtx;
98 }; 99 };
99 100
100 } /* namespace OT */ 101 } /* namespace OT */
101 102
102 103
103 #endif /* HB_OT_HMTX_TABLE_HH */ 104 #endif /* HB_OT_HMTX_TABLE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-hhea-table.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698