OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2010 Red Hat, Inc. | 2 * Copyright © 2010 Red Hat, Inc. |
3 * Copyright © 2012 Google, Inc. | 3 * Copyright © 2012 Google, Inc. |
4 * | 4 * |
5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
6 * | 6 * |
7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 inline bool sanitize (hb_sanitize_context_t *c) const | 55 inline bool sanitize (hb_sanitize_context_t *c) const |
56 { | 56 { |
57 TRACE_SANITIZE (this); | 57 TRACE_SANITIZE (this); |
58 return_trace (c->check_struct (this) && | 58 return_trace (c->check_struct (this) && |
59 version.major == 1 && | 59 version.major == 1 && |
60 magicNumber == 0x5F0F3CF5u); | 60 magicNumber == 0x5F0F3CF5u); |
61 } | 61 } |
62 | 62 |
63 protected: | 63 protected: |
64 FixedVersion» version;» » /* Version of the head table--currently | 64 FixedVersion<>version;» » /* Version of the head table--currently |
65 * 0x00010000u for version 1.0. */ | 65 * 0x00010000u for version 1.0. */ |
66 FixedVersion» fontRevision;» » /* Set by font manufacturer. */ | 66 FixedVersion<>fontRevision;» » /* Set by font manufacturer. */ |
67 ULONG checkSumAdjustment; /* To compute: set it to 0, sum the | 67 ULONG checkSumAdjustment; /* To compute: set it to 0, sum the |
68 * entire font as ULONG, then store | 68 * entire font as ULONG, then store |
69 * 0xB1B0AFBAu - sum. */ | 69 * 0xB1B0AFBAu - sum. */ |
70 ULONG magicNumber; /* Set to 0x5F0F3CF5u. */ | 70 ULONG magicNumber; /* Set to 0x5F0F3CF5u. */ |
71 USHORT flags; /* Bit 0: Baseline for font at y=0; | 71 USHORT flags; /* Bit 0: Baseline for font at y=0; |
72 * Bit 1: Left sidebearing point at x=0; | 72 * Bit 1: Left sidebearing point at x=0; |
73 * Bit 2: Instructions may depend on poi
nt size; | 73 * Bit 2: Instructions may depend on poi
nt size; |
74 * Bit 3: Force ppem to integer values f
or all | 74 * Bit 3: Force ppem to integer values f
or all |
75 * internal scaler math; may use fract
ional | 75 * internal scaler math; may use fract
ional |
76 * ppem sizes if this bit is clear; | 76 * ppem sizes if this bit is clear; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 SHORT glyphDataFormat; /* 0 for current format. */ | 145 SHORT glyphDataFormat; /* 0 for current format. */ |
146 | 146 |
147 DEFINE_SIZE_STATIC (54); | 147 DEFINE_SIZE_STATIC (54); |
148 }; | 148 }; |
149 | 149 |
150 | 150 |
151 } /* namespace OT */ | 151 } /* namespace OT */ |
152 | 152 |
153 | 153 |
154 #endif /* HB_OT_HEAD_TABLE_HH */ | 154 #endif /* HB_OT_HEAD_TABLE_HH */ |
OLD | NEW |