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

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

Issue 1723043002: Roll HarfBuzz to 1.2.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include upstream ebd7431f824 Created 4 years, 10 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 © 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
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
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 */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-open-type-private.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-hhea-table.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698