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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 inline bool sanitize (hb_sanitize_context_t *c) const | 51 inline bool sanitize (hb_sanitize_context_t *c) const |
52 { | 52 { |
53 TRACE_SANITIZE (this); | 53 TRACE_SANITIZE (this); |
54 return_trace (c->check_struct (this) && | 54 return_trace (c->check_struct (this) && |
55 likely (version.major == 1 || | 55 likely (version.major == 1 || |
56 (version.major == 0 && version.minor == 0x5000u))); | 56 (version.major == 0 && version.minor == 0x5000u))); |
57 } | 57 } |
58 | 58 |
59 /* We only implement version 0.5 as none of the extra fields in version 1.0 ar
e useful. */ | 59 /* We only implement version 0.5 as none of the extra fields in version 1.0 ar
e useful. */ |
60 protected: | 60 protected: |
61 FixedVersion» version;» » /* Version of the maxp table (0.5 or 1.0
), | 61 FixedVersion<>version;» » /* Version of the maxp table (0.5 or 1.0
), |
62 * 0x00005000u or 0x00010000u. */ | 62 * 0x00005000u or 0x00010000u. */ |
63 USHORT numGlyphs; /* The number of glyphs in the font. */ | 63 USHORT numGlyphs; /* The number of glyphs in the font. */ |
64 public: | 64 public: |
65 DEFINE_SIZE_STATIC (6); | 65 DEFINE_SIZE_STATIC (6); |
66 }; | 66 }; |
67 | 67 |
68 | 68 |
69 } /* namespace OT */ | 69 } /* namespace OT */ |
70 | 70 |
71 | 71 |
72 #endif /* HB_OT_MAXP_TABLE_HH */ | 72 #endif /* HB_OT_MAXP_TABLE_HH */ |
OLD | NEW |