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

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

Issue 10510004: Roll harfbuzz-ng 3b8fd9c48f4bde368bf2d465c148b9743a9216ee (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 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.
11 * 11 *
12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
(...skipping 24 matching lines...) Expand all
37 37
38 #define HB_OT_TAG_hhea HB_TAG('h','h','e','a') 38 #define HB_OT_TAG_hhea HB_TAG('h','h','e','a')
39 39
40 40
41 struct hhea 41 struct hhea
42 { 42 {
43 static const hb_tag_t Tag = HB_OT_TAG_hhea; 43 static const hb_tag_t Tag = HB_OT_TAG_hhea;
44 44
45 inline bool sanitize (hb_sanitize_context_t *c) { 45 inline bool sanitize (hb_sanitize_context_t *c) {
46 TRACE_SANITIZE (); 46 TRACE_SANITIZE ();
47 return c->check_struct (this) && likely (version.major == 1); 47 return TRACE_RETURN (c->check_struct (this) && likely (version.major == 1));
48 } 48 }
49 49
50 private: 50 private:
51 FixedVersion version; /* 0x00010000 for version 1.0. */ 51 FixedVersion version; /* 0x00010000 for version 1.0. */
52 FWORD ascender; /* Typographic ascent. <a 52 FWORD ascender; /* Typographic ascent. <a
53 * href="http://developer.apple.com/font s/TTRefMan/RM06/Chap6hhea.html"> 53 * href="http://developer.apple.com/font s/TTRefMan/RM06/Chap6hhea.html">
54 * (Distance from baseline of highest 54 * (Distance from baseline of highest
55 * ascender)</a> */ 55 * ascender)</a> */
56 FWORD descender; /* Typographic descent. <a 56 FWORD descender; /* Typographic descent. <a
57 * href="http://developer.apple.com/font s/TTRefMan/RM06/Chap6hhea.html"> 57 * href="http://developer.apple.com/font s/TTRefMan/RM06/Chap6hhea.html">
(...skipping 25 matching lines...) Expand all
83 SHORT reserved4; /* set to 0 */ 83 SHORT reserved4; /* set to 0 */
84 SHORT metricDataFormat; /* 0 for current format. */ 84 SHORT metricDataFormat; /* 0 for current format. */
85 USHORT numberOfHMetrics; /* Number of hMetric entries in 'hmtx' 85 USHORT numberOfHMetrics; /* Number of hMetric entries in 'hmtx'
86 * table */ 86 * table */
87 public: 87 public:
88 DEFINE_SIZE_STATIC (36); 88 DEFINE_SIZE_STATIC (36);
89 }; 89 };
90 90
91 91
92 #endif /* HB_OT_HHEA_TABLE_HH */ 92 #endif /* HB_OT_HHEA_TABLE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-head-table.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-hmtx-table.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698