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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-maxp-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 27 matching lines...) Expand all
40 struct maxp 40 struct maxp
41 { 41 {
42 static const hb_tag_t Tag = HB_OT_TAG_maxp; 42 static const hb_tag_t Tag = HB_OT_TAG_maxp;
43 43
44 inline unsigned int get_num_glyphs (void) const { 44 inline unsigned int get_num_glyphs (void) const {
45 return numGlyphs; 45 return numGlyphs;
46 } 46 }
47 47
48 inline bool sanitize (hb_sanitize_context_t *c) { 48 inline bool sanitize (hb_sanitize_context_t *c) {
49 TRACE_SANITIZE (); 49 TRACE_SANITIZE ();
50 return c->check_struct (this) && 50 return TRACE_RETURN (c->check_struct (this) &&
51 » likely (version.major == 1 || 51 » » » likely (version.major == 1 || (version.major == 0 && ve rsion.minor == 0x5000)));
52 » » (version.major == 0 && version.minor == 0x5000));
53 } 52 }
54 53
55 /* We only implement version 0.5 as none of the extra fields in version 1.0 ar e useful. */ 54 /* We only implement version 0.5 as none of the extra fields in version 1.0 ar e useful. */
56 private: 55 private:
57 FixedVersion version; /* Version of the maxp table (0.5 or 1.0 ), 56 FixedVersion version; /* Version of the maxp table (0.5 or 1.0 ),
58 * 0x00005000 or 0x00010000. */ 57 * 0x00005000 or 0x00010000. */
59 USHORT numGlyphs; /* The number of glyphs in the font. */ 58 USHORT numGlyphs; /* The number of glyphs in the font. */
60 public: 59 public:
61 DEFINE_SIZE_STATIC (6); 60 DEFINE_SIZE_STATIC (6);
62 }; 61 };
63 62
64 63
65 64
66 #endif /* HB_OT_MAXP_TABLE_HH */ 65 #endif /* HB_OT_MAXP_TABLE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-map-private.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-name-table.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698